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
a5487035
Commit
a5487035
authored
13 years ago
by
Rafaël Carré
Browse files
Options
Downloads
Patches
Plain Diff
Don't build networkmanager.cpp at all if NM is disabled
parent
6e3ef255
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
daemon/src/dbus/Makefile.am
+2
-2
2 additions, 2 deletions
daemon/src/dbus/Makefile.am
daemon/src/dbus/dbusmanager.cpp
+2
-3
2 additions, 3 deletions
daemon/src/dbus/dbusmanager.cpp
daemon/src/dbus/networkmanager.cpp
+0
-29
0 additions, 29 deletions
daemon/src/dbus/networkmanager.cpp
with
4 additions
and
34 deletions
daemon/src/dbus/Makefile.am
+
2
−
2
View file @
a5487035
...
...
@@ -15,10 +15,10 @@ libdbus_la_SOURCES = \
callmanager.cpp
\
configurationmanager.cpp
\
instance.cpp
\
dbusmanager.cpp
\
networkmanager.cpp
dbusmanager.cpp
if
USE_NETWORKMANAGER
libdbus_la_SOURCES
+=
networkmanager.cpp
NETWORKMANAGER
=
-DUSE_NETWORKMANAGER
else
NETWORKMANAGER
=
...
...
This diff is collapsed.
Click to expand it.
daemon/src/dbus/dbusmanager.cpp
+
2
−
3
View file @
a5487035
...
...
@@ -57,10 +57,10 @@ DBusManager::DBusManager()
_configurationManager
=
new
ConfigurationManager
(
sessionConnection
);
_instanceManager
=
new
Instance
(
sessionConnection
);
#ifdef USE_NETWORKMANAGER
#ifdef USE_NETWORKMANAGER
DBus
::
Connection
systemConnection
=
DBus
::
Connection
::
SystemBus
();
_networkManager
=
new
NetworkManager
(
systemConnection
,
"/org/freedesktop/NetworkManager"
,
""
);
#endif
#endif
_connected
=
true
;
}
catch
(
const
DBus
::
Error
&
err
)
{
...
...
@@ -88,4 +88,3 @@ DBusManager::exit()
{
_dispatcher
.
leave
();
}
This diff is collapsed.
Click to expand it.
daemon/src/dbus/networkmanager.cpp
+
0
−
29
View file @
a5487035
...
...
@@ -28,8 +28,6 @@
* as that of the covered work.
*/
#ifdef USE_NETWORKMANAGER
#include
<global.h>
#include
"networkmanager.h"
#include
<iostream>
...
...
@@ -52,38 +50,11 @@ void NetworkManager::PropertiesChanged (const std::map< std::string, ::DBus::Var
{
const
std
::
map
<
std
::
string
,
::
DBus
::
Variant
>::
const_iterator
iter
=
argin0
.
begin
();
std
::
string
message
=
iter
->
first
;
_warn
(
"Properties changed: %s"
,
iter
->
first
.
c_str
());
/*
DBus::Variant variant = iter->second;
DBus::MessageIter i = variant.reader();
cout << i.type() << endl;// 97
cout << (char )i.type() << endl;
cout << (char)i.array_type() << endl;
cout << i.is_array() << endl;// 1
cout << i.is_dict() << endl;// 0
cout << i.array_type() << endl;// 111
int size;
::DBus::Path* value = new ::DBus::Path[10];
size = i.get_array(value);
cout << "length: " << size << endl;
while (!i.at_end())
{
char **array = new char*[2];
size_t length = i.get_array(&array);
cout << "length: " << length << endl;
i = i.recurse();
}
*/
Manager
::
instance
().
registerAccounts
();
}
NetworkManager
::
NetworkManager
(
DBus
::
Connection
&
connection
,
const
DBus
::
Path
&
path
,
const
char
*
destination
)
:
DBus
::
ObjectProxy
(
connection
,
path
,
destination
)
{
}
#endif
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