
# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1195487984 28800 # Node ID baa6107cec2c6211c262750c097eb2c552816268 # Parent a8e5699b3e0cb6342837442a184f01083ebdb924 Add function to initialize libvirt Signed-off-by: Dan Smith <danms@us.ibm.com> diff -r a8e5699b3e0c -r baa6107cec2c libxkutil/misc_util.c --- a/libxkutil/misc_util.c Mon Nov 19 06:40:37 2007 -0800 +++ b/libxkutil/misc_util.c Mon Nov 19 07:59:44 2007 -0800 @@ -421,6 +421,11 @@ bool parse_instanceid(const CMPIObjectPa return true; } +bool libvirt_cim_init(void) +{ + return virInitialize == 0; +} + /* * Local Variables: * mode: C diff -r a8e5699b3e0c -r baa6107cec2c libxkutil/misc_util.h --- a/libxkutil/misc_util.h Mon Nov 19 06:40:37 2007 -0800 +++ b/libxkutil/misc_util.h Mon Nov 19 07:59:44 2007 -0800 @@ -92,6 +92,8 @@ int parse_id(char *id, char **pfx, char int parse_id(char *id, char **pfx, char **name); bool parse_instanceid(const CMPIObjectPath *ref, char **pfx, char **name); +bool libvirt_cim_init(void); + #define ASSOC_MATCH(pn, cn) \ if (!match_pn_to_cn((pn), (cn))) { \ return (CMPIStatus){CMPI_RC_OK, NULL}; \