![]() |
![]() |
![]() |
Libosinfo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
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
);
struct OsinfoLoaderClass { GObjectClass parent_class; /* class members */ };
OsinfoDb * osinfo_loader_get_db (OsinfoLoader *loader
);
Retrieves the database being populated
|
the loader object |
Returns : |
the database. [transfer none] |
OsinfoLoader * osinfo_loader_new (void
);
Create a new database loader
Returns : |
a loader object. [transfer full] |
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
);
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.
|
the loader object |
|
the fully qualified path |
|
filled with error information upon failure. [out] |
void osinfo_loader_process_system_path (OsinfoLoader *loader
,GError **err
);
Loads data from the default paths.
|
the loader object |
|
filled with error information upon failure. [out] |
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.
|
the loader object |
|
the data source URI |
|
filled with error information upon failure. [out] |
void osinfo_loader_process_user_path (OsinfoLoader *loader
,GError **err
);