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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
8e1c4c95
Commit
8e1c4c95
authored
6 months ago
by
Adrien Béraud
Committed by
Adrien Béraud
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
bin: update date, rename to Jami Core
Change-Id: I71bf279701b90fed0ac36b18b05d7a482a0f04eb
parent
7c2fde0c
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
bin/dbus/main.cpp
+11
-19
11 additions, 19 deletions
bin/dbus/main.cpp
bin/osxmain.cpp
+11
-16
11 additions, 16 deletions
bin/osxmain.cpp
bin/winmain.cpp
+11
-15
11 additions, 15 deletions
bin/winmain.cpp
with
33 additions
and
50 deletions
bin/dbus/main.cpp
+
11
−
19
View file @
8e1c4c95
/*
/*
* Copyright (C) 2004-2024 Savoir-faire Linux Inc.
* Copyright (C) 2004-2024 Savoir-faire Linux Inc.
*
*
* Author: Alexandre Bourget <alexandre.bourget@savoirfairelinux.com>
* This program is free software: you can redistribute it and/or modify
* Author: Yan Morin <yan.morin@savoirfairelinux.com>
* Author: Laurielle Lea <laurielle.lea@savoirfairelinux.com>
* Author: Simon Zeni <simon.zeni@savoirfairelinux.com>
* Author: Vladimir Stoiakin <vstoiakin@lavabit.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
;
either version 3 of the License, or
* the Free Software Foundation
,
either version 3 of the License, or
* (at your option) any later version.
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
...
@@ -18,10 +12,8 @@
...
@@ -18,10 +12,8 @@
* GNU General Public License for more details.
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* along with this program. If not, see <https://www.gnu.org/licenses/>.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
*/
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include
"config.h"
#include
"config.h"
#endif
#endif
...
@@ -49,14 +41,14 @@
...
@@ -49,14 +41,14 @@
bool
persistent
=
false
;
bool
persistent
=
false
;
std
::
unique_ptr
<
sdbus
::
IConnection
>
connection
;
std
::
unique_ptr
<
sdbus
::
IConnection
>
connection
;
static
int
r
in
g
Flags
=
0
;
static
int
in
it
Flags
=
0
;
static
void
static
void
print_title
()
print_title
()
{
{
std
::
cout
std
::
cout
<<
"Jami
Daemon
"
<<
libjami
::
version
()
<<
"Jami
Core
"
<<
libjami
::
version
()
<<
", by Savoir-faire Linux Inc. 2004-202
3
"
<<
std
::
endl
<<
", by Savoir-faire Linux Inc.
Copyright (C)
2004-202
4
"
<<
std
::
endl
<<
"https://jami.net/"
<<
std
::
endl
<<
"https://jami.net/"
<<
std
::
endl
#ifdef ENABLE_VIDEO
#ifdef ENABLE_VIDEO
<<
"[Video support enabled]"
<<
std
::
endl
<<
"[Video support enabled]"
<<
std
::
endl
...
@@ -149,13 +141,13 @@ parse_args(int argc, char *argv[])
...
@@ -149,13 +141,13 @@ parse_args(int argc, char *argv[])
}
}
if
(
consoleFlag
)
if
(
consoleFlag
)
r
in
g
Flags
|=
libjami
::
LIBJAMI_FLAG_CONSOLE_LOG
;
in
it
Flags
|=
libjami
::
LIBJAMI_FLAG_CONSOLE_LOG
;
if
(
debugFlag
)
if
(
debugFlag
)
r
in
g
Flags
|=
libjami
::
LIBJAMI_FLAG_DEBUG
;
in
it
Flags
|=
libjami
::
LIBJAMI_FLAG_DEBUG
;
if
(
autoAnswer
)
if
(
autoAnswer
)
r
in
g
Flags
|=
libjami
::
LIBJAMI_FLAG_AUTOANSWER
;
in
it
Flags
|=
libjami
::
LIBJAMI_FLAG_AUTOANSWER
;
return
false
;
return
false
;
}
}
...
@@ -182,7 +174,7 @@ main(int argc, char *argv [])
...
@@ -182,7 +174,7 @@ main(int argc, char *argv [])
if
(
parse_args
(
argc
,
argv
))
if
(
parse_args
(
argc
,
argv
))
return
0
;
return
0
;
if
(
!
libjami
::
init
(
static_cast
<
libjami
::
InitFlag
>
(
r
in
g
Flags
)))
{
if
(
!
libjami
::
init
(
static_cast
<
libjami
::
InitFlag
>
(
in
it
Flags
)))
{
std
::
cerr
<<
"libjami::init() failed"
<<
std
::
endl
;
std
::
cerr
<<
"libjami::init() failed"
<<
std
::
endl
;
return
1
;
return
1
;
}
}
...
...
This diff is collapsed.
Click to expand it.
bin/osxmain.cpp
+
11
−
16
View file @
8e1c4c95
/*
/*
* Copyright (C) 2004-2024 Savoir-faire Linux Inc.
* Copyright (C) 2004-2024 Savoir-faire Linux Inc.
*
*
* Author: Alexandre Bourget <alexandre.bourget@savoirfairelinux.com>
* This program is free software: you can redistribute it and/or modify
* Author: Yan Morin <yan.morin@savoirfairelinux.com>
* Author: Laurielle Lea <laurielle.lea@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
;
either version 3 of the License, or
* the Free Software Foundation
,
either version 3 of the License, or
* (at your option) any later version.
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
...
@@ -16,8 +12,7 @@
...
@@ -16,8 +12,7 @@
* GNU General Public License for more details.
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* along with this program. If not, see <https://www.gnu.org/licenses/>.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
*/
#include
<iostream>
#include
<iostream>
#include
<thread>
#include
<thread>
...
@@ -37,14 +32,14 @@
...
@@ -37,14 +32,14 @@
#endif
#endif
#include
"fileutils.h"
#include
"fileutils.h"
static
int
r
in
g
Flags
=
0
;
static
int
in
it
Flags
=
0
;
static
void
static
void
print_title
()
print_title
()
{
{
std
::
cout
std
::
cout
<<
"Jami
Daemon
"
<<
libjami
::
version
()
<<
"Jami
Core
"
<<
libjami
::
version
()
<<
", by Savoir-faire Linux Inc. 2004-202
3
"
<<
std
::
endl
<<
", by Savoir-faire Linux Inc.
Copyright (C)
2004-202
4
"
<<
std
::
endl
<<
"https://jami.net/"
<<
std
::
endl
<<
"https://jami.net/"
<<
std
::
endl
#ifdef ENABLE_VIDEO
#ifdef ENABLE_VIDEO
<<
"[Video support enabled]"
<<
std
::
endl
<<
"[Video support enabled]"
<<
std
::
endl
...
@@ -137,13 +132,13 @@ parse_args(int argc, char *argv[], bool& persistent)
...
@@ -137,13 +132,13 @@ parse_args(int argc, char *argv[], bool& persistent)
}
}
if
(
consoleFlag
)
if
(
consoleFlag
)
r
in
g
Flags
|=
libjami
::
LIBJAMI_FLAG_CONSOLE_LOG
;
in
it
Flags
|=
libjami
::
LIBJAMI_FLAG_CONSOLE_LOG
;
if
(
debugFlag
)
if
(
debugFlag
)
r
in
g
Flags
|=
libjami
::
LIBJAMI_FLAG_DEBUG
;
in
it
Flags
|=
libjami
::
LIBJAMI_FLAG_DEBUG
;
if
(
autoAnswer
)
if
(
autoAnswer
)
r
in
g
Flags
|=
libjami
::
LIBJAMI_FLAG_AUTOANSWER
;
in
it
Flags
|=
libjami
::
LIBJAMI_FLAG_AUTOANSWER
;
return
false
;
return
false
;
}
}
...
@@ -153,7 +148,7 @@ osxTests()
...
@@ -153,7 +148,7 @@ osxTests()
{
{
using
SharedCallback
=
std
::
shared_ptr
<
libjami
::
CallbackWrapperBase
>
;
using
SharedCallback
=
std
::
shared_ptr
<
libjami
::
CallbackWrapperBase
>
;
libjami
::
init
(
static_cast
<
libjami
::
InitFlag
>
(
r
in
g
Flags
));
libjami
::
init
(
static_cast
<
libjami
::
InitFlag
>
(
in
it
Flags
));
registerSignalHandlers
(
std
::
map
<
std
::
string
,
std
::
shared_ptr
<
libjami
::
CallbackWrapperBase
>>
());
registerSignalHandlers
(
std
::
map
<
std
::
string
,
std
::
shared_ptr
<
libjami
::
CallbackWrapperBase
>>
());
...
...
This diff is collapsed.
Click to expand it.
bin/winmain.cpp
+
11
−
15
View file @
8e1c4c95
/*
/*
* Copyright (C) 2004-2024 Savoir-faire Linux Inc.
* Copyright (C) 2004-2024 Savoir-faire Linux Inc.
*
*
* Author: Edric Milaret <edric.ladent-milaret@savoirfairelinux.com>
* This program is free software: you can redistribute it and/or modify
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
;
either version 3 of the License, or
* the Free Software Foundation
,
either version 3 of the License, or
* (at your option) any later version.
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
...
@@ -14,10 +12,8 @@
...
@@ -14,10 +12,8 @@
* GNU General Public License for more details.
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* along with this program. If not, see <https://www.gnu.org/licenses/>.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
*/
#include
<iostream>
#include
<iostream>
#include
<thread>
#include
<thread>
#include
<cstring>
#include
<cstring>
...
@@ -40,15 +36,15 @@
...
@@ -40,15 +36,15 @@
using
namespace
std
::
placeholders
;
using
namespace
std
::
placeholders
;
bool
isActive
=
false
;
bool
isActive
=
false
;
static
int
r
in
g
Flags
=
0
;
static
int
in
it
Flags
=
0
;
bool
loop
=
true
;
bool
loop
=
true
;
static
void
static
void
print_title
()
print_title
()
{
{
std
::
cout
std
::
cout
<<
"Jami
Daemon
"
<<
libjami
::
version
()
<<
"Jami
Core
"
<<
libjami
::
version
()
<<
", by Savoir-faire Linux Inc. 2004-202
3
"
<<
std
::
endl
<<
", by Savoir-faire Linux Inc.
Copyright (C)
2004-202
4
"
<<
std
::
endl
<<
"https://jami.net/"
<<
std
::
endl
<<
"https://jami.net/"
<<
std
::
endl
#ifdef ENABLE_VIDEO
#ifdef ENABLE_VIDEO
<<
"[Video support enabled]"
<<
std
::
endl
<<
"[Video support enabled]"
<<
std
::
endl
...
@@ -141,13 +137,13 @@ parse_args(int argc, char *argv[], bool& persistent)
...
@@ -141,13 +137,13 @@ parse_args(int argc, char *argv[], bool& persistent)
}
}
if
(
consoleFlag
)
if
(
consoleFlag
)
r
in
g
Flags
|=
libjami
::
LIBJAMI_FLAG_CONSOLE_LOG
;
in
it
Flags
|=
libjami
::
LIBJAMI_FLAG_CONSOLE_LOG
;
if
(
debugFlag
)
if
(
debugFlag
)
r
in
g
Flags
|=
libjami
::
LIBJAMI_FLAG_DEBUG
;
in
it
Flags
|=
libjami
::
LIBJAMI_FLAG_DEBUG
;
if
(
autoAnswer
)
if
(
autoAnswer
)
r
in
g
Flags
|=
libjami
::
LIBJAMI_FLAG_AUTOANSWER
;
in
it
Flags
|=
libjami
::
LIBJAMI_FLAG_AUTOANSWER
;
return
false
;
return
false
;
}
}
...
@@ -170,7 +166,7 @@ run()
...
@@ -170,7 +166,7 @@ run()
{
{
using
SharedCallback
=
std
::
shared_ptr
<
libjami
::
CallbackWrapperBase
>
;
using
SharedCallback
=
std
::
shared_ptr
<
libjami
::
CallbackWrapperBase
>
;
libjami
::
init
(
static_cast
<
libjami
::
InitFlag
>
(
r
in
g
Flags
));
libjami
::
init
(
static_cast
<
libjami
::
InitFlag
>
(
in
it
Flags
));
std
::
map
<
std
::
string
,
SharedCallback
>
callHandlers
;
std
::
map
<
std
::
string
,
SharedCallback
>
callHandlers
;
callHandlers
.
insert
(
libjami
::
exportable_callback
<
libjami
::
CallSignal
::
IncomingCall
>
callHandlers
.
insert
(
libjami
::
exportable_callback
<
libjami
::
CallSignal
::
IncomingCall
>
...
...
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