Issue build-time deprecation warnings for unsafe header interfaces

headerLoad(), headerCopyLoad() and headerUnload() have been deprecated
as unsafe since rpm 4.10, time to start pushing them out for real.
The first two are unsafe because they don't take argument for size,
the last one is because it doesn't return one so it forces using the
unsafe variants.
This commit is contained in:
Panu Matilainen 2021-03-10 14:19:08 +02:00
parent 07858c0d60
commit c3940ad387
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,7 @@ unsigned int headerSizeof(Header h, int magicp);
* @param h header (with pointers)
* @return on-disk header blob (i.e. with offsets)
*/
RPM_GNUC_DEPRECATED
void * headerUnload(Header h);
/** \ingroup header
@ -100,6 +101,7 @@ Header headerCopy(Header h);
* @param uh on-disk header blob (i.e. with offsets)
* @return header
*/
RPM_GNUC_DEPRECATED
Header headerLoad(void * uh);
/** \ingroup header
@ -108,6 +110,7 @@ Header headerLoad(void * uh);
* @param uh on-disk header blob (i.e. with offsets)
* @return header
*/
RPM_GNUC_DEPRECATED
Header headerCopyLoad(const void * uh);
enum headerImportFlags_e {