Signed-off-by: Karel Zak <kzak@redhat.com>
extern int mnt_opt_has_value(struct libmnt_opt *opt);
extern const char *mnt_opt_get_value(struct libmnt_opt *opt);
extern const char *mnt_opt_get_name(struct libmnt_opt *opt);
+extern const struct libmnt_optmap *mnt_opt_get_map(struct libmnt_opt *opt);
+extern const struct libmnt_optmap *mnt_opt_get_mapent(struct libmnt_opt *opt);
extern int mnt_opt_set_external(struct libmnt_opt *opt, int enable);
extern int mnt_opt_set_value(struct libmnt_opt *opt, const char *str);
extern int mnt_opt_set_u64value(struct libmnt_opt *opt, uint64_t num);
return opt->name;
}
+const struct libmnt_optmap *mnt_opt_get_map(struct libmnt_opt *opt)
+{
+ return opt->map;
+}
+
+const struct libmnt_optmap *mnt_opt_get_mapent(struct libmnt_opt *opt)
+{
+ return opt->ent;
+}
+
int mnt_opt_set_value(struct libmnt_opt *opt, const char *str)
{
return strdup_to_struct_member(opt, value, str);