diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-01-30 13:03:54 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-01-30 13:03:54 +0200 |
commit | 7751f84bf03076eb6ad90ad0d10144846726bdfb (patch) | |
tree | 474d78ba21e4fb55d416f9064b3afb99c7ec2992 /lib/rpmlib.h | |
parent | ecabf137102a980528f166b9690efb8adbcef95f (diff) | |
download | rpm-7751f84bf03076eb6ad90ad0d10144846726bdfb.tar.gz rpm-7751f84bf03076eb6ad90ad0d10144846726bdfb.tar.bz2 rpm-7751f84bf03076eb6ad90ad0d10144846726bdfb.zip |
Move HGE and related prototypes to header.h
Diffstat (limited to 'lib/rpmlib.h')
-rw-r--r-- | lib/rpmlib.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/lib/rpmlib.h b/lib/rpmlib.h index 20dc180bb..fdc6316a6 100644 --- a/lib/rpmlib.h +++ b/lib/rpmlib.h @@ -125,81 +125,6 @@ void rpmSetTables(int archTable, int osTable); */ void rpmFreeRpmrc(void); -/* ==================================================================== */ -/** \name RPMTS */ -/** - * Prototype for headerFreeData() vector. - * - * @param data address of data (or NULL) - * @param type type of data (or to force free) - * @return NULL always - */ -typedef - void * (*HFD_t) (rpm_data_t data, rpm_tagtype_t type); - -/** - * Prototype for headerGetEntry() vector. - * - * Will never return RPM_I18NSTRING_TYPE! RPM_STRING_TYPE elements with - * RPM_I18NSTRING_TYPE equivalent entries are translated (if HEADER_I18NTABLE - * entry is present). - * - * @param h header - * @param tag tag - * @retval type address of tag value data type (or NULL) - * @retval p address of pointer to tag value(s) (or NULL) - * @retval c address of number of values (or NULL) - * @return 1 on success, 0 on failure - */ -typedef int (*HGE_t) (Header h, rpm_tag_t tag, - rpm_tagtype_t * type, - rpm_data_t * p, - rpm_count_t * c); - -/** - * Prototype for headerAddEntry() vector. - * - * Duplicate tags are okay, but only defined for iteration (with the - * exceptions noted below). While you are allowed to add i18n string - * arrays through this function, you probably don't mean to. See - * headerAddI18NString() instead. - * - * @param h header - * @param tag tag - * @param type tag value data type - * @param p pointer to tag value(s) - * @param c number of values - * @return 1 on success, 0 on failure - */ -typedef int (*HAE_t) (Header h, rpm_tag_t tag, rpm_tagtype_t type, - rpm_constdata_t p, rpm_count_t c); - -/** - * Prototype for headerModifyEntry() vector. - * If there are multiple entries with this tag, the first one gets replaced. - * - * @param h header - * @param tag tag - * @param type tag value data type - * @param p pointer to tag value(s) - * @param c number of values - * @return 1 on success, 0 on failure - */ -typedef int (*HME_t) (Header h, rpm_tag_t tag, rpm_tagtype_t type, - rpm_constdata_t p, rpm_count_t c); - -/** - * Prototype for headerRemoveEntry() vector. - * Delete tag in header. - * Removes all entries of type tag from the header, returns 1 if none were - * found. - * - * @param h header - * @param tag tag - * @return 0 on success, 1 on failure (INCONSISTENT) - */ -typedef int (*HRE_t) (Header h, rpm_tag_t tag); - /** * Compare headers to determine which header is "newer". * @param first 1st header |