X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fparse_opt.h;h=2c0b5f4e5b3d1e597c92a563e7adcfb6b8dc9fee;hp=199630f85625b69d8d5074e95450e4ac5cd15a67;hb=2498a68b1bec01d0ee8a63962b314140e8289036;hpb=b5009d23525181846777349f2fc0e4a72b89d24d diff --git a/utils/mount/parse_opt.h b/utils/mount/parse_opt.h index 199630f..2c0b5f4 100644 --- a/utils/mount/parse_opt.h +++ b/utils/mount/parse_opt.h @@ -35,15 +35,10 @@ typedef enum { PO_BAD_VALUE = 2, } po_found_t; -typedef enum { - PO_KEY1_RIGHTMOST = -1, - PO_NEITHER_FOUND = 0, - PO_KEY2_RIGHTMOST = 1, -} po_rightmost_t; - struct mount_options; struct mount_options * po_split(char *); +struct mount_options * po_dup(struct mount_options *); void po_replace(struct mount_options *, struct mount_options *); po_return_t po_join(struct mount_options *, char **); @@ -53,7 +48,8 @@ po_found_t po_contains(struct mount_options *, char *); char * po_get(struct mount_options *, char *); po_found_t po_get_numeric(struct mount_options *, char *, long *); -po_rightmost_t po_rightmost(struct mount_options *, char *, char *); +int po_rightmost(struct mount_options *, + const char *keys[]); po_found_t po_remove_all(struct mount_options *, char *); void po_destroy(struct mount_options *);