API
typedef struct _IG IG;
struct _IG
{
void *priv;
};
// Initialize Library
void
IG_init (const char *package, const char *version,
int argc, char **argv);
// if local is true (i.e.==1) the files and directories are
// not serialized
IG *IG_new (int local);
void IG_destroy (IG * self);
IG *IG_newFromFile (const char *file);
IG *IG_newFromStream (const char *stream);
void IG_addInterfaceFromStream (IG * self, const char *stream);
void IG_addInterfaceFromFile (IG * self, const char *file);
int IG_run (IG * self);
xmlDocPtr IG_toXmlDoc (IG * self);
xmlNodePtr IG_toXmlNode (IG * self);
char *IG_toXml (IG * self);
void IG_toXmlFile (IG * self, const char *file);
void IG_set (IG * self, const char *inputPath, const char *newValue);
// returns a newly allocated string
char *IG_get (IG * self, const char *inputPath);
// returns a newly allocated string
char *IG_toString (IG * self);