Add macro %isu_package to generate ISU Package
[platform/upstream/rpm.git] / lib / misc.h
1 #ifndef H_MISC
2 #define H_MISC
3
4 /**
5  * \file lib/misc.h
6  *
7  */
8
9 #include <string.h>
10 #include <rpm/rpmtypes.h>
11 #include <rpm/header.h>         /* for headerGetFlags typedef, duh.. */
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 /* known arch? */
18 RPM_GNUC_INTERNAL
19 int rpmIsKnownArch(const char *name);
20
21 RPM_GNUC_INTERNAL
22 char * rpmVerifyString(uint32_t verifyResult, const char *pad);
23
24 RPM_GNUC_INTERNAL
25 char * rpmFFlagsString(uint32_t fflags, const char *pad);
26
27 typedef char * (*headerTagFormatFunction) (rpmtd td);
28 typedef int (*headerTagTagFunction) (Header h, rpmtd td, headerGetFlags hgflags);
29
30 RPM_GNUC_INTERNAL
31 headerTagTagFunction rpmHeaderTagFunc(rpmTagVal tag);
32
33 RPM_GNUC_INTERNAL
34 headerTagFormatFunction rpmHeaderFormatFuncByName(const char *fmt);
35
36 RPM_GNUC_INTERNAL
37 headerTagFormatFunction rpmHeaderFormatFuncByValue(rpmtdFormats fmt);
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif  /* H_MISC */