summaryrefslogtreecommitdiff
path: root/lib/rpmfi.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-02 12:11:46 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-02 12:11:46 +0200
commit432467a793333c88321fa1b1429673c29a92a25c (patch)
tree5d7e6b95608aafd781d4d82a8bc87933b52a9d7c /lib/rpmfi.h
parentc36bef96bbe016a68007ef715f521a1bfb8f9de0 (diff)
downloadrpm-432467a793333c88321fa1b1429673c29a92a25c.tar.gz
rpm-432467a793333c88321fa1b1429673c29a92a25c.tar.bz2
rpm-432467a793333c88321fa1b1429673c29a92a25c.zip
Move file type enums to rpmfi where it logically belongs
Diffstat (limited to 'lib/rpmfi.h')
-rw-r--r--lib/rpmfi.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/rpmfi.h b/lib/rpmfi.h
index ec460941b..0efa3ade6 100644
--- a/lib/rpmfi.h
+++ b/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)
/**
*/