ZIF Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct ZifStoreLocal; struct ZifStoreLocalClass; ZifStore * zif_store_local_new (void
); gboolean zif_store_local_set_prefix (ZifStoreLocal *store
,const gchar *prefix
,GError **error
); const gchar * zif_store_local_get_prefix (ZifStoreLocal *store
);
struct ZifStoreLocalClass { ZifStoreClass parent_class; /* Padding for future expansion */ void (*_zif_reserved1) (void); void (*_zif_reserved2) (void); void (*_zif_reserved3) (void); void (*_zif_reserved4) (void); };
ZifStore * zif_store_local_new (void
);
Returns : |
A new ZifStoreLocal instance. |
Since 0.1.0
gboolean zif_store_local_set_prefix (ZifStoreLocal *store
,const gchar *prefix
,GError **error
);
Sets the prefix to use for the install root.
Using prefix
set to NULL
to use the value from the config file
has been supported since 0.1.3. Earlier versions will assert.
|
A ZifStoreLocal |
|
The install root, e.g. "/", or NULL to use the default |
|
A GError, or NULL
|
Returns : |
TRUE for success, FALSE otherwise |
Since 0.1.0
const gchar * zif_store_local_get_prefix (ZifStoreLocal *store
);
Gets the prefix to use for the install root.
|
A ZifStoreLocal |
Returns : |
The install prefix, e.g. "/" |
Since 0.1.3