22 *reinterpret_cast<SimpleOptionsParser *>(opts));
39 bool retval = opts->
GetValue(key, &arg);
42 char *result = strdup(arg.c_str());
49 char *result = strdup(opts->
Dump().c_str());
66 result->
SetValue(
"CVMFS_MOUNT_DIR",
"/cvmfs");
73 const char *key,
const
82 return result ? 0 : -1;
int cvmfs_options_parse(cvmfs_option_map *opts, const char *path)
void cvmfs_options_parse_default(cvmfs_option_map *opts, const char *fqrn)
void set_taint_environment(bool value)
cvmfs_option_map * cvmfs_options_clone(cvmfs_option_map *opts)
cvmfs_option_map * cvmfs_options_init()
assert((mem||(size==0))&&"Out Of Memory")
void cvmfs_options_set(cvmfs_option_map *opts, const char *key, const char *value)
void ParseDefault(const std::string &fqrn)
void SetValue(const std::string &key, const std::string &value)
void cvmfs_options_fini(cvmfs_option_map *opts)
bool TryParsePath(const std::string &config_file)
char * cvmfs_options_get(cvmfs_option_map *opts, const char *key)
char * cvmfs_options_dump(cvmfs_option_map *opts)
cvmfs_option_map * cvmfs_options_init_v2(int taint_environ)
bool GetValue(const std::string &key, std::string *value) const
void cvmfs_options_free(char *value)
void cvmfs_options_unset(cvmfs_option_map *opts, const char *key)
void UnsetValue(const std::string &key)