ZIF Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct ZifPackageRhn; struct ZifPackageRhnClass; enum ZifPackageRhnPrecache; ZifPackage * zif_package_rhn_new (void
); void zif_package_rhn_set_id (ZifPackageRhn *pkg
,guint id
); void zif_package_rhn_set_server (ZifPackageRhn *pkg
,const gchar *server
); void zif_package_rhn_set_session_key (ZifPackageRhn *pkg
,const gchar *session_key
); guint zif_package_rhn_get_id (ZifPackageRhn *pkg
); gboolean zif_package_rhn_precache (ZifPackageRhn *pkg
,ZifPackageRhnPrecache precache
,GError **error
);
struct ZifPackageRhnClass { ZifPackageClass parent_class; /* Padding for future expansion */ void (*_zif_reserved1) (void); void (*_zif_reserved2) (void); void (*_zif_reserved3) (void); void (*_zif_reserved4) (void); };
typedef enum { ZIF_PACKAGE_RHN_PRECACHE_GET_DETAILS = 1, ZIF_PACKAGE_RHN_PRECACHE_LIST_FILES = 2, ZIF_PACKAGE_RHN_PRECACHE_LIST_DEPS = 4 } ZifPackageRhnPrecache;
ZifPackage * zif_package_rhn_new (void
);
Returns : |
A new ZifPackageRhn instance. |
Since 0.1.6
void zif_package_rhn_set_id (ZifPackageRhn *pkg
,guint id
);
Sets a RHN package ID.
|
A ZifPackageRhn |
|
the RHN package ID |
Since 0.1.6
void zif_package_rhn_set_server (ZifPackageRhn *pkg
,const gchar *server
);
Sets a RHN server.
|
A ZifPackageRhn |
|
the RHN server to use |
Since 0.1.6
void zif_package_rhn_set_session_key (ZifPackageRhn *pkg
,const gchar *session_key
);
Sets a RHN session key.
|
A ZifPackageRhn |
|
the RHN session key |
Since 0.1.6
guint zif_package_rhn_get_id (ZifPackageRhn *pkg
);
Gets the RHN package ID for the package.
|
A ZifPackageRhn |
Returns : |
The value or 0 if unset |
Since 0.1.6
gboolean zif_package_rhn_precache (ZifPackageRhn *pkg
,ZifPackageRhnPrecache precache
,GError **error
);