CernVM-FS
2.12.0
|
#include "cvmfs_config.h"
#include "libcvmfs.h"
#include <cstdio>
#include <cstring>
#include <string>
#include "libcvmfs_int.h"
#include "loader.h"
#include "options.h"
#include "util/string.h"
Go to the source code of this file.
Classes | |
struct | cvmfs_repo_options |
struct | cvmfs_global_options |
struct | cvmfs_options< DerivedT > |
Macros | |
#define | CVMFS_OPT(var) |
Typedefs | |
typedef cvmfs_options < cvmfs_repo_options > | repo_options |
typedef cvmfs_options < cvmfs_global_options > | global_options |
Functions | |
static int | set_option (char const *name, char const *value, bool *var) |
static int | set_option (char const *name, char const *value, unsigned *var) |
static int | set_option (char const *name, char const *value, int *var) |
static int | set_option (char const *name, char const *value, string *var) |
static void | usage () |
static int | TranslateReturnValue (loader::Failures code) |
SimpleOptionsParser * | cvmfs_options_init_legacy (char const *legacy_options) |
int | cvmfs_init (char const *options) |
SimpleOptionsParser * | cvmfs_options_clone_legacy (SimpleOptionsParser *opts, const char *legacy_options) |
LibContext * | cvmfs_attach_repo (char const *options) |
#define CVMFS_OPT | ( | var | ) |
Definition at line 65 of file libcvmfs_legacy.cc.
Referenced by cvmfs_repo_options::set_option(), and cvmfs_global_options::set_option().
Definition at line 270 of file libcvmfs_legacy.cc.
typedef cvmfs_options<cvmfs_repo_options> repo_options |
Definition at line 269 of file libcvmfs_legacy.cc.
LibContext* cvmfs_attach_repo | ( | char const * | options | ) |
Initialize a CVMFS remote repository. Legacy. Use cvmfs_attach_repo_v2().
[in] | options,option1,option2,... |
Definition at line 490 of file libcvmfs_legacy.cc.
int cvmfs_init | ( | char const * | options | ) |
Initialize global CVMFS library structures. Legacy. Use cvmfs_init_v2(). Note: this must be called before any of the following functions.
[in] | options,option1,option2,... |
Definition at line 433 of file libcvmfs_legacy.cc.
SimpleOptionsParser* cvmfs_options_clone_legacy | ( | SimpleOptionsParser * | opts, |
const char * | legacy_options | ||
) |
SimpleOptionsParser* cvmfs_options_init_legacy | ( | const char * | legacy_options | ) |
Creates a new option map based on the legacy option string that would be passed to the legacy function cvmfs_init(). Returns NULL if legacy_options is invalid.
Definition at line 391 of file libcvmfs_legacy.cc.
Referenced by cvmfs_init().
|
static |
Definition at line 22 of file libcvmfs_legacy.cc.
Referenced by cvmfs_options< DerivedT >::parse_options(), and cvmfs_options< DerivedT >::set_option().
|
static |
Definition at line 33 of file libcvmfs_legacy.cc.
|
static |
Definition at line 46 of file libcvmfs_legacy.cc.
|
static |
Definition at line 59 of file libcvmfs_legacy.cc.
|
static |
Translates from loader::Failure codes to legacy LIBCVMFS_FAIL_... constants.
Definition at line 342 of file libcvmfs_legacy.cc.
Referenced by cvmfs_init().
|
static |
Display the usage message.
Definition at line 275 of file libcvmfs_legacy.cc.
Referenced by cvmfs_attach_repo(), cvmfs_init(), and cvmfs_options_init_legacy().