diff options
Diffstat (limited to 'apps/apps.cpp')
-rw-r--r-- | apps/apps.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/apps.cpp b/apps/apps.cpp index e0bb631..0034ba9 100644 --- a/apps/apps.cpp +++ b/apps/apps.cpp @@ -8,6 +8,19 @@ using namespace log4cplus; using namespace std; namespace po = boost::program_options; +static string adapter_name; + +void add_ble_options(po::options_description &options) { + po::options_description bluetooth("Bluetooth"); + + bluetooth.add_options() + ("adapter", po::value<string>(&adapter_name), "Which local adapter to use"); +} + +std::string ble_adapter_name() { + return adapter_name; +} + std::string get_hostname() { static string s = ""; |