/* Nanar * $Id: rpmconstant.h,v 1.8 2010/12/01 22:50:01 pkarlsen Exp $ */ #ifndef H_RPMCONSTANT #define H_RPMCONSTANT #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 /* XXX fnpyKey */ #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; /*