CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
libcvmfs_legacy.cc File Reference
#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"
Include dependency graph for libcvmfs_legacy.cc:

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)
 
SimpleOptionsParsercvmfs_options_init_legacy (char const *legacy_options)
 
int cvmfs_init (char const *options)
 
SimpleOptionsParsercvmfs_options_clone_legacy (SimpleOptionsParser *opts, const char *legacy_options)
 
LibContextcvmfs_attach_repo (char const *options)
 

Macro Definition Documentation

#define CVMFS_OPT (   var)
Value:
if (strcmp(name, #var) == 0) \
return ::set_option(name, value, &var)
static int set_option(char const *name, char const *value, bool *var)

Definition at line 65 of file libcvmfs_legacy.cc.

Referenced by cvmfs_repo_options::set_option(), and cvmfs_global_options::set_option().

Typedef Documentation

Definition at line 269 of file libcvmfs_legacy.cc.

Function Documentation

LibContext* cvmfs_attach_repo ( char const *  options)

Initialize a CVMFS remote repository. Legacy. Use cvmfs_attach_repo_v2().

Parameters
[in]options,option1,option2,...
Returns
0 on success

Definition at line 490 of file libcvmfs_legacy.cc.

Here is the call graph for this function:

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.

Parameters
[in]options,option1,option2,...
Returns
0 on success

Definition at line 433 of file libcvmfs_legacy.cc.

Here is the call graph for this function:

SimpleOptionsParser* cvmfs_options_clone_legacy ( SimpleOptionsParser opts,
const char *  legacy_options 
)

Definition at line 449 of file libcvmfs_legacy.cc.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static int set_option ( char const *  name,
char const *  value,
bool *  var 
)
static

Definition at line 22 of file libcvmfs_legacy.cc.

Referenced by cvmfs_options< DerivedT >::parse_options(), and cvmfs_options< DerivedT >::set_option().

Here is the caller graph for this function:

static int set_option ( char const *  name,
char const *  value,
unsigned *  var 
)
static

Definition at line 33 of file libcvmfs_legacy.cc.

static int set_option ( char const *  name,
char const *  value,
int *  var 
)
static

Definition at line 46 of file libcvmfs_legacy.cc.

static int set_option ( char const *  name,
char const *  value,
string *  var 
)
static

Definition at line 59 of file libcvmfs_legacy.cc.

static int TranslateReturnValue ( loader::Failures  code)
static

Translates from loader::Failure codes to legacy LIBCVMFS_FAIL_... constants.

Definition at line 342 of file libcvmfs_legacy.cc.

Referenced by cvmfs_init().

Here is the caller graph for this function:

static void usage ( )
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().

Here is the caller graph for this function: