![]() |
![]() |
![]() |
ZIF Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
ZifPackageRemote; ZifPackageRemotePrivate; ZifPackageRemoteClass; ZifPackageRemote * 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
); const gchar * zif_package_remote_get_pkgid (ZifPackageRemote *pkg
); void zif_package_remote_set_pkgid (ZifPackageRemote *pkg
,const gchar *pkgid
); void zif_package_remote_set_store_remote (ZifPackageRemote *pkg
,ZifStoreRemote *store
);
typedef struct _ZifPackageRemotePrivate ZifPackageRemotePrivate;
Private ZifPackageRemote data
ZifPackageRemote * zif_package_remote_new (void
);
Returns : |
A new ZifPackageRemote class 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.
|
the ZifPackageRemote object |
|
length of data and type arrays |
|
data type array |
|
data value array |
|
the repository id |
|
a GError which is used on failure, or NULL
|
Returns : |
TRUE for success, FALSE for failure
|
Since 0.1.0
const gchar * zif_package_remote_get_pkgid (ZifPackageRemote *pkg
);
Gets the pkgid used internally to track the package item.
|
the ZifPackageRemote object |
Returns : |
the pkgid hash. |
Since 0.1.0
void zif_package_remote_set_pkgid (ZifPackageRemote *pkg
,const gchar *pkgid
);
Sets the pkgid used internally to track the package item.
|
the ZifPackageRemote object |
|
the pkgid hash. |
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.
|
the ZifPackageRemote object |
|
the ZifStoreRemote that created this package |
Since 0.1.0