search for: fbytes

Displaying 20 results from an estimated 53 matches for "fbytes".

Did you mean: bytes
2015 Mar 13
2
[PATCH] part-list: add support for show partition type
...n_list_val[k].part_type); error3: free (r->guestfs_int_partition_list_val); error2: diff --git a/generator/structs.ml b/generator/structs.ml index ea110a1..e7a9fa6 100644 --- a/generator/structs.ml +++ b/generator/structs.ml @@ -240,6 +240,7 @@ let structs = [ "part_start", FBytes; "part_end", FBytes; "part_size", FBytes; + "part_type", FString; ]; s_camel_name = "Partition" }; diff --git a/resize/resize.ml b/resize/resize.ml index 84fd6d4..8f8f67f 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -1078,7...
2015 Apr 23
0
Regarding opus audio codec
...ject here in the opus demo test code I could see that before giving input to encoder or after decoder the audio sample are modified as below for(i=0;i<loop;i++) { printf("hiiii iam inside loop\n"); opus_int32 s; s=fbytes[2*i+1]<<8|fbytes[2*i]; s=((s&0xFFFF)^0x8000)-0x8000; in[i+remaining*channels]= (short )fbytes; } I wanted to know why this is done. Thanks in advance. Regards, Jilani. -------------- next part -------------- An HTML attachment was scrubbed......
2019 Jun 27
0
[PATCH 4/9] Rust bindings: Add generator of structs
...; %s: i8,\n" n + | n, FString -> pr " %s: String,\n" n + | n, FBuffer -> pr " %s: Vec<u8>,\n" n + | n, FUInt32 -> pr " %s: u32,\n" n + | n, FInt32 -> pr " %s: i32,\n" n + | n, (FUInt64 | FBytes) -> pr " %s: u64,\n" n + | n, FInt64 -> pr " %s: i64,\n" n + | n, FUUID -> pr " %s: UUID,\n" n + | n, FOptPercent -> pr " %s: Option<f32>,\n" n + ) cols; + pr "}\n"; + pr "#[repr...
2015 Mar 13
0
Re: [PATCH] part-list: add support for show partition type
...free (r->guestfs_int_partition_list_val); > error2: > diff --git a/generator/structs.ml b/generator/structs.ml > index ea110a1..e7a9fa6 100644 > --- a/generator/structs.ml > +++ b/generator/structs.ml > @@ -240,6 +240,7 @@ let structs = [ > "part_start", FBytes; > "part_end", FBytes; > "part_size", FBytes; > + "part_type", FString; > ]; > s_camel_name = "Partition" }; > I'd just add a new part_get_type (or something similar), which would call parted to return "pri...
2016 Apr 11
1
[PATCH] RFC: php: support PHP 7
...1);\n" name name name | name, FUUID -> - pr " add_assoc_stringl (return_value, \"%s\", r->%s, 32, 1);\n" + pr " guestfs_add_assoc_stringl (return_value, \"%s\", r->%s, 32, 1);\n" name name | name, (FBytes|FUInt64|FInt64|FInt32|FUInt32) -> pr " add_assoc_long (return_value, \"%s\", r->%s);\n" name name | name, FChar -> - pr " add_assoc_stringl (return_value, \"%s\", &r->%s, 1, 1);\n" + pr " guestfs_...
2012 Mar 28
1
[PATCH] Split gobject sources into 1 file per class
This patch replaces patches 14 and 15 from my previous series. The gtk-doc output is now reasonable, and we can rely on an automatically generated guestfs-sections.txt. Matt
2019 Jun 27
0
[PATCH 7/9] Rust bindings: Complete actions
...; %s: i8,\n" n - | n, FString -> pr " %s: String,\n" n - | n, FBuffer -> pr " %s: Vec<u8>,\n" n - | n, FUInt32 -> pr " %s: u32,\n" n - | n, FInt32 -> pr " %s: i32,\n" n - | n, (FUInt64 | FBytes) -> pr " %s: u64,\n" n - | n, FInt64 -> pr " %s: i64,\n" n - | n, FUUID -> pr " %s: UUID,\n" n - | n, FOptPercent -> pr " %s: Option<f32>,\n" n + | n, FChar -> pr " pub %s: i8,\n" n +...
2015 Jun 11
1
Re: [PATCH] New API: btrfs_filesystem_show_all
...t;, FString; > > + "btrfsfsshow_uuid", FString; > > + "btrfsfsshow_devid", FUInt32; > > + "btrfsfsshow_total_bytes", FUUID; > > + "btrfsfsshow_bytes_used", FUUID; > > Surely bytes are not an UUID? There's FBytes, so you need to convert > the size strings to bytes. But filesystem show could not output raw data... > > > + "btrfsfsshow_device", FString; > > + ]; > > + s_camel_name = "BTRFSFilesystemShowAll" }; > > The return value of this API is...
2016 Feb 24
3
[PATCH 1/3] src: generate code for printing contents of structs
...\n" typ name; + pr " else\n"; + pr " fprintf (dest, \"\\\\x%%02x\", (unsigned) %s->%s[i]);\n" + typ name; + pr " fprintf (dest, \"%%s\", linesep);\n" + | name, (FUInt64|FBytes) -> + pr " fprintf (dest, \"%%s%s: %%\" PRIu64 \"%%s\", indent, %s->%s, linesep);\n" + name typ name + | name, FInt64 -> + pr " fprintf (dest, \"%%s%s: %%\" PRIi64 \"%%s\", indent, %s...
2017 May 09
1
[PATCH v2] python: add simple wrappers for PyObject<->string functions
...pr " PyBytes_FromStringAndSize (%s->%s, 32));\n" - typ name; - pr "#endif\n" + pr " guestfs_int_py_fromstringsize (%s->%s, 32));\n" + typ name | name, (FBytes|FUInt64) -> pr " PyDict_SetItemString (dict, \"%s\",\n" name; pr " PyLong_FromUnsignedLongLong (%s->%s));\n" @@ -229,15 +217,9 @@ and generate_python_structs () = pr " PyDict_SetItemString (di...
2017 May 09
0
[PATCH] python: add simple wrappers for PyObject<->string functions
...pr " PyBytes_FromStringAndSize (%s->%s, 32));\n" - typ name; - pr "#endif\n" + pr " guestfs_int_py_fromstringsize (%s->%s, 32));\n" + typ name | name, (FBytes|FUInt64) -> pr " PyDict_SetItemString (dict, \"%s\",\n" name; pr " PyLong_FromUnsignedLongLong (%s->%s));\n" @@ -229,15 +217,9 @@ and generate_python_structs () = pr " PyDict_SetItemString (di...
2015 Jun 11
0
Re: [PATCH] New API: btrfs_filesystem_show_all
..."btrfsfsshow_label", FString; > + "btrfsfsshow_uuid", FString; > + "btrfsfsshow_devid", FUInt32; > + "btrfsfsshow_total_bytes", FUUID; > + "btrfsfsshow_bytes_used", FUUID; Surely bytes are not an UUID? There's FBytes, so you need to convert the size strings to bytes. > + "btrfsfsshow_device", FString; > + ]; > + s_camel_name = "BTRFSFilesystemShowAll" }; The return value of this API is IMHO confusing. It is a list of elements, which have duplicated data (like the label,...
2017 Mar 18
0
[PATCH] python: check return value of Python APIs
...\n"; + pr " \"Error setting %s.%s\");\n" typ name; + pr " return NULL;\n"; + pr " }\n"; + pr " PyDict_SetItemString (dict, \"%s\", value);\n" name; | name, (FBytes|FUInt64) -> - pr " PyDict_SetItemString (dict, \"%s\",\n" name; - pr " PyLong_FromUnsignedLongLong (%s->%s));\n" - typ name + pr " value = PyLong_FromUnsignedLongLong (%s->%s);\n"...
2015 Jun 11
2
[PATCH] New API: btrfs_filesystem_show_all
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> --- daemon/btrfs.c | 176 +++++++++++++++++++++++++++++++++++++++++++++++++++ generator/actions.ml | 19 ++++++ generator/structs.ml | 13 ++++ src/MAX_PROC_NR | 2 +- 4 files changed, 209 insertions(+), 1 deletion(-) diff --git a/daemon/btrfs.c b/daemon/btrfs.c index 39392f7..09f7615 100644 --- a/daemon/btrfs.c +++
2012 Oct 30
5
[PATCH v3 0/5] Add symbol versioning.
This is a simpler patch series to add symbol versioning. I have pushed patches 1-3 upstream. Rich.
2015 Jul 02
0
[PATCH] Fix various -Wformat problems.
.../generator/daemon.ml index 0c98d14..1825de4 100644 --- a/generator/daemon.ml +++ b/generator/daemon.ml @@ -564,12 +564,12 @@ cleanup_free_mountable (mountable_t *mountable) pr " r->%s[i++] = tok[j];\n" name; pr " }\n"; | FBytes -> - pr " if (sscanf (tok, \"%%\"SCNu64, &r->%s) != 1) {\n" name; + pr " if (sscanf (tok, \"%%\" SCNi64, &r->%s) != 1) {\n" name; pr " fprintf (stderr, \"%%s: failed to parse si...
2015 Jul 02
0
[PATCH v2] Fix various -Wformat problems.
.../generator/daemon.ml index 0c98d14..1825de4 100644 --- a/generator/daemon.ml +++ b/generator/daemon.ml @@ -564,12 +564,12 @@ cleanup_free_mountable (mountable_t *mountable) pr " r->%s[i++] = tok[j];\n" name; pr " }\n"; | FBytes -> - pr " if (sscanf (tok, \"%%\"SCNu64, &r->%s) != 1) {\n" name; + pr " if (sscanf (tok, \"%%\" SCNi64, &r->%s) != 1) {\n" name; pr " fprintf (stderr, \"%%s: failed to parse si...
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...pr "\n"; pr " struct guestfs_%s {\n" typ; List.iter ( - function - | name, FChar -> pr " char %s;\n" name - | name, FUInt32 -> pr " uint32_t %s;\n" name - | name, FInt32 -> pr " int32_t %s;\n" name - | name, (FUInt64|FBytes) -> pr " uint64_t %s;\n" name - | name, FInt64 -> pr " int64_t %s;\n" name - | name, FString -> pr " char *%s;\n" name - | name, FBuffer -> - pr " /* The next two fields describe a byte array. */\n"; - pr " uint32_t %s_len;\...
2012 Oct 30
7
[PATCH v2 0/7] Add symbol versioning (now working).
This rather more complex patch series adds symbol versioning (7/7 shows it in action). This works for me, tested by running old and new virt-inspector binaries against the new library. Rich.
2017 Apr 25
1
[Bug #1406906] [PATCH] python: fix segmentation fault when setting non UTF-8 strings
...\n"; + pr " \"Error setting %s.%s\");\n" typ name; + pr " return NULL;\n"; + pr " }\n"; + pr " PyDict_SetItemString (dict, \"%s\", value);\n" name; | name, (FBytes|FUInt64) -> - pr " PyDict_SetItemString (dict, \"%s\",\n" name; - pr " PyLong_FromUnsignedLongLong (%s->%s));\n" - typ name + pr " value = PyLong_FromUnsignedLongLong (%s->%s);\n"...