- avoid mucking with header internals directly...
{
return h ? h->instance : 0;
}
+
+void headerSetInstance(Header h, unsigned int instance)
+{
+ h->instance = instance;
+}
uint64_t htonll( uint64_t n );
/** \ingroup header
+ * Set header instance (rpmdb record number)
+ * @param h header
+ * @param instance record number
+ */
+RPM_GNUC_INTERNAL
+void headerSetInstance(Header h, unsigned int instance);
+
+/** \ingroup header
* Return array of locales found in header.
* The array is terminated with a NULL sentinel.
* @param h header
goto top;
return NULL;
}
- mi->mi_h->instance = mi->mi_offset;
+ headerSetInstance(mi->mi_h, mi->mi_offset);
mi->mi_prevoffset = mi->mi_offset;
mi->mi_modified = 0;