<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
]>
<refentry id="PackageKit-pk-enum">
<refmeta>
<refentrytitle role="top_of_page" id="PackageKit-pk-enum.top_of_page">pk-enum</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>PACKAGEKIT Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>pk-enum</refname>
<refpurpose>Functions for converting strings to enum and vice-versa</refpurpose>
</refnamediv>

<refsynopsisdiv id="PackageKit-pk-enum.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>
                    <link linkend="PkEnumMatch">PkEnumMatch</link>;
enum                <link linkend="PkRoleEnum">PkRoleEnum</link>;
enum                <link linkend="PkStatusEnum">PkStatusEnum</link>;
enum                <link linkend="PkExitEnum">PkExitEnum</link>;
enum                <link linkend="PkNetworkEnum">PkNetworkEnum</link>;
enum                <link linkend="PkFilterEnum">PkFilterEnum</link>;
enum                <link linkend="PkRestartEnum">PkRestartEnum</link>;
enum                <link linkend="PkMessageEnum">PkMessageEnum</link>;
enum                <link linkend="PkErrorEnum">PkErrorEnum</link>;
enum                <link linkend="PkGroupEnum">PkGroupEnum</link>;
enum                <link linkend="PkUpdateStateEnum">PkUpdateStateEnum</link>;
enum                <link linkend="PkInfoEnum">PkInfoEnum</link>;
enum                <link linkend="PkDistroUpgradeEnum">PkDistroUpgradeEnum</link>;
enum                <link linkend="PkSigTypeEnum">PkSigTypeEnum</link>;
enum                <link linkend="PkProvidesEnum">PkProvidesEnum</link>;
enum                <link linkend="PkLicenseEnum">PkLicenseEnum</link>;
enum                <link linkend="PkMediaTypeEnum">PkMediaTypeEnum</link>;
enum                <link linkend="PkAuthorizeEnum">PkAuthorizeEnum</link>;
<link linkend="void">void</link>                <link linkend="pk-enum-test">pk_enum_test</link>                        (<link linkend="gpointer">gpointer</link> user_data);
<link linkend="guint">guint</link>               <link linkend="pk-enum-find-value">pk_enum_find_value</link>                  (const <link linkend="PkEnumMatch">PkEnumMatch</link> *table,
                                                         const <link linkend="gchar">gchar</link> *string);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-enum-find-string">pk_enum_find_string</link>                 (const <link linkend="PkEnumMatch">PkEnumMatch</link> *table,
                                                         <link linkend="guint">guint</link> value);
<link linkend="PkSigTypeEnum">PkSigTypeEnum</link>       <link linkend="pk-sig-type-enum-from-text">pk_sig_type_enum_from_text</link>          (const <link linkend="gchar">gchar</link> *sig_type);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-sig-type-enum-to-text">pk_sig_type_enum_to_text</link>            (<link linkend="PkSigTypeEnum">PkSigTypeEnum</link> sig_type);
<link linkend="PkInfoEnum">PkInfoEnum</link>          <link linkend="pk-info-enum-from-text">pk_info_enum_from_text</link>              (const <link linkend="gchar">gchar</link> *info);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-info-enum-to-text">pk_info_enum_to_text</link>                (<link linkend="PkInfoEnum">PkInfoEnum</link> info);
<link linkend="PkUpdateStateEnum">PkUpdateStateEnum</link>   <link linkend="pk-update-state-enum-from-text">pk_update_state_enum_from_text</link>      (const <link linkend="gchar">gchar</link> *update_state);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-update-state-enum-to-text">pk_update_state_enum_to_text</link>        (<link linkend="PkUpdateStateEnum">PkUpdateStateEnum</link> update_state);
<link linkend="PkExitEnum">PkExitEnum</link>          <link linkend="pk-exit-enum-from-text">pk_exit_enum_from_text</link>              (const <link linkend="gchar">gchar</link> *exit);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-exit-enum-to-text">pk_exit_enum_to_text</link>                (<link linkend="PkExitEnum">PkExitEnum</link> exit);
<link linkend="PkNetworkEnum">PkNetworkEnum</link>       <link linkend="pk-network-enum-from-text">pk_network_enum_from_text</link>           (const <link linkend="gchar">gchar</link> *network);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-network-enum-to-text">pk_network_enum_to_text</link>             (<link linkend="PkNetworkEnum">PkNetworkEnum</link> network);
<link linkend="PkStatusEnum">PkStatusEnum</link>        <link linkend="pk-status-enum-from-text">pk_status_enum_from_text</link>            (const <link linkend="gchar">gchar</link> *status);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-status-enum-to-text">pk_status_enum_to_text</link>              (<link linkend="PkStatusEnum">PkStatusEnum</link> status);
<link linkend="PkRoleEnum">PkRoleEnum</link>          <link linkend="pk-role-enum-from-text">pk_role_enum_from_text</link>              (const <link linkend="gchar">gchar</link> *role);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-role-enum-to-text">pk_role_enum_to_text</link>                (<link linkend="PkRoleEnum">PkRoleEnum</link> role);
<link linkend="PkErrorEnum">PkErrorEnum</link>         <link linkend="pk-error-enum-from-text">pk_error_enum_from_text</link>             (const <link linkend="gchar">gchar</link> *code);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-error-enum-to-text">pk_error_enum_to_text</link>               (<link linkend="PkErrorEnum">PkErrorEnum</link> code);
<link linkend="PkRestartEnum">PkRestartEnum</link>       <link linkend="pk-restart-enum-from-text">pk_restart_enum_from_text</link>           (const <link linkend="gchar">gchar</link> *restart);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-restart-enum-to-text">pk_restart_enum_to_text</link>             (<link linkend="PkRestartEnum">PkRestartEnum</link> restart);
<link linkend="PkMessageEnum">PkMessageEnum</link>       <link linkend="pk-message-enum-from-text">pk_message_enum_from_text</link>           (const <link linkend="gchar">gchar</link> *message);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-message-enum-to-text">pk_message_enum_to_text</link>             (<link linkend="PkMessageEnum">PkMessageEnum</link> message);
<link linkend="PkGroupEnum">PkGroupEnum</link>         <link linkend="pk-group-enum-from-text">pk_group_enum_from_text</link>             (const <link linkend="gchar">gchar</link> *group);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-group-enum-to-text">pk_group_enum_to_text</link>               (<link linkend="PkGroupEnum">PkGroupEnum</link> group);
<link linkend="PkFilterEnum">PkFilterEnum</link>        <link linkend="pk-filter-enum-from-text">pk_filter_enum_from_text</link>            (const <link linkend="gchar">gchar</link> *filter);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-filter-enum-to-text">pk_filter_enum_to_text</link>              (<link linkend="PkFilterEnum">PkFilterEnum</link> filter);
<link linkend="PkProvidesEnum">PkProvidesEnum</link>      <link linkend="pk-provides-enum-from-text">pk_provides_enum_from_text</link>          (const <link linkend="gchar">gchar</link> *provides);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-provides-enum-to-text">pk_provides_enum_to_text</link>            (<link linkend="PkProvidesEnum">PkProvidesEnum</link> provides);
<link linkend="PkLicenseEnum">PkLicenseEnum</link>       <link linkend="pk-license-enum-from-text">pk_license_enum_from_text</link>           (const <link linkend="gchar">gchar</link> *license);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-license-enum-to-text">pk_license_enum_to_text</link>             (<link linkend="PkLicenseEnum">PkLicenseEnum</link> license);
<link linkend="PkDistroUpgradeEnum">PkDistroUpgradeEnum</link>  <link linkend="pk-distro-upgrade-enum-from-text">pk_distro_upgrade_enum_from_text</link>   (const <link linkend="gchar">gchar</link> *upgrade);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-distro-upgrade-enum-to-text">pk_distro_upgrade_enum_to_text</link>      (<link linkend="PkDistroUpgradeEnum">PkDistroUpgradeEnum</link> upgrade);
<link linkend="PkMediaTypeEnum">PkMediaTypeEnum</link>     <link linkend="pk-media-type-enum-from-text">pk_media_type_enum_from_text</link>        (const <link linkend="gchar">gchar</link> *media_type);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-media-type-enum-to-text">pk_media_type_enum_to_text</link>          (<link linkend="PkMediaTypeEnum">PkMediaTypeEnum</link> media_type);
<link linkend="PkAuthorizeEnum">PkAuthorizeEnum</link>     <link linkend="pk-authorize-type-enum-from-text">pk_authorize_type_enum_from_text</link>    (const <link linkend="gchar">gchar</link> *auth_type);
const <link linkend="gchar">gchar</link> *       <link linkend="pk-authorize-type-enum-to-text">pk_authorize_type_enum_to_text</link>      (<link linkend="PkAuthorizeEnum">PkAuthorizeEnum</link> auth_type);
</synopsis>
</refsynopsisdiv>









<refsect1 id="PackageKit-pk-enum.description" role="desc">
<title role="desc.title">Description</title>
<para>
This file contains functions to convert to and from enumerated types.</para>
<para>
</para>
</refsect1>

<refsect1 id="PackageKit-pk-enum.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="PkEnumMatch" role="struct">
<title>PkEnumMatch</title>
<indexterm zone="PkEnumMatch"><primary sortas="PkEnumMatch">PkEnumMatch</primary></indexterm><programlisting>typedef struct {
	guint		 value;
	const gchar	*string;
} PkEnumMatch;
</programlisting>
<para>
Matching an enumerated type to a string</para>
<para>
</para></refsect2>
<refsect2 id="PkRoleEnum" role="enum">
<title>enum PkRoleEnum</title>
<indexterm zone="PkRoleEnum"><primary sortas="PkRoleEnum">PkRoleEnum</primary></indexterm><programlisting>typedef enum {
	PK_ROLE_ENUM_UNKNOWN,
	PK_ROLE_ENUM_CANCEL,
	PK_ROLE_ENUM_GET_DEPENDS,
	PK_ROLE_ENUM_GET_DETAILS,
	PK_ROLE_ENUM_GET_FILES,
	PK_ROLE_ENUM_GET_PACKAGES,
	PK_ROLE_ENUM_GET_REPO_LIST,
	PK_ROLE_ENUM_GET_REQUIRES,
	PK_ROLE_ENUM_GET_UPDATE_DETAIL,
	PK_ROLE_ENUM_GET_UPDATES,
	PK_ROLE_ENUM_INSTALL_FILES,
	PK_ROLE_ENUM_INSTALL_PACKAGES,
	PK_ROLE_ENUM_INSTALL_SIGNATURE,
	PK_ROLE_ENUM_REFRESH_CACHE,
	PK_ROLE_ENUM_REMOVE_PACKAGES,
	PK_ROLE_ENUM_REPO_ENABLE,
	PK_ROLE_ENUM_REPO_SET_DATA,
	PK_ROLE_ENUM_RESOLVE,
	PK_ROLE_ENUM_ROLLBACK,
	PK_ROLE_ENUM_SEARCH_DETAILS,
	PK_ROLE_ENUM_SEARCH_FILE,
	PK_ROLE_ENUM_SEARCH_GROUP,
	PK_ROLE_ENUM_SEARCH_NAME,
	PK_ROLE_ENUM_UPDATE_PACKAGES,
	PK_ROLE_ENUM_UPDATE_SYSTEM,
	PK_ROLE_ENUM_WHAT_PROVIDES,
	PK_ROLE_ENUM_ACCEPT_EULA,
	PK_ROLE_ENUM_DOWNLOAD_PACKAGES,
	PK_ROLE_ENUM_GET_DISTRO_UPGRADES,
	PK_ROLE_ENUM_GET_CATEGORIES,
	PK_ROLE_ENUM_GET_OLD_TRANSACTIONS,
	PK_ROLE_ENUM_SIMULATE_INSTALL_FILES,
	PK_ROLE_ENUM_SIMULATE_INSTALL_PACKAGES,
	PK_ROLE_ENUM_SIMULATE_REMOVE_PACKAGES,
	PK_ROLE_ENUM_SIMULATE_UPDATE_PACKAGES,
	PK_ROLE_ENUM_LAST
} PkRoleEnum;
</programlisting>
<para>
What we were asked to do, this never changes for the lifetime of the
transaction.
Icons that have to represent the whole "aim" of the transaction will use
these constants</para>
<para>
</para></refsect2>
<refsect2 id="PkStatusEnum" role="enum">
<title>enum PkStatusEnum</title>
<indexterm zone="PkStatusEnum"><primary sortas="PkStatusEnum">PkStatusEnum</primary></indexterm><programlisting>typedef enum {
	PK_STATUS_ENUM_UNKNOWN,
	PK_STATUS_ENUM_WAIT,
	PK_STATUS_ENUM_SETUP,
	PK_STATUS_ENUM_RUNNING,
	PK_STATUS_ENUM_QUERY,
	PK_STATUS_ENUM_INFO,
	PK_STATUS_ENUM_REMOVE,
	PK_STATUS_ENUM_REFRESH_CACHE,
	PK_STATUS_ENUM_DOWNLOAD,
	PK_STATUS_ENUM_INSTALL,
	PK_STATUS_ENUM_UPDATE,
	PK_STATUS_ENUM_CLEANUP,
	PK_STATUS_ENUM_OBSOLETE,
	PK_STATUS_ENUM_DEP_RESOLVE,
	PK_STATUS_ENUM_SIG_CHECK,
	PK_STATUS_ENUM_ROLLBACK,
	PK_STATUS_ENUM_TEST_COMMIT,
	PK_STATUS_ENUM_COMMIT,
	PK_STATUS_ENUM_REQUEST,
	PK_STATUS_ENUM_FINISHED,
	PK_STATUS_ENUM_CANCEL,
	PK_STATUS_ENUM_DOWNLOAD_REPOSITORY,
	PK_STATUS_ENUM_DOWNLOAD_PACKAGELIST,
	PK_STATUS_ENUM_DOWNLOAD_FILELIST,
	PK_STATUS_ENUM_DOWNLOAD_CHANGELOG,
	PK_STATUS_ENUM_DOWNLOAD_GROUP,
	PK_STATUS_ENUM_DOWNLOAD_UPDATEINFO,
	PK_STATUS_ENUM_REPACKAGING,
	PK_STATUS_ENUM_LOADING_CACHE,
	PK_STATUS_ENUM_SCAN_APPLICATIONS,
	PK_STATUS_ENUM_GENERATE_PACKAGE_LIST,
	PK_STATUS_ENUM_WAITING_FOR_LOCK,
	PK_STATUS_ENUM_WAITING_FOR_AUTH,
	PK_STATUS_ENUM_SCAN_PROCESS_LIST,
	PK_STATUS_ENUM_CHECK_EXECUTABLE_FILES,
	PK_STATUS_ENUM_CHECK_LIBRARIES,
	PK_STATUS_ENUM_COPY_FILES,
	PK_STATUS_ENUM_LAST
} PkStatusEnum;
</programlisting>
<para>
What status we are now; this can change for each transaction giving a
status of what sort of thing is happening
Icons that change to represent the current status of the transaction will
use these constants
If you add to these, make sure you add filenames in gpk-watch.c also
</para>
<para>
A typical transaction will do:
- schedule task
WAIT
- run task
SETUP
- wait for lock
RUNNING
</para>
<para>
This means that backends should run pk_backend_set_status (backend, PK_STATUS_ENUM_RUNNING)
when they are ready to start running the transaction and after a lock has been got.</para>
<para>
</para></refsect2>
<refsect2 id="PkExitEnum" role="enum">
<title>enum PkExitEnum</title>
<indexterm zone="PkExitEnum"><primary sortas="PkExitEnum">PkExitEnum</primary></indexterm><programlisting>typedef enum {
	PK_EXIT_ENUM_UNKNOWN,
	PK_EXIT_ENUM_SUCCESS,
	PK_EXIT_ENUM_FAILED,
	PK_EXIT_ENUM_CANCELLED,
	PK_EXIT_ENUM_KEY_REQUIRED,
	PK_EXIT_ENUM_EULA_REQUIRED,
	PK_EXIT_ENUM_KILLED, /* when we forced the cancel, but had to SIGKILL */
	PK_EXIT_ENUM_MEDIA_CHANGE_REQUIRED,
	PK_EXIT_ENUM_NEED_UNTRUSTED,
	PK_EXIT_ENUM_LAST
} PkExitEnum;
</programlisting>
<para>
How the backend exited</para>
<para>
</para></refsect2>
<refsect2 id="PkNetworkEnum" role="enum">
<title>enum PkNetworkEnum</title>
<indexterm zone="PkNetworkEnum"><primary sortas="PkNetworkEnum">PkNetworkEnum</primary></indexterm><programlisting>typedef enum {
	PK_NETWORK_ENUM_UNKNOWN,
	PK_NETWORK_ENUM_OFFLINE,
	PK_NETWORK_ENUM_ONLINE,
	PK_NETWORK_ENUM_WIRED,
	PK_NETWORK_ENUM_WIFI,
	PK_NETWORK_ENUM_MOBILE,
	PK_NETWORK_ENUM_LAST
} PkNetworkEnum;
</programlisting>
<para>
</para>
<para>
</para></refsect2>
<refsect2 id="PkFilterEnum" role="enum">
<title>enum PkFilterEnum</title>
<indexterm zone="PkFilterEnum"><primary sortas="PkFilterEnum">PkFilterEnum</primary></indexterm><programlisting>typedef enum {
	PK_FILTER_ENUM_UNKNOWN,
	PK_FILTER_ENUM_NONE,
	PK_FILTER_ENUM_INSTALLED,
	PK_FILTER_ENUM_NOT_INSTALLED,
	PK_FILTER_ENUM_DEVELOPMENT,
	PK_FILTER_ENUM_NOT_DEVELOPMENT,
	PK_FILTER_ENUM_GUI,
	PK_FILTER_ENUM_NOT_GUI,
	PK_FILTER_ENUM_FREE,
	PK_FILTER_ENUM_NOT_FREE,
	PK_FILTER_ENUM_VISIBLE,
	PK_FILTER_ENUM_NOT_VISIBLE,
	PK_FILTER_ENUM_SUPPORTED,
	PK_FILTER_ENUM_NOT_SUPPORTED,
	PK_FILTER_ENUM_BASENAME,
	PK_FILTER_ENUM_NOT_BASENAME,
	PK_FILTER_ENUM_NEWEST,
	PK_FILTER_ENUM_NOT_NEWEST,
	PK_FILTER_ENUM_ARCH,
	PK_FILTER_ENUM_NOT_ARCH,
	PK_FILTER_ENUM_SOURCE,
	PK_FILTER_ENUM_NOT_SOURCE,
	PK_FILTER_ENUM_COLLECTIONS,
	PK_FILTER_ENUM_NOT_COLLECTIONS,
	PK_FILTER_ENUM_APPLICATION,
	PK_FILTER_ENUM_NOT_APPLICATION,
	PK_FILTER_ENUM_LAST,
} PkFilterEnum;
</programlisting>
<para>
The filter types</para>
<para>
</para></refsect2>
<refsect2 id="PkRestartEnum" role="enum">
<title>enum PkRestartEnum</title>
<indexterm zone="PkRestartEnum"><primary sortas="PkRestartEnum">PkRestartEnum</primary></indexterm><programlisting>typedef enum {
	PK_RESTART_ENUM_UNKNOWN,
	PK_RESTART_ENUM_NONE,
	PK_RESTART_ENUM_APPLICATION,
	PK_RESTART_ENUM_SESSION,
	PK_RESTART_ENUM_SYSTEM,
	PK_RESTART_ENUM_SECURITY_SESSION,	/* a library that is being used by this package has been updated for security */
	PK_RESTART_ENUM_SECURITY_SYSTEM,
	PK_RESTART_ENUM_LAST
} PkRestartEnum;
</programlisting>
<para>
What restart we need to after a transaction, ordered by severity</para>
<para>
</para></refsect2>
<refsect2 id="PkMessageEnum" role="enum">
<title>enum PkMessageEnum</title>
<indexterm zone="PkMessageEnum"><primary sortas="PkMessageEnum">PkMessageEnum</primary></indexterm><programlisting>typedef enum {
	PK_MESSAGE_ENUM_UNKNOWN,
	PK_MESSAGE_ENUM_BROKEN_MIRROR,
	PK_MESSAGE_ENUM_CONNECTION_REFUSED,
	PK_MESSAGE_ENUM_PARAMETER_INVALID,
	PK_MESSAGE_ENUM_PRIORITY_INVALID,
	PK_MESSAGE_ENUM_BACKEND_ERROR,
	PK_MESSAGE_ENUM_DAEMON_ERROR,
	PK_MESSAGE_ENUM_CACHE_BEING_REBUILT,
	PK_MESSAGE_ENUM_UNTRUSTED_PACKAGE,
	PK_MESSAGE_ENUM_NEWER_PACKAGE_EXISTS,
	PK_MESSAGE_ENUM_COULD_NOT_FIND_PACKAGE,
	PK_MESSAGE_ENUM_CONFIG_FILES_CHANGED,
	PK_MESSAGE_ENUM_PACKAGE_ALREADY_INSTALLED,
	PK_MESSAGE_ENUM_AUTOREMOVE_IGNORED,
	PK_MESSAGE_ENUM_REPO_METADATA_DOWNLOAD_FAILED,
	PK_MESSAGE_ENUM_LAST
} PkMessageEnum;
</programlisting>
<para>
What message type we need to show</para>
<para>
</para></refsect2>
<refsect2 id="PkErrorEnum" role="enum">
<title>enum PkErrorEnum</title>
<indexterm zone="PkErrorEnum"><primary sortas="PkErrorEnum">PkErrorEnum</primary></indexterm><programlisting>typedef enum {
	PK_ERROR_ENUM_UNKNOWN,
	PK_ERROR_ENUM_OOM,
	PK_ERROR_ENUM_NO_NETWORK,
	PK_ERROR_ENUM_NOT_SUPPORTED,
	PK_ERROR_ENUM_INTERNAL_ERROR,
	PK_ERROR_ENUM_GPG_FAILURE,
	PK_ERROR_ENUM_PACKAGE_ID_INVALID,
	PK_ERROR_ENUM_PACKAGE_NOT_INSTALLED,
	PK_ERROR_ENUM_PACKAGE_NOT_FOUND,
	PK_ERROR_ENUM_PACKAGE_ALREADY_INSTALLED,
	PK_ERROR_ENUM_PACKAGE_DOWNLOAD_FAILED,
	PK_ERROR_ENUM_GROUP_NOT_FOUND,
	PK_ERROR_ENUM_GROUP_LIST_INVALID,
	PK_ERROR_ENUM_DEP_RESOLUTION_FAILED,
	PK_ERROR_ENUM_FILTER_INVALID,
	PK_ERROR_ENUM_CREATE_THREAD_FAILED,
	PK_ERROR_ENUM_TRANSACTION_ERROR,
	PK_ERROR_ENUM_TRANSACTION_CANCELLED,
	PK_ERROR_ENUM_NO_CACHE,
	PK_ERROR_ENUM_REPO_NOT_FOUND,
	PK_ERROR_ENUM_CANNOT_REMOVE_SYSTEM_PACKAGE,
	PK_ERROR_ENUM_PROCESS_KILL,
	PK_ERROR_ENUM_FAILED_INITIALIZATION,
	PK_ERROR_ENUM_FAILED_FINALISE,
	PK_ERROR_ENUM_FAILED_CONFIG_PARSING,
	PK_ERROR_ENUM_CANNOT_CANCEL,
	PK_ERROR_ENUM_CANNOT_GET_LOCK,
	PK_ERROR_ENUM_NO_PACKAGES_TO_UPDATE,
	PK_ERROR_ENUM_CANNOT_WRITE_REPO_CONFIG,
	PK_ERROR_ENUM_LOCAL_INSTALL_FAILED,
	PK_ERROR_ENUM_BAD_GPG_SIGNATURE,
	PK_ERROR_ENUM_MISSING_GPG_SIGNATURE,
	PK_ERROR_ENUM_CANNOT_INSTALL_SOURCE_PACKAGE,
	PK_ERROR_ENUM_REPO_CONFIGURATION_ERROR,
	PK_ERROR_ENUM_NO_LICENSE_AGREEMENT,
	PK_ERROR_ENUM_FILE_CONFLICTS,
	PK_ERROR_ENUM_PACKAGE_CONFLICTS,
	PK_ERROR_ENUM_REPO_NOT_AVAILABLE,
	PK_ERROR_ENUM_INVALID_PACKAGE_FILE,
	PK_ERROR_ENUM_PACKAGE_INSTALL_BLOCKED,
	PK_ERROR_ENUM_PACKAGE_CORRUPT,
	PK_ERROR_ENUM_ALL_PACKAGES_ALREADY_INSTALLED,
	PK_ERROR_ENUM_FILE_NOT_FOUND,
	PK_ERROR_ENUM_NO_MORE_MIRRORS_TO_TRY,
	PK_ERROR_ENUM_NO_DISTRO_UPGRADE_DATA,
	PK_ERROR_ENUM_INCOMPATIBLE_ARCHITECTURE,
	PK_ERROR_ENUM_NO_SPACE_ON_DEVICE,
	PK_ERROR_ENUM_MEDIA_CHANGE_REQUIRED,
	PK_ERROR_ENUM_NOT_AUTHORIZED,
	PK_ERROR_ENUM_UPDATE_NOT_FOUND,
	PK_ERROR_ENUM_CANNOT_INSTALL_REPO_UNSIGNED,
	PK_ERROR_ENUM_CANNOT_UPDATE_REPO_UNSIGNED,
	PK_ERROR_ENUM_CANNOT_GET_FILELIST,
	PK_ERROR_ENUM_CANNOT_GET_REQUIRES,
	PK_ERROR_ENUM_CANNOT_DISABLE_REPOSITORY,
	PK_ERROR_ENUM_RESTRICTED_DOWNLOAD,
	PK_ERROR_ENUM_PACKAGE_FAILED_TO_CONFIGURE,
	PK_ERROR_ENUM_PACKAGE_FAILED_TO_BUILD,
	PK_ERROR_ENUM_PACKAGE_FAILED_TO_INSTALL,
	PK_ERROR_ENUM_PACKAGE_FAILED_TO_REMOVE,
	PK_ERROR_ENUM_UPDATE_FAILED_DUE_TO_RUNNING_PROCESS,
	PK_ERROR_ENUM_LAST
} PkErrorEnum;
</programlisting>
<para>
The error type</para>
<para>
</para></refsect2>
<refsect2 id="PkGroupEnum" role="enum">
<title>enum PkGroupEnum</title>
<indexterm zone="PkGroupEnum"><primary sortas="PkGroupEnum">PkGroupEnum</primary></indexterm><programlisting>typedef enum {
	PK_GROUP_ENUM_UNKNOWN,
	PK_GROUP_ENUM_ACCESSIBILITY,
	PK_GROUP_ENUM_ACCESSORIES,
	PK_GROUP_ENUM_ADMIN_TOOLS,
	PK_GROUP_ENUM_COMMUNICATION,
	PK_GROUP_ENUM_DESKTOP_GNOME,
	PK_GROUP_ENUM_DESKTOP_KDE,
	PK_GROUP_ENUM_DESKTOP_OTHER,
	PK_GROUP_ENUM_DESKTOP_XFCE,
	PK_GROUP_ENUM_EDUCATION,
	PK_GROUP_ENUM_FONTS,
	PK_GROUP_ENUM_GAMES,
	PK_GROUP_ENUM_GRAPHICS,
	PK_GROUP_ENUM_INTERNET,
	PK_GROUP_ENUM_LEGACY,
	PK_GROUP_ENUM_LOCALIZATION,
	PK_GROUP_ENUM_MAPS,
	PK_GROUP_ENUM_MULTIMEDIA,
	PK_GROUP_ENUM_NETWORK,
	PK_GROUP_ENUM_OFFICE,
	PK_GROUP_ENUM_OTHER,
	PK_GROUP_ENUM_POWER_MANAGEMENT,
	PK_GROUP_ENUM_PROGRAMMING,
	PK_GROUP_ENUM_PUBLISHING,
	PK_GROUP_ENUM_REPOS,
	PK_GROUP_ENUM_SECURITY,
	PK_GROUP_ENUM_SERVERS,
	PK_GROUP_ENUM_SYSTEM,
	PK_GROUP_ENUM_VIRTUALIZATION,
	PK_GROUP_ENUM_SCIENCE,
	PK_GROUP_ENUM_DOCUMENTATION,
	PK_GROUP_ENUM_ELECTRONICS,
	PK_GROUP_ENUM_COLLECTIONS,
	PK_GROUP_ENUM_VENDOR,
	PK_GROUP_ENUM_NEWEST,
	PK_GROUP_ENUM_LAST
} PkGroupEnum;
</programlisting>
<para>
The group type</para>
<para>
</para></refsect2>
<refsect2 id="PkUpdateStateEnum" role="enum">
<title>enum PkUpdateStateEnum</title>
<indexterm zone="PkUpdateStateEnum"><primary sortas="PkUpdateStateEnum">PkUpdateStateEnum</primary></indexterm><programlisting>typedef enum {
	PK_UPDATE_STATE_ENUM_UNKNOWN,
	PK_UPDATE_STATE_ENUM_STABLE,
	PK_UPDATE_STATE_ENUM_UNSTABLE,
	PK_UPDATE_STATE_ENUM_TESTING,
	PK_UPDATE_STATE_ENUM_LAST
} PkUpdateStateEnum;
</programlisting>
<para>
What state the update is in</para>
<para>
</para></refsect2>
<refsect2 id="PkInfoEnum" role="enum">
<title>enum PkInfoEnum</title>
<indexterm zone="PkInfoEnum"><primary sortas="PkInfoEnum">PkInfoEnum</primary></indexterm><programlisting>typedef enum {
	PK_INFO_ENUM_UNKNOWN,
	PK_INFO_ENUM_INSTALLED,
	PK_INFO_ENUM_AVAILABLE,
	PK_INFO_ENUM_LOW,
	PK_INFO_ENUM_ENHANCEMENT,
	PK_INFO_ENUM_NORMAL,
	PK_INFO_ENUM_BUGFIX,
	PK_INFO_ENUM_IMPORTANT,
	PK_INFO_ENUM_SECURITY,
	PK_INFO_ENUM_BLOCKED,
	PK_INFO_ENUM_DOWNLOADING,
	PK_INFO_ENUM_UPDATING,
	PK_INFO_ENUM_INSTALLING,
	PK_INFO_ENUM_REMOVING,
	PK_INFO_ENUM_CLEANUP,
	PK_INFO_ENUM_OBSOLETING,
	PK_INFO_ENUM_COLLECTION_INSTALLED,
	PK_INFO_ENUM_COLLECTION_AVAILABLE,
	PK_INFO_ENUM_FINISHED,
	PK_INFO_ENUM_REINSTALLING,
	PK_INFO_ENUM_DOWNGRADING,
	PK_INFO_ENUM_PREPARING,
	PK_INFO_ENUM_DECOMPRESSING,
	PK_INFO_ENUM_LAST
} PkInfoEnum;
</programlisting>
<para>
The enumerated types used in <link linkend="Package"><function>Package()</function></link> - these have to refer to a specific
package action, rather than a general state</para>
<para>
</para></refsect2>
<refsect2 id="PkDistroUpgradeEnum" role="enum">
<title>enum PkDistroUpgradeEnum</title>
<indexterm zone="PkDistroUpgradeEnum"><primary sortas="PkDistroUpgradeEnum">PkDistroUpgradeEnum</primary></indexterm><programlisting>typedef enum {
	PK_DISTRO_UPGRADE_ENUM_UNKNOWN,
	PK_DISTRO_UPGRADE_ENUM_STABLE,
	PK_DISTRO_UPGRADE_ENUM_UNSTABLE,
	PK_DISTRO_UPGRADE_ENUM_LAST
} PkDistroUpgradeEnum;
</programlisting>
<para>
The distro upgrade status</para>
<para>
</para></refsect2>
<refsect2 id="PkSigTypeEnum" role="enum">
<title>enum PkSigTypeEnum</title>
<indexterm zone="PkSigTypeEnum"><primary sortas="PkSigTypeEnum">PkSigTypeEnum</primary></indexterm><programlisting>typedef enum {
	PK_SIGTYPE_ENUM_UNKNOWN,
	PK_SIGTYPE_ENUM_GPG,
	PK_SIGTYPE_ENUM_LAST
} PkSigTypeEnum;
</programlisting>
<para>
The signature type type</para>
<para>
</para></refsect2>
<refsect2 id="PkProvidesEnum" role="enum">
<title>enum PkProvidesEnum</title>
<indexterm zone="PkProvidesEnum"><primary sortas="PkProvidesEnum">PkProvidesEnum</primary></indexterm><programlisting>typedef enum {
	PK_PROVIDES_ENUM_UNKNOWN,
	PK_PROVIDES_ENUM_ANY,
	PK_PROVIDES_ENUM_MODALIAS,
	PK_PROVIDES_ENUM_CODEC,
	PK_PROVIDES_ENUM_MIMETYPE,
	PK_PROVIDES_ENUM_FONT,
	PK_PROVIDES_ENUM_HARDWARE_DRIVER,
	PK_PROVIDES_ENUM_POSTSCRIPT_DRIVER,
	PK_PROVIDES_ENUM_LAST
} PkProvidesEnum;
</programlisting>
<para>
The signature type type</para>
<para>
</para></refsect2>
<refsect2 id="PkLicenseEnum" role="enum">
<title>enum PkLicenseEnum</title>
<indexterm zone="PkLicenseEnum"><primary sortas="PkLicenseEnum">PkLicenseEnum</primary></indexterm><programlisting>typedef enum {
	PK_LICENSE_ENUM_UNKNOWN,
	PK_LICENSE_ENUM_AAL,
	PK_LICENSE_ENUM_ADOBE,
	PK_LICENSE_ENUM_ADSL,
	PK_LICENSE_ENUM_AFL,
	PK_LICENSE_ENUM_AGPLV1,
	PK_LICENSE_ENUM_AMPAS_BSD,
	PK_LICENSE_ENUM_APSL_2_DOT_0,
	PK_LICENSE_ENUM_ARL,
	PK_LICENSE_ENUM_ARPHIC,
	PK_LICENSE_ENUM_ARTISTIC_2_DOT_0,
	PK_LICENSE_ENUM_ARTISTIC_CLARIFIED,
	PK_LICENSE_ENUM_ASL_1_DOT_0,
	PK_LICENSE_ENUM_ASL_1_DOT_1,
	PK_LICENSE_ENUM_ASL_2_DOT_0,
	PK_LICENSE_ENUM_BAEKMUK,
	PK_LICENSE_ENUM_BITTORRENT,
	PK_LICENSE_ENUM_BOOST,
	PK_LICENSE_ENUM_BSD,
	PK_LICENSE_ENUM_BSD_WITH_ADVERTISING,
	PK_LICENSE_ENUM_CATOSL,
	PK_LICENSE_ENUM_CC0,
	PK_LICENSE_ENUM_CC_BY,
	PK_LICENSE_ENUM_CC_BY_SA,
	PK_LICENSE_ENUM_CDDL,
	PK_LICENSE_ENUM_CDL,
	PK_LICENSE_ENUM_CECILL,
	PK_LICENSE_ENUM_CECILL_B,
	PK_LICENSE_ENUM_CECILL_C,
	PK_LICENSE_ENUM_CNRI,
	PK_LICENSE_ENUM_CONDOR,
	PK_LICENSE_ENUM_COPYRIGHT_ONLY,
	PK_LICENSE_ENUM_CPAL,
	PK_LICENSE_ENUM_CPL,
	PK_LICENSE_ENUM_CRYSTAL_STACKER,
	PK_LICENSE_ENUM_DOC,
	PK_LICENSE_ENUM_DSL,
	PK_LICENSE_ENUM_DVIPDFM,
	PK_LICENSE_ENUM_ECL_1_DOT_0,
	PK_LICENSE_ENUM_ECL_2_DOT_0,
	PK_LICENSE_ENUM_ECOS,
	PK_LICENSE_ENUM_EFL_2_DOT_0,
	PK_LICENSE_ENUM_ENTESSA,
	PK_LICENSE_ENUM_EPL,
	PK_LICENSE_ENUM_ERPL,
	PK_LICENSE_ENUM_EUROSYM,
	PK_LICENSE_ENUM_EU_DATAGRID,
	PK_LICENSE_ENUM_FAIR,
	PK_LICENSE_ENUM_FBSDDL,
	PK_LICENSE_ENUM_FREE_ART,
	PK_LICENSE_ENUM_FTL,
	PK_LICENSE_ENUM_GEOGRATIS,
	PK_LICENSE_ENUM_GFDL,
	PK_LICENSE_ENUM_GIFTWARE,
	PK_LICENSE_ENUM_GL2PS,
	PK_LICENSE_ENUM_GLIDE,
	PK_LICENSE_ENUM_GNUPLOT,
	PK_LICENSE_ENUM_GPLV1,
	PK_LICENSE_ENUM_GPLV2,
	PK_LICENSE_ENUM_GPLV2_OR_ARTISTIC,
	PK_LICENSE_ENUM_GPLV2_PLUS,
	PK_LICENSE_ENUM_GPLV2_PLUS_OR_ARTISTIC,
	PK_LICENSE_ENUM_GPLV2_PLUS_WITH_EXCEPTIONS,
	PK_LICENSE_ENUM_GPLV2_WITH_EXCEPTIONS,
	PK_LICENSE_ENUM_GPLV3,
	PK_LICENSE_ENUM_GPLV3_PLUS,
	PK_LICENSE_ENUM_GPLV3_PLUS_WITH_EXCEPTIONS,
	PK_LICENSE_ENUM_GPLV3_WITH_EXCEPTIONS,
	PK_LICENSE_ENUM_GPL_PLUS,
	PK_LICENSE_ENUM_GPL_PLUS_OR_ARTISTIC,
	PK_LICENSE_ENUM_GPL_PLUS_WITH_EXCEPTIONS,
	PK_LICENSE_ENUM_IBM,
	PK_LICENSE_ENUM_IEEE,
	PK_LICENSE_ENUM_IJG,
	PK_LICENSE_ENUM_IMAGEMAGICK,
	PK_LICENSE_ENUM_IMATIX,
	PK_LICENSE_ENUM_IMLIB2,
	PK_LICENSE_ENUM_INTEL_ACPI,
	PK_LICENSE_ENUM_INTERBASE,
	PK_LICENSE_ENUM_IPA,
	PK_LICENSE_ENUM_ISC,
	PK_LICENSE_ENUM_JABBER,
	PK_LICENSE_ENUM_JASPER,
	PK_LICENSE_ENUM_JPYTHON,
	PK_LICENSE_ENUM_KNUTH,
	PK_LICENSE_ENUM_LBNL_BSD,
	PK_LICENSE_ENUM_LGPLV2,
	PK_LICENSE_ENUM_LGPLV2_PLUS,
	PK_LICENSE_ENUM_LGPLV2_PLUS_OR_ARTISTIC,
	PK_LICENSE_ENUM_LGPLV2_PLUS_WITH_EXCEPTIONS,
	PK_LICENSE_ENUM_LGPLV2_WITH_EXCEPTIONS,
	PK_LICENSE_ENUM_LGPLV3,
	PK_LICENSE_ENUM_LGPLV3_PLUS,
	PK_LICENSE_ENUM_LGPLV3_PLUS_WITH_EXCEPTIONS,
	PK_LICENSE_ENUM_LGPLV3_WITH_EXCEPTIONS,
	PK_LICENSE_ENUM_LIBERATION,
	PK_LICENSE_ENUM_LIBTIFF,
	PK_LICENSE_ENUM_LLGPL,
	PK_LICENSE_ENUM_LOGICA,
	PK_LICENSE_ENUM_LPL,
	PK_LICENSE_ENUM_LPPL,
	PK_LICENSE_ENUM_MECAB_IPADIC,
	PK_LICENSE_ENUM_MIROS,
	PK_LICENSE_ENUM_MIT,
	PK_LICENSE_ENUM_MIT_WITH_ADVERTISING,
	PK_LICENSE_ENUM_MOD_MACRO,
	PK_LICENSE_ENUM_MOTOSOTO,
	PK_LICENSE_ENUM_MPLUS,
	PK_LICENSE_ENUM_MPLV1_DOT_0,
	PK_LICENSE_ENUM_MPLV1_DOT_1,
	PK_LICENSE_ENUM_MS_PL,
	PK_LICENSE_ENUM_NAUMEN,
	PK_LICENSE_ENUM_NCSA,
	PK_LICENSE_ENUM_NETCDF,
	PK_LICENSE_ENUM_NETSCAPE,
	PK_LICENSE_ENUM_NEWMAT,
	PK_LICENSE_ENUM_NGPL,
	PK_LICENSE_ENUM_NOKIA,
	PK_LICENSE_ENUM_NOSL,
	PK_LICENSE_ENUM_NOWEB,
	PK_LICENSE_ENUM_OAL,
	PK_LICENSE_ENUM_OFL,
	PK_LICENSE_ENUM_OFSFDL,
	PK_LICENSE_ENUM_OPENLDAP,
	PK_LICENSE_ENUM_OPENPBS,
	PK_LICENSE_ENUM_OPENSSL,
	PK_LICENSE_ENUM_OREILLY,
	PK_LICENSE_ENUM_OSL_1_DOT_0,
	PK_LICENSE_ENUM_OSL_1_DOT_1,
	PK_LICENSE_ENUM_OSL_2_DOT_0,
	PK_LICENSE_ENUM_OSL_2_DOT_1,
	PK_LICENSE_ENUM_OSL_3_DOT_0,
	PK_LICENSE_ENUM_PHORUM,
	PK_LICENSE_ENUM_PHP,
	PK_LICENSE_ENUM_PLEXUS,
	PK_LICENSE_ENUM_PSUTILS,
	PK_LICENSE_ENUM_PUBLIC_DOMAIN,
	PK_LICENSE_ENUM_PUBLIC_USE,
	PK_LICENSE_ENUM_PYTHON,
	PK_LICENSE_ENUM_QHULL,
	PK_LICENSE_ENUM_QPL,
	PK_LICENSE_ENUM_RICEBSD,
	PK_LICENSE_ENUM_RPSL,
	PK_LICENSE_ENUM_RUBY,
	PK_LICENSE_ENUM_SAXPATH,
	PK_LICENSE_ENUM_SCEA,
	PK_LICENSE_ENUM_SCRIP,
	PK_LICENSE_ENUM_SENDMAIL,
	PK_LICENSE_ENUM_SISSL,
	PK_LICENSE_ENUM_SLEEPYCAT,
	PK_LICENSE_ENUM_SLIB,
	PK_LICENSE_ENUM_SNIA,
	PK_LICENSE_ENUM_SPL,
	PK_LICENSE_ENUM_STIX,
	PK_LICENSE_ENUM_TCL,
	PK_LICENSE_ENUM_TMATE,
	PK_LICENSE_ENUM_TPL,
	PK_LICENSE_ENUM_UCD,
	PK_LICENSE_ENUM_VIM,
	PK_LICENSE_ENUM_VNLSL,
	PK_LICENSE_ENUM_VOSTROM,
	PK_LICENSE_ENUM_VSL,
	PK_LICENSE_ENUM_W3C,
	PK_LICENSE_ENUM_WADALAB,
	PK_LICENSE_ENUM_WEBMIN,
	PK_LICENSE_ENUM_WTFPL,
	PK_LICENSE_ENUM_WXWIDGETS,
	PK_LICENSE_ENUM_XANO,
	PK_LICENSE_ENUM_XEROX,
	PK_LICENSE_ENUM_XINETD,
	PK_LICENSE_ENUM_XSKAT,
	PK_LICENSE_ENUM_YPLV1_DOT_1,
	PK_LICENSE_ENUM_ZEND,
	PK_LICENSE_ENUM_ZLIB,
	PK_LICENSE_ENUM_ZLIB_WITH_ACKNOWLEDGEMENT,
	PK_LICENSE_ENUM_ZPLV1_DOT_0,
	PK_LICENSE_ENUM_ZPLV2_DOT_0,
	PK_LICENSE_ENUM_ZPLV2_DOT_1,
	PK_LICENSE_ENUM_LAST
} PkLicenseEnum;
</programlisting>
<para>
</para></refsect2>
<refsect2 id="PkMediaTypeEnum" role="enum">
<title>enum PkMediaTypeEnum</title>
<indexterm zone="PkMediaTypeEnum"><primary sortas="PkMediaTypeEnum">PkMediaTypeEnum</primary></indexterm><programlisting>typedef enum {
	PK_MEDIA_TYPE_ENUM_UNKNOWN,
	PK_MEDIA_TYPE_ENUM_CD,
	PK_MEDIA_TYPE_ENUM_DVD,
	PK_MEDIA_TYPE_ENUM_DISC,
	PK_MEDIA_TYPE_ENUM_LAST
} PkMediaTypeEnum;
</programlisting>
<para>
The media type</para>
<para>
</para></refsect2>
<refsect2 id="PkAuthorizeEnum" role="enum">
<title>enum PkAuthorizeEnum</title>
<indexterm zone="PkAuthorizeEnum"><primary sortas="PkAuthorizeEnum">PkAuthorizeEnum</primary></indexterm><programlisting>typedef enum {
	PK_AUTHORIZE_ENUM_UNKNOWN,
	PK_AUTHORIZE_ENUM_YES,
	PK_AUTHORIZE_ENUM_NO,
	PK_AUTHORIZE_ENUM_INTERACTIVE,
	PK_AUTHORIZE_ENUM_LAST
} PkAuthorizeEnum;
</programlisting>
<para>
The authorization result</para>
<para>
</para></refsect2>
<refsect2 id="pk-enum-test" role="function">
<title>pk_enum_test ()</title>
<indexterm zone="pk-enum-test"><primary sortas="pk_enum_test">pk_enum_test</primary></indexterm><programlisting><link linkend="void">void</link>                pk_enum_test                        (<link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-enum-find-value" role="function">
<title>pk_enum_find_value ()</title>
<indexterm zone="pk-enum-find-value"><primary sortas="pk_enum_find_value">pk_enum_find_value</primary></indexterm><programlisting><link linkend="guint">guint</link>               pk_enum_find_value                  (const <link linkend="PkEnumMatch">PkEnumMatch</link> *table,
                                                         const <link linkend="gchar">gchar</link> *string);</programlisting>
<para>
Search for a string value in a table of constants.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>table</parameter>&#160;:</term>
<listitem><simpara> A <link linkend="PkEnumMatch"><type>PkEnumMatch</type></link> enum table of values
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>string</parameter>&#160;:</term>
<listitem><simpara> the string constant to search for, e.g. "desktop-gnome"
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-enum-find-string" role="function">
<title>pk_enum_find_string ()</title>
<indexterm zone="pk-enum-find-string"><primary sortas="pk_enum_find_string">pk_enum_find_string</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_enum_find_string                 (const <link linkend="PkEnumMatch">PkEnumMatch</link> *table,
                                                         <link linkend="guint">guint</link> value);</programlisting>
<para>
Search for a enum value in a table of constants.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>table</parameter>&#160;:</term>
<listitem><simpara> A <link linkend="PkEnumMatch"><type>PkEnumMatch</type></link> enum table of values
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>value</parameter>&#160;:</term>
<listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the string constant, e.g. "desktop-gnome"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-sig-type-enum-from-text" role="function">
<title>pk_sig_type_enum_from_text ()</title>
<indexterm zone="pk-sig-type-enum-from-text"><primary sortas="pk_sig_type_enum_from_text">pk_sig_type_enum_from_text</primary></indexterm><programlisting><link linkend="PkSigTypeEnum">PkSigTypeEnum</link>       pk_sig_type_enum_from_text          (const <link linkend="gchar">gchar</link> *sig_type);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>sig_type</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-sig-type-enum-to-text" role="function">
<title>pk_sig_type_enum_to_text ()</title>
<indexterm zone="pk-sig-type-enum-to-text"><primary sortas="pk_sig_type_enum_to_text">pk_sig_type_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_sig_type_enum_to_text            (<link linkend="PkSigTypeEnum">PkSigTypeEnum</link> sig_type);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>sig_type</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-info-enum-from-text" role="function">
<title>pk_info_enum_from_text ()</title>
<indexterm zone="pk-info-enum-from-text"><primary sortas="pk_info_enum_from_text">pk_info_enum_from_text</primary></indexterm><programlisting><link linkend="PkInfoEnum">PkInfoEnum</link>          pk_info_enum_from_text              (const <link linkend="gchar">gchar</link> *info);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>info</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-info-enum-to-text" role="function">
<title>pk_info_enum_to_text ()</title>
<indexterm zone="pk-info-enum-to-text"><primary sortas="pk_info_enum_to_text">pk_info_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_info_enum_to_text                (<link linkend="PkInfoEnum">PkInfoEnum</link> info);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>info</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-update-state-enum-from-text" role="function">
<title>pk_update_state_enum_from_text ()</title>
<indexterm zone="pk-update-state-enum-from-text"><primary sortas="pk_update_state_enum_from_text">pk_update_state_enum_from_text</primary></indexterm><programlisting><link linkend="PkUpdateStateEnum">PkUpdateStateEnum</link>   pk_update_state_enum_from_text      (const <link linkend="gchar">gchar</link> *update_state);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>update_state</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. <link linkend="PK-UPDATE-STATE-ENUM-STABLE--CAPS"><literal>PK_UPDATE_STATE_ENUM_STABLE</literal></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-update-state-enum-to-text" role="function">
<title>pk_update_state_enum_to_text ()</title>
<indexterm zone="pk-update-state-enum-to-text"><primary sortas="pk_update_state_enum_to_text">pk_update_state_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_update_state_enum_to_text        (<link linkend="PkUpdateStateEnum">PkUpdateStateEnum</link> update_state);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>update_state</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "testing"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-exit-enum-from-text" role="function">
<title>pk_exit_enum_from_text ()</title>
<indexterm zone="pk-exit-enum-from-text"><primary sortas="pk_exit_enum_from_text">pk_exit_enum_from_text</primary></indexterm><programlisting><link linkend="PkExitEnum">PkExitEnum</link>          pk_exit_enum_from_text              (const <link linkend="gchar">gchar</link> *exit);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>exit</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-exit-enum-to-text" role="function">
<title>pk_exit_enum_to_text ()</title>
<indexterm zone="pk-exit-enum-to-text"><primary sortas="pk_exit_enum_to_text">pk_exit_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_exit_enum_to_text                (<link linkend="PkExitEnum">PkExitEnum</link> exit);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>exit</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-network-enum-from-text" role="function">
<title>pk_network_enum_from_text ()</title>
<indexterm zone="pk-network-enum-from-text"><primary sortas="pk_network_enum_from_text">pk_network_enum_from_text</primary></indexterm><programlisting><link linkend="PkNetworkEnum">PkNetworkEnum</link>       pk_network_enum_from_text           (const <link linkend="gchar">gchar</link> *network);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>network</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-network-enum-to-text" role="function">
<title>pk_network_enum_to_text ()</title>
<indexterm zone="pk-network-enum-to-text"><primary sortas="pk_network_enum_to_text">pk_network_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_network_enum_to_text             (<link linkend="PkNetworkEnum">PkNetworkEnum</link> network);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>network</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-status-enum-from-text" role="function">
<title>pk_status_enum_from_text ()</title>
<indexterm zone="pk-status-enum-from-text"><primary sortas="pk_status_enum_from_text">pk_status_enum_from_text</primary></indexterm><programlisting><link linkend="PkStatusEnum">PkStatusEnum</link>        pk_status_enum_from_text            (const <link linkend="gchar">gchar</link> *status);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>status</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-status-enum-to-text" role="function">
<title>pk_status_enum_to_text ()</title>
<indexterm zone="pk-status-enum-to-text"><primary sortas="pk_status_enum_to_text">pk_status_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_status_enum_to_text              (<link linkend="PkStatusEnum">PkStatusEnum</link> status);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>status</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-role-enum-from-text" role="function">
<title>pk_role_enum_from_text ()</title>
<indexterm zone="pk-role-enum-from-text"><primary sortas="pk_role_enum_from_text">pk_role_enum_from_text</primary></indexterm><programlisting><link linkend="PkRoleEnum">PkRoleEnum</link>          pk_role_enum_from_text              (const <link linkend="gchar">gchar</link> *role);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>role</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-role-enum-to-text" role="function">
<title>pk_role_enum_to_text ()</title>
<indexterm zone="pk-role-enum-to-text"><primary sortas="pk_role_enum_to_text">pk_role_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_role_enum_to_text                (<link linkend="PkRoleEnum">PkRoleEnum</link> role);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>role</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-error-enum-from-text" role="function">
<title>pk_error_enum_from_text ()</title>
<indexterm zone="pk-error-enum-from-text"><primary sortas="pk_error_enum_from_text">pk_error_enum_from_text</primary></indexterm><programlisting><link linkend="PkErrorEnum">PkErrorEnum</link>         pk_error_enum_from_text             (const <link linkend="gchar">gchar</link> *code);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>code</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-error-enum-to-text" role="function">
<title>pk_error_enum_to_text ()</title>
<indexterm zone="pk-error-enum-to-text"><primary sortas="pk_error_enum_to_text">pk_error_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_error_enum_to_text               (<link linkend="PkErrorEnum">PkErrorEnum</link> code);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>code</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-restart-enum-from-text" role="function">
<title>pk_restart_enum_from_text ()</title>
<indexterm zone="pk-restart-enum-from-text"><primary sortas="pk_restart_enum_from_text">pk_restart_enum_from_text</primary></indexterm><programlisting><link linkend="PkRestartEnum">PkRestartEnum</link>       pk_restart_enum_from_text           (const <link linkend="gchar">gchar</link> *restart);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>restart</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-restart-enum-to-text" role="function">
<title>pk_restart_enum_to_text ()</title>
<indexterm zone="pk-restart-enum-to-text"><primary sortas="pk_restart_enum_to_text">pk_restart_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_restart_enum_to_text             (<link linkend="PkRestartEnum">PkRestartEnum</link> restart);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>restart</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-message-enum-from-text" role="function">
<title>pk_message_enum_from_text ()</title>
<indexterm zone="pk-message-enum-from-text"><primary sortas="pk_message_enum_from_text">pk_message_enum_from_text</primary></indexterm><programlisting><link linkend="PkMessageEnum">PkMessageEnum</link>       pk_message_enum_from_text           (const <link linkend="gchar">gchar</link> *message);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-message-enum-to-text" role="function">
<title>pk_message_enum_to_text ()</title>
<indexterm zone="pk-message-enum-to-text"><primary sortas="pk_message_enum_to_text">pk_message_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_message_enum_to_text             (<link linkend="PkMessageEnum">PkMessageEnum</link> message);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>message</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-group-enum-from-text" role="function">
<title>pk_group_enum_from_text ()</title>
<indexterm zone="pk-group-enum-from-text"><primary sortas="pk_group_enum_from_text">pk_group_enum_from_text</primary></indexterm><programlisting><link linkend="PkGroupEnum">PkGroupEnum</link>         pk_group_enum_from_text             (const <link linkend="gchar">gchar</link> *group);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>group</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-group-enum-to-text" role="function">
<title>pk_group_enum_to_text ()</title>
<indexterm zone="pk-group-enum-to-text"><primary sortas="pk_group_enum_to_text">pk_group_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_group_enum_to_text               (<link linkend="PkGroupEnum">PkGroupEnum</link> group);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>group</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-filter-enum-from-text" role="function">
<title>pk_filter_enum_from_text ()</title>
<indexterm zone="pk-filter-enum-from-text"><primary sortas="pk_filter_enum_from_text">pk_filter_enum_from_text</primary></indexterm><programlisting><link linkend="PkFilterEnum">PkFilterEnum</link>        pk_filter_enum_from_text            (const <link linkend="gchar">gchar</link> *filter);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>filter</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-filter-enum-to-text" role="function">
<title>pk_filter_enum_to_text ()</title>
<indexterm zone="pk-filter-enum-to-text"><primary sortas="pk_filter_enum_to_text">pk_filter_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_filter_enum_to_text              (<link linkend="PkFilterEnum">PkFilterEnum</link> filter);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>filter</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-provides-enum-from-text" role="function">
<title>pk_provides_enum_from_text ()</title>
<indexterm zone="pk-provides-enum-from-text"><primary sortas="pk_provides_enum_from_text">pk_provides_enum_from_text</primary></indexterm><programlisting><link linkend="PkProvidesEnum">PkProvidesEnum</link>      pk_provides_enum_from_text          (const <link linkend="gchar">gchar</link> *provides);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>provides</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_PROVIDES_ENUM_MODALIAS
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-provides-enum-to-text" role="function">
<title>pk_provides_enum_to_text ()</title>
<indexterm zone="pk-provides-enum-to-text"><primary sortas="pk_provides_enum_to_text">pk_provides_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_provides_enum_to_text            (<link linkend="PkProvidesEnum">PkProvidesEnum</link> provides);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>provides</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "codec"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-license-enum-from-text" role="function">
<title>pk_license_enum_from_text ()</title>
<indexterm zone="pk-license-enum-from-text"><primary sortas="pk_license_enum_from_text">pk_license_enum_from_text</primary></indexterm><programlisting><link linkend="PkLicenseEnum">PkLicenseEnum</link>       pk_license_enum_from_text           (const <link linkend="gchar">gchar</link> *license);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>license</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-license-enum-to-text" role="function">
<title>pk_license_enum_to_text ()</title>
<indexterm zone="pk-license-enum-to-text"><primary sortas="pk_license_enum_to_text">pk_license_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_license_enum_to_text             (<link linkend="PkLicenseEnum">PkLicenseEnum</link> license);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>license</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "available"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-distro-upgrade-enum-from-text" role="function">
<title>pk_distro_upgrade_enum_from_text ()</title>
<indexterm zone="pk-distro-upgrade-enum-from-text"><primary sortas="pk_distro_upgrade_enum_from_text">pk_distro_upgrade_enum_from_text</primary></indexterm><programlisting><link linkend="PkDistroUpgradeEnum">PkDistroUpgradeEnum</link>  pk_distro_upgrade_enum_from_text   (const <link linkend="gchar">gchar</link> *upgrade);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>upgrade</parameter>&#160;:</term>
<listitem><simpara> Text describing the enumerated type
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_DISTRO_UPGRADE_ENUM_STABLE
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-distro-upgrade-enum-to-text" role="function">
<title>pk_distro_upgrade_enum_to_text ()</title>
<indexterm zone="pk-distro-upgrade-enum-to-text"><primary sortas="pk_distro_upgrade_enum_to_text">pk_distro_upgrade_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_distro_upgrade_enum_to_text      (<link linkend="PkDistroUpgradeEnum">PkDistroUpgradeEnum</link> upgrade);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>upgrade</parameter>&#160;:</term>
<listitem><simpara> The enumerated type value
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "stable"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-media-type-enum-from-text" role="function">
<title>pk_media_type_enum_from_text ()</title>
<indexterm zone="pk-media-type-enum-from-text"><primary sortas="pk_media_type_enum_from_text">pk_media_type_enum_from_text</primary></indexterm><programlisting><link linkend="PkMediaTypeEnum">PkMediaTypeEnum</link>     pk_media_type_enum_from_text        (const <link linkend="gchar">gchar</link> *media_type);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>media_type</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_MEDIA_TYPE_ENUM_CD
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-media-type-enum-to-text" role="function">
<title>pk_media_type_enum_to_text ()</title>
<indexterm zone="pk-media-type-enum-to-text"><primary sortas="pk_media_type_enum_to_text">pk_media_type_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_media_type_enum_to_text          (<link linkend="PkMediaTypeEnum">PkMediaTypeEnum</link> media_type);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>media_type</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "dvd"
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-authorize-type-enum-from-text" role="function">
<title>pk_authorize_type_enum_from_text ()</title>
<indexterm zone="pk-authorize-type-enum-from-text"><primary sortas="pk_authorize_type_enum_from_text">pk_authorize_type_enum_from_text</primary></indexterm><programlisting><link linkend="PkAuthorizeEnum">PkAuthorizeEnum</link>     pk_authorize_type_enum_from_text    (const <link linkend="gchar">gchar</link> *auth_type);</programlisting>
<para>
Converts a text enumerated type to its unsigned integer representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>auth_type</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. PK_AUTHORIZE_ENUM_YES
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-authorize-type-enum-to-text" role="function">
<title>pk_authorize_type_enum_to_text ()</title>
<indexterm zone="pk-authorize-type-enum-to-text"><primary sortas="pk_authorize_type_enum_to_text">pk_authorize_type_enum_to_text</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> *       pk_authorize_type_enum_to_text      (<link linkend="PkAuthorizeEnum">PkAuthorizeEnum</link> auth_type);</programlisting>
<para>
Converts a enumerated type to its text representation</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>auth_type</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the enumerated constant value, e.g. "yes"
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
