| ZIF Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct ZifStoreRhn; struct ZifStoreRhnClass; const gchar * zif_store_rhn_get_session_key (ZifStoreRhn *store); gchar * zif_store_rhn_get_version (ZifStoreRhn *store,GError **error); gboolean zif_store_rhn_login (ZifStoreRhn *store,const gchar *username,const gchar *password,GError **error); gboolean zif_store_rhn_logout (ZifStoreRhn *store,GError **error); ZifStore * zif_store_rhn_new (void); void zif_store_rhn_set_channel (ZifStoreRhn *store,const gchar *channel); void zif_store_rhn_set_precache (ZifStoreRhn *store,ZifPackageRhnPrecache precache); void zif_store_rhn_set_server (ZifStoreRhn *store,const gchar *server);
struct ZifStoreRhnClass {
ZifStoreClass parent_class;
/* Padding for future expansion */
void (*_zif_reserved1) (void);
void (*_zif_reserved2) (void);
void (*_zif_reserved3) (void);
void (*_zif_reserved4) (void);
};
const gchar * zif_store_rhn_get_session_key (ZifStoreRhn *store);
Gets the session_key to use for the install root.
|
A ZifStoreRhn |
Returns : |
The install session_key, e.g. "/" |
Since 0.1.3
gchar * zif_store_rhn_get_version (ZifStoreRhn *store,GError **error);
Gets the RHN version.
|
A ZifStoreRhn |
|
A GError, or NULL
|
Returns : |
a string for success, NULL otherwise |
Since 0.1.6
gboolean zif_store_rhn_login (ZifStoreRhn *store,const gchar *username,const gchar *password,GError **error);
Logs into RHN using the specified username and password.
|
A ZifStoreRhn |
|
The username to login to RHN with |
|
The password to login to RHN with |
|
A GError, or NULL
|
Returns : |
TRUE for success, FALSE otherwise |
Since 0.1.6
gboolean zif_store_rhn_logout (ZifStoreRhn *store,GError **error);
Logs out of RHN.
|
A ZifStoreRhn |
|
A GError, or NULL
|
Returns : |
TRUE for success, FALSE otherwise |
Since 0.1.6
ZifStore * zif_store_rhn_new (void);
Returns : |
A new ZifStoreRhn instance. |
Since 0.1.6
void zif_store_rhn_set_channel (ZifStoreRhn *store,const gchar *channel);
Sets the RHN channel to use.
|
A ZifStoreRhn |
|
The server to use, e.g. "rhel-i386-client-6" |
Since 0.1.6
void zif_store_rhn_set_precache (ZifStoreRhn *store,ZifPackageRhnPrecache precache);
Sets the precache policy. Precaching slows down zif_store_load() but
dramatically speeds up any data access because each request is
multithreaded on up to 50 threads at once.
|
A ZifStoreRhn |
|
The data to cache, e.g. ZIF_PACKAGE_RHN_PRECACHE_GET_DETAILS
|
Since 0.1.6
void zif_store_rhn_set_server (ZifStoreRhn *store,const gchar *server);
Sets the XMLRPC server to use for RHN.
|
A ZifStoreRhn |
|
The server to use, e.g. "https://rhn.redhat.com/rpc/api" |
Since 0.1.6