Signed-off-by: Karel Zak <kzak@redhat.com>
static int blkid_probe_set_usage(blkid_probe pr, int usage);
-int blkid_known_fstype(const char *fstype)
-{
- int i;
-
- if (!fstype)
- return 0;
-
- for (i = 0; i < ARRAY_SIZE(idinfos); i++) {
- const struct blkid_idinfo *id = idinfos[i];
- if (strcmp(id->name, fstype) == 0)
- return 1;
- }
- return 0;
-}
-
/*
* Returns a pointer to the newly allocated probe struct
*/
};
+/**
+ * blkid_known_fstype:
+ * @fstype: filesystem name
+ *
+ * Returns: 1 for known filesytems, or 0 for unknown filesystem.
+ */
+int blkid_known_fstype(const char *fstype)
+{
+ int i;
+
+ if (!fstype)
+ return 0;
+
+ for (i = 0; i < ARRAY_SIZE(idinfos); i++) {
+ const struct blkid_idinfo *id = idinfos[i];
+ if (strcmp(id->name, fstype) == 0)
+ return 1;
+ }
+ return 0;
+}
+
/*
* The blkid_do_probe() backend.
*/