OsinfoLoader

OsinfoLoader — An database loader

Synopsis

struct              OsinfoLoader;
struct              OsinfoLoaderClass;
OsinfoDb *          osinfo_loader_get_db                (OsinfoLoader *loader);
OsinfoLoader *      osinfo_loader_new                   (void);
void                osinfo_loader_process_default_path  (OsinfoLoader *loader,
                                                         GError **err);
void                osinfo_loader_process_local_path    (OsinfoLoader *loader,
                                                         GError **err);
void                osinfo_loader_process_path          (OsinfoLoader *loader,
                                                         const gchar *path,
                                                         GError **err);
void                osinfo_loader_process_system_path   (OsinfoLoader *loader,
                                                         GError **err);
void                osinfo_loader_process_uri           (OsinfoLoader *loader,
                                                         const gchar *uri,
                                                         GError **err);
void                osinfo_loader_process_user_path     (OsinfoLoader *loader,
                                                         GError **err);

Object Hierarchy

  GObject
   +----OsinfoLoader

Description

OsinfoLoader provides a way to populate an OsinfoDb from a set of XML documents.

Details

struct OsinfoLoader

struct OsinfoLoader;

struct OsinfoLoaderClass

struct OsinfoLoaderClass {
    GObjectClass parent_class;

    /* class members */
};

osinfo_loader_get_db ()

OsinfoDb *          osinfo_loader_get_db                (OsinfoLoader *loader);

Retrieves the database being populated

loader :

the loader object

Returns :

the database. [transfer none]

osinfo_loader_new ()

OsinfoLoader *      osinfo_loader_new                   (void);

Create a new database loader

Returns :

a loader object. [transfer full]

osinfo_loader_process_default_path ()

void                osinfo_loader_process_default_path  (OsinfoLoader *loader,
                                                         GError **err);

osinfo_loader_process_local_path ()

void                osinfo_loader_process_local_path    (OsinfoLoader *loader,
                                                         GError **err);

osinfo_loader_process_path ()

void                osinfo_loader_process_path          (OsinfoLoader *loader,
                                                         const gchar *path,
                                                         GError **err);

Loads data from the specified path. If the path points to a file, that will be loaded as XML Otherwise it can point to a directory which will be recursively traversed, loading all files as XML.

loader :

the loader object

path :

the fully qualified path

err :

filled with error information upon failure. [out]

osinfo_loader_process_system_path ()

void                osinfo_loader_process_system_path   (OsinfoLoader *loader,
                                                         GError **err);

Loads data from the default paths.

loader :

the loader object

err :

filled with error information upon failure. [out]

osinfo_loader_process_uri ()

void                osinfo_loader_process_uri           (OsinfoLoader *loader,
                                                         const gchar *uri,
                                                         GError **err);

Loads data from the specified URI. If the URI points to a file, that will be loaded as XML Otherwise it can point to a directory which will be recursively traversed, loading all files as XML.

loader :

the loader object

uri :

the data source URI

err :

filled with error information upon failure. [out]

osinfo_loader_process_user_path ()

void                osinfo_loader_process_user_path     (OsinfoLoader *loader,
                                                         GError **err);

See Also

OsinfoDb