summaryrefslogtreecommitdiffstats
path: root/src/common/ceph_argparse.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-09-12 19:56:37 +0200
committerSage Weil <sage@newdream.net>2011-09-12 19:56:37 +0200
commit923c60c58811722ba936721d6a67a0e09ffcf0ce (patch)
tree2dc5d6ffaaf2749e14bf163ca7356ecd42e6be7d /src/common/ceph_argparse.h
parentlibrbd: move c++ tests to gtest (diff)
downloadceph-923c60c58811722ba936721d6a67a0e09ffcf0ce.tar.xz
ceph-923c60c58811722ba936721d6a67a0e09ffcf0ce.zip
librados: add conf_parse_env()
With optional env var name, defaults to CEPH_ARGS. Parse it for librados and librbd api gtests. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/common/ceph_argparse.h')
-rw-r--r--src/common/ceph_argparse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/ceph_argparse.h b/src/common/ceph_argparse.h
index 50168be4125..bcad8e65b7a 100644
--- a/src/common/ceph_argparse.h
+++ b/src/common/ceph_argparse.h
@@ -43,7 +43,7 @@ public:
};
/////////////////////// Functions ///////////////////////
-extern void env_to_vec(std::vector<const char*>& args);
+extern void env_to_vec(std::vector<const char*>& args, const char *name=NULL);
extern void argv_to_vec(int argc, const char **argv,
std::vector<const char*>& args);
extern void vec_to_argv(std::vector<const char*>& args,