Unexport rpmteNew() and rpmteFree()
- the only meaningful way to create transaction elements is by adding things to a transaction through rpmtsAddFooElement(), there's no need to expose these and restrict our ability to change the API when needed
This commit is contained in:
parent
d7c37d8a46
commit
a9cb04fe1c
22
lib/rpmte.h
22
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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue