Blame lib/rpmtypes.h

2ff057
#ifndef _RPMTYPES_H
2ff057
#define _RPMTYPES_H
2ff057
2ff057
/** \ingroup rpmtypes
2ff057
 * \file lib/rpmtypes.h
2ff057
 *
2ff057
 * Typedefs for RPM abstract data types.
2ff057
 * @todo The grouping needs love to look sane...
2ff057
 */
2ff057
2ff057
#include <stdint.h>
2ff057
2ff057
#ifdef __cplusplus
2ff057
extern "C" {
2ff057
#endif
2ff057
2ff057
typedef const char *    errmsg_t;
2ff057
2ff057
/** \ingroup rpmtypes
2ff057
 *
2ff057
 * RPM header and data retrieval types.
2ff057
 * @{
2ff057
 */
2ff057
typedef struct headerToken_s * Header;
2ff057
typedef struct headerIterator_s * HeaderIterator;
2ff057
2ff057
typedef int32_t		rpm_tag_t;
2ff057
typedef uint32_t	rpm_tagtype_t;
2ff057
typedef uint32_t	rpm_count_t;
2ff057
typedef rpm_tag_t	rpmTagVal;
2ff057
typedef rpm_tag_t	rpmDbiTagVal;
2ff057
2ff057
typedef void *		rpm_data_t;
2ff057
typedef const void *	rpm_constdata_t;
2ff057
2ff057
typedef struct rpmtd_s * rpmtd;
2ff057
2ff057
typedef uint32_t	rpm_color_t;
2ff057
typedef uint32_t	rpm_flag_t;
2ff057
typedef uint32_t	rpm_tid_t;
2ff057
2ff057
typedef uint32_t	rpmFlags;
2ff057
/** @} */
2ff057
2ff057
/** \ingroup rpmtypes
2ff057
 *
2ff057
 * In-header hardcoded sizes for various POSIXy types
2ff057
 * @{
2ff057
 */
2ff057
typedef uint32_t	rpm_off_t;
2ff057
typedef uint64_t	rpm_loff_t;
2ff057
typedef uint32_t	rpm_time_t;
2ff057
typedef uint16_t	rpm_mode_t;
2ff057
typedef uint16_t	rpm_rdev_t;
2ff057
typedef uint32_t	rpm_dev_t;
2ff057
typedef uint32_t	rpm_ino_t;
2ff057
/** @} */
2ff057
2ff057
/** \ingroup rpmtypes
2ff057
 * The main types involved in transaction manipulation 
2ff057
 * @{
2ff057
 */
2ff057
typedef struct rpmts_s * rpmts;
2ff057
typedef struct rpmte_s * rpmte;
2ff057
typedef struct rpmds_s * rpmds;
2ff057
typedef struct rpmfi_s * rpmfi;
2ff057
typedef struct rpmfiles_s * rpmfiles;
2ff057
typedef struct rpmdb_s * rpmdb;
2ff057
typedef struct rpmdbMatchIterator_s * rpmdbMatchIterator;
2ff057
typedef struct rpmtsi_s * rpmtsi;
2ff057
typedef struct rpmps_s * rpmps;
2ff057
typedef struct rpmtxn_s * rpmtxn;
2ff057
2ff057
typedef struct rpmdbIndexIterator_s * rpmdbIndexIterator;
2ff057
typedef const void * fnpyKey;
2ff057
typedef void * rpmCallbackData;
2ff057
/** @} */
2ff057
2ff057
typedef struct rpmPubkey_s * rpmPubkey;
2ff057
typedef struct rpmKeyring_s * rpmKeyring;
2ff057
2ff057
typedef uint32_t rpmsid;
2ff057
typedef struct rpmstrPool_s * rpmstrPool;
2ff057
2ff057
typedef struct rpmPlugin_s * rpmPlugin;
2ff057
typedef struct rpmPlugins_s * rpmPlugins;
2ff057
2ff057
typedef struct rpmgi_s * rpmgi;
2ff057
2ff057
typedef struct rpmSpec_s * rpmSpec;
2ff057
2ff057
typedef struct rpmRelocation_s rpmRelocation;
2ff057
2ff057
2ff057
/** \ingroup rpmtypes 
2ff057
 * RPM IO file descriptor type
2ff057
 */
2ff057
typedef struct _FD_s * FD_t;
2ff057
2ff057
/** \ingroup rpmtypes
2ff057
 * Package read return codes.
2ff057
 */
2ff057
typedef	enum rpmRC_e {
2ff057
    RPMRC_OK		= 0,	/*!< Generic success code */
2ff057
    RPMRC_NOTFOUND	= 1,	/*!< Generic not found code. */
2ff057
    RPMRC_FAIL		= 2,	/*!< Generic failure code. */
2ff057
    RPMRC_NOTTRUSTED	= 3,	/*!< Signature is OK, but key is not trusted. */
2ff057
    RPMRC_NOKEY		= 4	/*!< Public key is unavailable. */
2ff057
} rpmRC;
2ff057
2ff057
#ifdef __cplusplus
2ff057
}
2ff057
#endif
2ff057
2ff057
/* XXX included late as rpmtag.h depends on our definitions here... */
2ff057
#include <rpm/rpmtag.h>
2ff057
2ff057
#endif /* _RPMTYPES_H */