]> err.no Git - util-linux/commitdiff
libblkid: refresh blkid.{h,sym}
authorKarel Zak <kzak@redhat.com>
Tue, 15 Sep 2009 21:14:50 +0000 (23:14 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Sep 2009 08:57:24 +0000 (10:57 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/blkid.h
shlibs/blkid/src/blkid.sym

index a1cfe90cc74e5cde7e9fe9179294ef8025df94b0..a4328a7db07f0e9fee4f9259daebe7592cd69361 100644 (file)
@@ -43,13 +43,13 @@ typedef struct blkid_struct_dev_iterate *blkid_dev_iterate;
  * Flags for blkid_get_dev
  *
  * BLKID_DEV_CREATE    Create an empty device structure if not found
- *                     in the cache.
+ *                     in the cache.
  * BLKID_DEV_VERIFY    Make sure the device structure corresponds
- *                     with reality.
+ *                     with reality.
  * BLKID_DEV_FIND      Just look up a device entry, and return NULL
- *                     if it is not found.
+ *                     if it is not found.
  * BLKID_DEV_NORMAL    Get a valid device structure, either from the
- *                     cache or by probing the device.
+ *                     cache or by probing the device.
  */
 #define BLKID_DEV_FIND         0x0000
 #define BLKID_DEV_CREATE       0x0001
@@ -121,7 +121,6 @@ extern char *blkid_evaluate_tag(const char *token, const char *value,
                                blkid_cache *cache);
 
 /* probe.c */
-extern int blkid_known_fstype(const char *fstype);
 extern blkid_probe blkid_new_probe(void);
 extern void blkid_free_probe(blkid_probe pr);
 extern void blkid_reset_probe(blkid_probe pr);
@@ -136,6 +135,9 @@ extern unsigned int blkid_probe_get_sectorsize(blkid_probe pr);
 /*
  * superblocks probing
  */
+extern int blkid_known_fstype(const char *fstype);
+extern int blkid_probe_enable_superblocks(blkid_probe pr, int enable);
+
 #define BLKID_SUBLKS_LABEL     (1 << 1) /* read LABEL from superblock */
 #define BLKID_SUBLKS_LABELRAW  (1 << 2) /* read and define LABEL_RAW result value*/
 #define BLKID_SUBLKS_UUID      (1 << 3) /* read UUID from superblock */
@@ -148,16 +150,27 @@ extern unsigned int blkid_probe_get_sectorsize(blkid_probe pr);
 #define BLKID_SUBLKS_DEFAULT   (BLKID_SUBLKS_LABEL | BLKID_SUBLKS_UUID | \
                                 BLKID_SUBLKS_TYPE | BLKID_SUBLKS_SECTYPE)
 
+extern int blkid_probe_set_superblocks_flags(blkid_probe pr, int flags);
+
+extern int blkid_probe_reset_superblocks_filter(blkid_probe pr);
+extern int blkid_probe_invert_superblocks_filter(blkid_probe pr);
+
+#define BLKID_FLTR_NOTIN               1
+#define BLKID_FLTR_ONLYIN              2
+extern int blkid_probe_filter_superblocks_type(blkid_probe pr, int flag, char *names[]);
+
 #define BLKID_USAGE_FILESYSTEM         (1 << 1)
 #define BLKID_USAGE_RAID               (1 << 2)
 #define BLKID_USAGE_CRYPTO             (1 << 3)
 #define BLKID_USAGE_OTHER              (1 << 4)
+extern int blkid_probe_filter_superblocks_usage(blkid_probe pr, int flag, int usage);
 
-#define BLKID_FLTR_NOTIN               1
-#define BLKID_FLTR_ONLYIN              2
-
+/*
+ * NAME=value low-level interface
+ */
 extern int blkid_do_probe(blkid_probe pr);
 extern int blkid_do_safeprobe(blkid_probe pr);
+extern int blkid_do_fullprobe(blkid_probe pr);
 
 extern int blkid_probe_numof_values(blkid_probe pr);
 extern int blkid_probe_get_value(blkid_probe pr, int num, const char **name,
@@ -166,7 +179,6 @@ extern int blkid_probe_lookup_value(blkid_probe pr, const char *name,
                         const char **data, size_t *len);
 extern int blkid_probe_has_value(blkid_probe pr, const char *name);
 
-
 /***
  * Deprecated functions/macros
  */
index 562f44d0c55b35c54af087fcb9ad0327e02a06e4..86eae1a3f0fb57b8e281da6783672073354c2a60 100644 (file)
@@ -66,3 +66,19 @@ global:
        blkid_send_uevent;
 } BLKID_1.0;
 
+/*
+ * version(s) since util-linux-ng 2.17
+ */
+BLKID_2.17 {
+global:
+       blkid_do_fullprobe;
+       blkid_probe_enable_superblocks;
+       blkid_probe_filter_superblocks_type;
+       blkid_probe_filter_superblocks_usage;
+       blkid_probe_get_devno;
+       blkid_probe_get_sectorsize;
+       blkid_probe_get_size;
+       blkid_probe_invert_superblocks_filter;
+       blkid_probe_reset_superblocks_filter;
+       blkid_probe_set_superblocks_flags;
+} BLKID_2.15;