diff options
| author | Stephen D. Huston <shuston@apache.org> | 2008-10-26 01:04:32 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2008-10-26 01:04:32 +0000 |
| commit | 04083c21d70aa054ccc82caab4743b2aae0d93c0 (patch) | |
| tree | 13820d1543bd9c8229fbe7f6962059b907411283 /cpp/src/qpid/Modules.h | |
| parent | 5a36012aa3f1d1aeb26a548089f327e89cddf651 (diff) | |
| download | qpid-python-04083c21d70aa054ccc82caab4743b2aae0d93c0.tar.gz | |
Refactor duplicated Module-handling from broker/client to common
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707924 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/Modules.h')
| -rw-r--r-- | cpp/src/qpid/Modules.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/cpp/src/qpid/Modules.h b/cpp/src/qpid/Modules.h new file mode 100644 index 0000000000..2a3b24f359 --- /dev/null +++ b/cpp/src/qpid/Modules.h @@ -0,0 +1,43 @@ +#ifndef QPID_MODULES_H +#define QPID_MODULES_H + +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + +#include "Options.h" +#include <string> +#include <vector> + +namespace qpid { + +struct ModuleOptions : public qpid::Options { + std::string loadDir; + std::vector<std::string> load; + bool noLoad; + ModuleOptions(const std::string& defaultModuleDir); +}; + +void tryShlib(const char* libname, bool noThrow); +void loadModuleDir (std::string dirname, bool isDefault); + +} // namespace qpid + +#endif /*!QPID_MODULES_H*/ |
