[virt-tools-list] [libosinfo 1/5] Use glib-mkenums to register enums with glib

Michal Privoznik mprivozn at redhat.com
Fri Nov 9 14:41:19 UTC 2012


On 08.11.2012 18:24, Zeeshan Ali (Khattak) wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
> 
> This commit adds the generation of osinfo_enum_types.[ch] using
> glib-mkenums. These files will register the various enums that will get
> added to osinfo header files with glib.
> 
> Commit message shamelessly stolen from a similar commit to libvirt-glib
> by Christophe Fergeau <cfergeau at redhat.com>.
> ---
>  configure.ac                        |  3 +++
>  osinfo/Makefile.am                  | 16 ++++++++++++++--
>  osinfo/libosinfo.syms               |  8 ++++++++
>  osinfo/osinfo.h                     |  3 +++
>  osinfo/osinfo_enum_types.c.template | 36 ++++++++++++++++++++++++++++++++++++
>  osinfo/osinfo_enum_types.h.template | 24 ++++++++++++++++++++++++
>  6 files changed, 88 insertions(+), 2 deletions(-)
>  create mode 100644 osinfo/osinfo_enum_types.c.template
>  create mode 100644 osinfo/osinfo_enum_types.h.template

ACK if you squash this in:
diff --git a/osinfo/Makefile.am b/osinfo/Makefile.am
index 922cf2a..0660496 100644
--- a/osinfo/Makefile.am
+++ b/osinfo/Makefile.am
@@ -4,7 +4,7 @@ EXTRA_DIST = libosinfo.syms \
             osinfo_enum_types.c.template

 BUILT_SOURCES = osinfo_enum_types.c \
-               osinfo_enum_types.h
+                               osinfo_enum_types.h

 if USE_VERSION_DEFS
 LIBOSINFO_VERSION_FILE = $(builddir)/libosinfo.def




More information about the virt-tools-list mailing list