summaryrefslogtreecommitdiff
path: root/cpp/src/qpidd.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2008-09-11 04:45:26 +0000
committerAndrew Stitcher <astitcher@apache.org>2008-09-11 04:45:26 +0000
commit468b4b6ddaa3d96bb743cdbd27ded651eea31847 (patch)
treef1987d223e56792386f884029664dae277bff754 /cpp/src/qpidd.cpp
parent51ea054146d0af71640bd44e8e75494847216a31 (diff)
downloadqpid-python-468b4b6ddaa3d96bb743cdbd27ded651eea31847.tar.gz
Refactored c++ client library to allow multiple protocols to be
used simultaneously: - Added in capability for client library plugins: Client library will load in plugin modules from the client library module directory on library load. - Add protocol option into the standard client command line options - Split plugin module load area into daemon and client; default daemon module directory is now <libdir>/qpid/daemon, default client module directory is <libdir>/qpid/client. - Changed names of plugins to leave out libqpid prefix git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@694113 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpidd.cpp')
-rw-r--r--cpp/src/qpidd.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/cpp/src/qpidd.cpp b/cpp/src/qpidd.cpp
index e79875f964..4acfef332a 100644
--- a/cpp/src/qpidd.cpp
+++ b/cpp/src/qpidd.cpp
@@ -34,7 +34,6 @@
#include <fstream>
#include <signal.h>
#include <unistd.h>
-#include <sys/utsname.h>
using namespace qpid;
using namespace qpid::broker;
@@ -47,14 +46,8 @@ struct ModuleOptions : public qpid::Options {
string loadDir;
vector<string> load;
bool noLoad;
- ModuleOptions() : qpid::Options("Module options"), loadDir("/usr/lib/qpidd"), noLoad(false)
+ ModuleOptions() : qpid::Options("Module options"), loadDir(MODULE_DIR), noLoad(false)
{
- struct utsname _uname;
- if (::uname(&_uname) == 0) {
- if (string(_uname.machine) == "x86_64")
- loadDir = "/usr/lib64/qpidd";
- }
-
addOptions()
("module-dir", optValue(loadDir, "DIR"), "Load all .so modules in this directory")
("load-module", optValue(load, "FILE"), "Specifies additional module(s) to be loaded")
@@ -97,7 +90,7 @@ struct QpiddOptions : public qpid::Options {
DaemonOptions daemon;
qpid::log::Options log;
- QpiddOptions(const char* argv0) : qpid::Options("Options"), common("", "/etc/qpidd.conf"), log(argv0) {
+ QpiddOptions(const char* argv0) : qpid::Options("Options"), common("", CONF_FILE), log(argv0) {
add(common);
add(module);
add(broker);
@@ -121,7 +114,7 @@ struct BootstrapOptions : public qpid::Options {
ModuleOptions module;
qpid::log::Options log;
- BootstrapOptions(const char* argv0) : qpid::Options("Options"), common("", "/etc/qpidd.conf"), log(argv0) {
+ BootstrapOptions(const char* argv0) : qpid::Options("Options"), common("", CONF_FILE), log(argv0) {
add(common);
add(module);
add(log);