extern void *rpmHeaderTagFunc(rpmTag tag);
+/* Convert a 64bit value to network byte order. */
+static uint64_t htonll( uint64_t n ) {
+ uint32_t *i = (uint32_t*)&n;
+ uint32_t b = i[0];
+ i[0] = htonl(i[1]);
+ i[1] = htonl(b);
+ return n;
+}
+
Header headerLink(Header h)
{
if (h == NULL) return NULL;
#include "debug.h"
-uint64_t htonll( uint64_t n ) {
- uint32_t *i = (uint32_t*)&n;
- uint32_t b = i[0];
- i[0] = htonl(i[1]);
- i[1] = htonl(b);
- return n;
-}
#endif
/** \ingroup header
- * Conver a 64bit value to network byte order.
- * @param n a number
- * @return number in network byte order
- */
-RPM_GNUC_INTERNAL
-uint64_t htonll( uint64_t n );
-
-/** \ingroup header
* Set header instance (rpmdb record number)
* @param h header
* @param instance record number