diff --git a/lib/rpmte.h b/lib/rpmte.h index c87af5346..0d1fc8d95 100644 --- a/lib/rpmte.h +++ b/lib/rpmte.h @@ -20,28 +20,6 @@ typedef enum rpmElementType_e { TR_REMOVED = (1 << 1) /*!< Package will be removed. */ } rpmElementType; -/** \ingroup rpmte - * Destroy a transaction element. - * @param te transaction element - * @return NULL always - */ -rpmte rpmteFree(rpmte te); - -/** \ingroup rpmte - * Create a transaction element. - * @param ts unused - * @param h header - * @param type TR_ADDED/TR_REMOVED - * @param key (TR_ADDED) package retrieval key (e.g. file name) - * @param relocs (TR_ADDED) package file relocations - * @param dboffset unused - * @return new transaction element - */ -rpmte rpmteNew(const rpmts ts, Header h, rpmElementType type, - fnpyKey key, - rpmRelocation * relocs, - int dboffset); - /** \ingroup rpmte * Retrieve header from transaction element. * @param te transaction element diff --git a/lib/rpmte_internal.h b/lib/rpmte_internal.h index 87f4d5fb8..160409d61 100644 --- a/lib/rpmte_internal.h +++ b/lib/rpmte_internal.h @@ -21,6 +21,30 @@ typedef enum pkgGoal_e { */ typedef struct tsortInfo_s * tsortInfo; +/** \ingroup rpmte + * Create a transaction element. + * @param ts unused + * @param h header + * @param type TR_ADDED/TR_REMOVED + * @param key (TR_ADDED) package retrieval key (e.g. file name) + * @param relocs (TR_ADDED) package file relocations + * @param dboffset unused + * @return new transaction element + */ +RPM_GNUC_INTERNAL +rpmte rpmteNew(const rpmts ts, Header h, rpmElementType type, + fnpyKey key, + rpmRelocation * relocs, + int dboffset); + +/** \ingroup rpmte + * Destroy a transaction element. + * @param te transaction element + * @return NULL always + */ +RPM_GNUC_INTERNAL +rpmte rpmteFree(rpmte te); + RPM_GNUC_INTERNAL rpmfi rpmteSetFI(rpmte te, rpmfi fi); diff --git a/lib/rpmts.c b/lib/rpmts.c index 42556db98..433160d95 100644 --- a/lib/rpmts.c +++ b/lib/rpmts.c @@ -23,6 +23,7 @@ #include "rpmio/digest.h" #include "lib/rpmal.h" #include "lib/rpmts_internal.h" +#include "lib/rpmte_internal.h" #include "lib/misc.h" #include "debug.h"