search for: internal_struct

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

Did you mean: internal_structs
2016 Nov 08
4
[PATCH 1/3] generator: c: move internal functions
...ic, + * stable API, and can change at any time! We export them because + * they are used by some of the language bindings. + */ + +/* Private functions. */ + +"; + + generate_all_headers private_functions_sorted; + + pr "\ +/* Private structures. */ + +"; + + generate_all_structs internal_structs; + +pr "\ + +#endif /* End of GUESTFS_PRIVATE. */ + +/* Deprecated macros. Use GUESTFS_HAVE_* instead. */ + +#define LIBGUESTFS_HAVE_CREATE_FLAGS 1 +#define LIBGUESTFS_HAVE_LAST_ERRNO 1 +#define LIBGUESTFS_HAVE_PUSH_ERROR_HANDLER 1 +#define LIBGUESTFS_HAVE_POP_ERROR_HANDLER 1 +#define LIBGUE...
2014 Jul 01
2
[PATCH] generator: Sort the structs.
...ml @@ -382,6 +382,10 @@ let camel_name_of_struct name = (lookup_struct name).s_camel_name let cols_of_struct name = (lookup_struct name).s_cols -let external_structs = List.filter (fun x -> not x.s_internal) structs +let compare_structs { s_name = n1 } { s_name = n2 } = compare n1 n2 -let internal_structs = List.filter (fun x -> x.s_internal) structs +let external_structs = + List.sort compare_structs (List.filter (fun x -> not x.s_internal) structs) + +let internal_structs = + List.sort compare_structs (List.filter (fun x -> x.s_internal) structs) diff --git a/gobject/Makefile.inc b/gob...
2016 Nov 08
0
[PATCH 2/3] Split internal stuff out of guestfs.h
...otype ?(extern = true) ?(static = false) ?(semicolon = true) @@ -607,13 +616,6 @@ extern GUESTFS_DLL_PUBLIC void *guestfs_next_private (guestfs_h *g, const char * generate_all_headers private_functions_sorted; - pr "\ -/* Private structures. */ - -"; - - generate_all_structs internal_structs; - pr "\ #endif /* End of GUESTFS_PRIVATE. */ @@ -650,6 +652,34 @@ pr "\ #endif /* GUESTFS_H_ */ " +(* Generate the guestfs-private.h file. *) +and generate_guestfs_private_h () = + generate_header CStyle LGPLv2plus; + + pr "\ +#ifndef GUESTFS_PRIVATE_H_ +#define GUES...
2013 Jan 30
1
[PATCH] Make internal-only functions and structures private
...void *dom, int (*)(guestfs_h *g, const char *filename, const char *format, int readonly, void *data), void *data); -#endif /* End of private functions. */ +"; + + generate_all_headers internal_functions_sorted; + + pr "\ +/* Private structures. */ + +"; + + generate_all_structs internal_structs; + +pr "\ +/* Deprecated macros for internal functions. */ + +"; + + List.iter ( + fun { name = shortname } -> + pr "#define LIBGUESTFS_HAVE_%s 1\n" (String.uppercase shortname); + ) internal_functions_sorted; + +pr "\ + +#endif /* End of GUESTFS_PRIVATE. */...
2016 Feb 24
3
[PATCH 1/3] src: generate code for printing contents of structs
...se\n"; + pr " fprintf (dest, \"%%s%s: %%s\", indent, linesep);\n" name + ) cols; + pr "}\n"; + pr "\n"; + ) in + + write_structs external_structs; + + pr "\ +#if GUESTFS_PRIVATE + +"; + + write_structs internal_structs; + + pr "\ +#endif /* End of GUESTFS_PRIVATE. */ +" + +(* Generate structs-print.h file. *) +and generate_client_structs_print_h () = + generate_header CStyle LGPLv2plus; + + pr "\ +#ifndef GUESTFS_INTERNAL_STRUCTS_PRINT_H_ +#define GUESTFS_INTERNAL_STRUCTS_PRINT_H_ + +#include &...