/* Nanar * $Id$ */ #ifndef H_RPMCONSTANT #define H_RPMCONSTANT #ifndef xcalloc #define xcalloc(n,s) calloc((n),(s)) #endif #define PREFIXED_YES 0 #define PREFIXED_NO 1 #define WITH_PREFIX (1 << 0) #define WITHOUT_PREFIX (1 << 1) #define ALLCASE_PREFIX (WITH_PREFIX | WITHOUT_PREFIX) /** * \ingroup rpmconstant * \file rpmconstant.h * */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include /** * A constant pair name/value */ typedef /*@abstract@*/ struct rpmconstant_s *rpmconstant; /** * A constant list set */ typedef /*@abstract@*/ struct rpmconstantlist_s * rpmconstantlist; typedef struct rpmconst_s * rpmconst; #ifdef RPMCONSTANT_INTERNAL /** * A constant pair name/value */ struct rpmconstant_s { const char * name; /*!< Constant name. */ /*@null@*/ int value; /*!< Constant value. */ }; /** * A contantlist entry */ struct rpmconstantlist_s { const rpmconstant constant; /*