]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/parse_opt.h
pdate addres for Free Software Foundation
[nfs-utils.git] / utils / mount / parse_opt.h
index fb003c3030a8839200bb03e0b1e808b8b03a55a0..503720727f4bfa8b132c13d60d9117142114f230 100644 (file)
@@ -16,8 +16,8 @@
  *
  * You should have received a copy of the GNU General Public
  * License along with this program; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 021110-1307, USA.
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 0211-1301 USA
  *
  */
 
@@ -32,17 +32,13 @@ typedef enum {
 typedef enum {
        PO_NOT_FOUND = 0,
        PO_FOUND = 1,
+       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 **);
@@ -50,7 +46,10 @@ po_return_t          po_join(struct mount_options *, char **);
 po_return_t            po_append(struct mount_options *, char *);
 po_found_t             po_contains(struct mount_options *, char *);
 char *                 po_get(struct mount_options *, char *);
-po_rightmost_t         po_rightmost(struct mount_options *, char *, char *);
+po_found_t             po_get_numeric(struct mount_options *,
+                                       char *, long *);
+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 *);