ZIF Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct ZifPackageRemote; struct ZifPackageRemoteClass; ZifPackage * zif_package_remote_new (void
); gboolean zif_package_remote_set_from_repo (ZifPackageRemote *pkg
,guint length
,gchar **type
,gchar **data
,const gchar *repo_id
,GError **error
); void zif_package_remote_set_store_remote (ZifPackageRemote *pkg
,ZifStoreRemote *store
); ZifStoreRemote * zif_package_remote_get_store_remote (ZifPackageRemote *pkg
); void zif_package_remote_set_installed (ZifPackageRemote *pkg
,ZifPackage *installed
); ZifPackage * zif_package_remote_get_installed (ZifPackageRemote *pkg
); gboolean zif_package_remote_download (ZifPackageRemote *pkg
,const gchar *directory
,ZifState *state
,GError **error
); ZifDelta * zif_package_remote_download_delta (ZifPackageRemote *pkg
,const gchar *directory
,ZifState *state
,GError **error
); gboolean zif_package_remote_rebuild_delta (ZifPackageRemote *pkg
,ZifDelta *delta
,const gchar *directory
,ZifState *state
,GError **error
); ZifUpdate * zif_package_remote_get_update_detail (ZifPackageRemote *package
,ZifState *state
,GError **error
); ZifDelta * zif_package_remote_get_delta (ZifPackageRemote *package
,ZifState *state
,GError **error
);
struct ZifPackageRemoteClass { ZifPackageClass parent_class; /* Padding for future expansion */ void (*_zif_reserved1) (void); void (*_zif_reserved2) (void); void (*_zif_reserved3) (void); void (*_zif_reserved4) (void); };
ZifPackage * zif_package_remote_new (void
);
Returns : |
A new ZifPackageRemote instance. |
Since 0.1.0
gboolean zif_package_remote_set_from_repo (ZifPackageRemote *pkg
,guint length
,gchar **type
,gchar **data
,const gchar *repo_id
,GError **error
);
Sets details on a remote package from repo data derived from the metadata xml.
|
A ZifPackageRemote |
|
length of data and type arrays |
|
The data type array |
|
The data value array |
|
The repository id |
|
A GError, or NULL
|
Returns : |
TRUE for success, FALSE otherwise |
Since 0.1.0
void zif_package_remote_set_store_remote (ZifPackageRemote *pkg
,ZifStoreRemote *store
);
Sets the store used to create this package, which we may need of we ever
need to ensure()
data at runtime.
This also sets the package to have a trust of
ZIF_PACKAGE_TRUST_KIND_PUBKEY_UNVERIFIED
if the repo claims to
support GPG signing or ZIF_PACKAGE_TRUST_KIND_NONE
otherwise.
|
A ZifPackageRemote |
|
A ZifStoreRemote that created this package |
Since 0.1.0
ZifStoreRemote * zif_package_remote_get_store_remote (ZifPackageRemote *pkg
);
Gets the store used to create this package.
|
A ZifPackageRemote |
Returns : |
A refcounted ZifStoreRemote , or NULL for failure.
Use g_object_unref() when done. [transfer full]
|
Since 0.1.3
void zif_package_remote_set_installed (ZifPackageRemote *pkg
,ZifPackage *installed
);
Sets the installed package this package updates.
|
A ZifPackageRemote |
|
A ZifPackage that created this package |
Since 0.1.3
ZifPackage * zif_package_remote_get_installed (ZifPackageRemote *pkg
);
Gets the installed package this package updates.
|
A ZifPackageRemote |
Returns : |
A refcounted ZifPackage , or NULL for failure.
Use g_object_unref() when done. [transfer full]
|
Since 0.1.3
gboolean zif_package_remote_download (ZifPackageRemote *pkg
,const gchar *directory
,ZifState *state
,GError **error
);
Downloads a package.
|
A ZifPackageRemote |
|
A local directory to save to, or NULL to use the package cache |
|
A ZifState to use for progress reporting |
|
A GError, or NULL
|
Returns : |
TRUE for success, FALSE otherwise |
Since 0.1.3
ZifDelta * zif_package_remote_download_delta (ZifPackageRemote *pkg
,const gchar *directory
,ZifState *state
,GError **error
);
Downloads a delta rpm if it exists.
|
A ZifPackageRemote |
|
A local directory to save to, or NULL to use the package cache |
|
A ZifState to use for progress reporting |
|
A GError, or NULL
|
Returns : |
A ZifDelta , or NULL for failure. [transfer full]
|
Since 0.2.5
gboolean zif_package_remote_rebuild_delta (ZifPackageRemote *pkg
,ZifDelta *delta
,const gchar *directory
,ZifState *state
,GError **error
);
Rebuilds an rpm from delta.
|
A ZifPackageRemote |
|
A ZifDelta |
|
A local directory to save to, or NULL to use the package cache |
|
A ZifState to use for progress reporting |
|
A GError, or NULL
|
Returns : |
TRUE for success, FALSE otherwise |
Since 0.2.5
ZifUpdate * zif_package_remote_get_update_detail (ZifPackageRemote *package
,ZifState *state
,GError **error
);
Gets the update detail for a package.
|
A ZifPackageRemote |
|
A ZifState to use for progress reporting |
|
A GError, or NULL
|
Returns : |
A ZifUpdate , or NULL for failure. [transfer full]
|
Since 0.1.3
ZifDelta * zif_package_remote_get_delta (ZifPackageRemote *package
,ZifState *state
,GError **error
);
Gets the update detail for a package if it exists.
|
A ZifPackageRemote |
|
A ZifState to use for progress reporting |
|
A GError, or NULL
|
Returns : |
A ZifUpdate , or NULL for failure. [transfer full]
|
Since 0.1.3