summaryrefslogtreecommitdiffstats
path: root/shlibs/blkid/src/blkidP.h
diff options
context:
space:
mode:
authorKarel Zak2010-02-18 11:09:46 +0100
committerKarel Zak2010-02-18 11:29:17 +0100
commit220c60151dad64bb79fef28552f02003cf735a36 (patch)
tree38fc9e1ec096ab625c0dd946dea748a46eef0d1c /shlibs/blkid/src/blkidP.h
parentlibblkid: fix ZSF detection (diff)
downloadkernel-qcow2-util-linux-220c60151dad64bb79fef28552f02003cf735a36.tar.gz
kernel-qcow2-util-linux-220c60151dad64bb79fef28552f02003cf735a36.tar.xz
kernel-qcow2-util-linux-220c60151dad64bb79fef28552f02003cf735a36.zip
libblkid: add generic functions for sysfs attributes
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/blkid/src/blkidP.h')
-rw-r--r--shlibs/blkid/src/blkidP.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/shlibs/blkid/src/blkidP.h b/shlibs/blkid/src/blkidP.h
index 377cf0e55..7dc39fc30 100644
--- a/shlibs/blkid/src/blkidP.h
+++ b/shlibs/blkid/src/blkidP.h
@@ -21,6 +21,7 @@
#include <sys/stat.h>
#include <stdio.h>
#include <stdarg.h>
+#include <stdint.h>
#include "c.h"
#include "bitops.h" /* $(top_srcdir)/include/ */
@@ -331,6 +332,9 @@ struct dir_list {
};
extern void blkid__scan_dir(char *, dev_t, struct dir_list **, char **);
extern int blkid_driver_has_major(const char *drvname, int major);
+extern int blkid_devno_has_attribute(dev_t devno, const char *attribute);
+extern int blkid_devno_get_attribute(dev_t devno, const char *attribute,
+ uint64_t *result);
/* lseek.c */
extern blkid_loff_t blkid_llseek(int fd, blkid_loff_t offset, int whence);