Move file type enums to rpmfi where it logically belongs
This commit is contained in:
parent
c36bef96bb
commit
432467a793
17
lib/rpmfi.h
17
lib/rpmfi.h
|
@ -14,6 +14,23 @@ extern "C" {
|
|||
|
||||
extern int _rpmfi_debug;
|
||||
|
||||
/** \ingroup rpmfi
|
||||
* File types.
|
||||
* These are the file types used internally by rpm. The file
|
||||
* type is determined by applying stat(2) macros like S_ISDIR to
|
||||
* the file mode tag from a header. The values are arbitrary,
|
||||
* but are identical to the linux stat(2) file types.
|
||||
*/
|
||||
typedef enum rpmFileTypes_e {
|
||||
PIPE = 1, /*!< pipe/fifo */
|
||||
CDEV = 2, /*!< character device */
|
||||
XDIR = 4, /*!< directory */
|
||||
BDEV = 6, /*!< block device */
|
||||
REG = 8, /*!< regular file */
|
||||
LINK = 10, /*!< hard link */
|
||||
SOCK = 12 /*!< socket */
|
||||
} rpmFileTypes;
|
||||
|
||||
#if defined(_RPMFI_INTERNAL)
|
||||
/**
|
||||
*/
|
||||
|
|
17
lib/rpmlib.h
17
lib/rpmlib.h
|
@ -683,23 +683,6 @@ typedef enum rpmFileAction_e {
|
|||
#define XFA_SKIPPING(_a) \
|
||||
((_a) == FA_SKIP || (_a) == FA_SKIPNSTATE || (_a) == FA_SKIPNETSHARED || (_a) == FA_SKIPCOLOR)
|
||||
|
||||
/**
|
||||
* File types.
|
||||
* These are the file types used internally by rpm. The file
|
||||
* type is determined by applying stat(2) macros like S_ISDIR to
|
||||
* the file mode tag from a header. The values are arbitrary,
|
||||
* but are identical to the linux stat(2) file types.
|
||||
*/
|
||||
typedef enum rpmFileTypes_e {
|
||||
PIPE = 1, /*!< pipe/fifo */
|
||||
CDEV = 2, /*!< character device */
|
||||
XDIR = 4, /*!< directory */
|
||||
BDEV = 6, /*!< block device */
|
||||
REG = 8, /*!< regular file */
|
||||
LINK = 10, /*!< hard link */
|
||||
SOCK = 12 /*!< socket */
|
||||
} rpmFileTypes;
|
||||
|
||||
/** \ingroup header
|
||||
* Perform simple sanity and range checks on header tag(s).
|
||||
* @param il no. of tags in header
|
||||
|
|
Loading…
Reference in New Issue