Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
d5f2142a
Commit
d5f2142a
authored
10 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
daemon: add version API
Refs: #48032
parent
674cdd30
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
daemon/bin/main.cpp
+1
-1
1 addition, 1 deletion
daemon/bin/main.cpp
daemon/src/sflphone.h
+3
-0
3 additions, 0 deletions
daemon/src/sflphone.h
daemon/src/sflphone_api.cpp
+6
-0
6 additions, 0 deletions
daemon/src/sflphone_api.cpp
with
10 additions
and
1 deletion
daemon/bin/main.cpp
+
1
−
1
View file @
d5f2142a
...
@@ -42,7 +42,7 @@ static std::unique_ptr<DBusClient> dbusClient;
...
@@ -42,7 +42,7 @@ static std::unique_ptr<DBusClient> dbusClient;
static
void
print_title
()
static
void
print_title
()
{
{
std
::
cout
<<
"SFLphone Daemon "
<<
VERSION
<<
std
::
cout
<<
"SFLphone Daemon "
<<
sflph_version
()
<<
", by Savoir-Faire Linux 2004-2014"
<<
std
::
endl
<<
", by Savoir-Faire Linux 2004-2014"
<<
std
::
endl
<<
"http://www.sflphone.org/"
<<
std
::
endl
;
"http://www.sflphone.org/"
<<
std
::
endl
;
}
}
...
...
This diff is collapsed.
Click to expand it.
daemon/src/sflphone.h
+
3
−
0
View file @
d5f2142a
...
@@ -38,6 +38,9 @@
...
@@ -38,6 +38,9 @@
#include
<string>
#include
<string>
#include
<map>
#include
<map>
const
char
*
sflph_version
();
/* presence events */
/* presence events */
#ifdef SFL_PRESENCE
#ifdef SFL_PRESENCE
struct
sflph_pres_ev_handlers
struct
sflph_pres_ev_handlers
...
...
This diff is collapsed.
Click to expand it.
daemon/src/sflphone_api.cpp
+
6
−
0
View file @
d5f2142a
...
@@ -83,6 +83,12 @@ namespace {
...
@@ -83,6 +83,12 @@ namespace {
struct
sflph_ev_handlers
_evHandlers
;
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
)
int
sflph_init
(
struct
sflph_ev_handlers
*
ev_handlers
,
enum
sflph_init_flag
flags
)
{
{
// Ignore initialization if already done
// Ignore initialization if already done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment