Skip to content
Snippets Groups Projects
Commit d5f2142a authored by Tristan Matthews's avatar Tristan Matthews
Browse files

daemon: add version API

Refs: #48032
parent 674cdd30
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ static std::unique_ptr<DBusClient> dbusClient;
static void print_title()
{
std::cout << "SFLphone Daemon " << VERSION <<
std::cout << "SFLphone Daemon " << sflph_version() <<
", by Savoir-Faire Linux 2004-2014" << std::endl <<
"http://www.sflphone.org/" << std::endl;
}
......
......@@ -38,6 +38,9 @@
#include <string>
#include <map>
const char *
sflph_version();
/* presence events */
#ifdef SFL_PRESENCE
struct sflph_pres_ev_handlers
......
......@@ -83,6 +83,12 @@ namespace {
struct sflph_ev_handlers _evHandlers;
}
const char *
sflph_version()
{
return PACKAGE_VERSION;
}
int sflph_init(struct sflph_ev_handlers* ev_handlers, enum sflph_init_flag flags)
{
// Ignore initialization if already done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment