search for: generate_gobject_struct_source

Displaying 5 results from an estimated 5 matches for "generate_gobject_struct_source".

2016 Feb 23
7
[PATCH 0/4] Various tweaks to the generator.
Use interfaces files (*.mli files) instead of exporting all symbols randomly. Change the 'file is generated' warnings at the top of generated files so they accurately describe which source file generates each output file. Rich.
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
2013 Jan 30
1
[PATCH] Make internal-only functions and structures private
...100644 --- a/generator/main.ml +++ b/generator/main.ml @@ -170,7 +170,7 @@ Run it from the top source directory using the command output_to filename (generate_gobject_struct_header short typ cols); let filename = sprintf "gobject/src/%s.c" short in output_to filename (generate_gobject_struct_source short typ cols) - ) structs; + ) external_structs; delete_except_generated "gobject/include/guestfs-gobject/struct-*.h"; delete_except_generated "gobject/src/struct-*.c"; diff --git a/generator/ocaml.ml b/generator/ocaml.ml index 15efa80..0b1f96b 100644 --- a/generator...
2016 Feb 23
0
[PATCH 1/4] generator: Add interfaces to all modules.
...ring -> Types.optargt list -> Types.action -> unit -> unit +val generate_gobject_session_header : unit -> unit +val generate_gobject_session_source : unit -> unit +val generate_gobject_struct_header : string -> string -> (string * Types.field) list -> unit -> unit +val generate_gobject_struct_source : string -> string -> 'a -> unit -> unit +val generate_gobject_tristate_header : unit -> unit +val generate_gobject_tristate_source : unit -> unit diff --git a/generator/golang.mli b/generator/golang.mli new file mode 100644 index 0000000..ecd62a9 --- /dev/null +++ b/generator...
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
...eplace (Str.regexp "-") "_" filename in - let guard = "GUESTFS_GOBJECT_" ^ String.uppercase guard ^ "_H__" in + let guard = "GUESTFS_GOBJECT_" ^ String.uppercase_ascii guard ^ "_H__" in pr " G_END_DECLS @@ -299,7 +300,7 @@ let generate_gobject_struct_source filename typ () = let generate_gobject_optargs_header filename name f () = header_start filename; - let uc_name = String.uppercase name in + let uc_name = String.uppercase_ascii name in let camel_name = camel_of_name f in let type_define = "GUESTFS_TYPE_" ^ uc_name in @@ -...