Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit 45df4ed

Browse files
author
Kenneth Rohde Christiansen
committed
Merge pull request #116 from fyraimar/master
[Systeminfo]Fix Desktop Build Error
2 parents e2365da + 5202b74 commit 45df4ed

File tree

7 files changed

+16
-7
lines changed

7 files changed

+16
-7
lines changed

system_info/system_info_build.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SysInfoBuild {
2626
inline void StopListening() {
2727
if (timeout_cb_id_ > 0)
2828
g_source_remove(timeout_cb_id_);
29-
}
29+
}
3030

3131
private:
3232
bool UpdateHardware();
@@ -37,6 +37,9 @@ class SysInfoBuild {
3737
std::string model_;
3838
std::string manufacturer_;
3939
std::string buildversion_;
40+
#if defined(GENERIC_DESKTOP)
41+
bool stopping_;
42+
#endif
4043
int timeout_cb_id_;
4144

4245
DISALLOW_COPY_AND_ASSIGN(SysInfoBuild);

system_info/system_info_locale.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class SysInfoLocale {
3636
ContextAPI* api_;
3737
std::string language_;
3838
std::string country_;
39+
#if defined(GENERIC_DESKTOP)
40+
bool stopping_;
41+
#endif
3942
int timeout_cb_id_;
4043

4144
DISALLOW_COPY_AND_ASSIGN(SysInfoLocale);

system_info/system_info_network.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
#include "system_info/system_info_utils.h"
88

99
SysInfoNetwork::SysInfoNetwork(ContextAPI* api)
10-
: type_(SYSTEM_INFO_NETWORK_UNKNOWN),
11-
timeout_cb_id_(0) {
10+
: type_(SYSTEM_INFO_NETWORK_UNKNOWN) {
1211
api_ = api;
1312
PlatformInitialize();
1413
}

system_info/system_info_network_mobile.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ SysInfoNetwork::~SysInfoNetwork() {
1111
g_source_remove(timeout_cb_id_);
1212
}
1313

14-
void SysInfoNetwork::PlatformInitialize() { }
14+
void SysInfoNetwork::PlatformInitialize() {
15+
timeout_cb_id_ = 0;
16+
}
1517

1618
bool SysInfoNetwork::Update(picojson::value& error) {
1719
int service_type = 0;

system_info/system_info_storage.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class SysInfoStorage {
4646
picojson::value& error,
4747
picojson::value& unit);
4848
std::string GetDevPathFromMountPath(const std::string& mnt_path);
49+
bool stopping_;
4950

5051
struct udev* udev_;
5152
#elif defined(TIZEN_MOBILE)

system_info/system_info_wifi_network.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ SysInfoWifiNetwork::SysInfoWifiNetwork(ContextAPI* api)
1111
ssid_(""),
1212
ip_address_(""),
1313
ipv6_address_(""),
14-
signal_strength_(0.0),
15-
timeout_cb_id_(0) {
14+
signal_strength_(0.0) {
1615
api_ = api;
1716
PlatformInitialize();
1817
}

system_info/system_info_wifi_network_mobile.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ SysInfoWifiNetwork::~SysInfoWifiNetwork() {
1616
}
1717
}
1818

19-
void SysInfoWifiNetwork::PlatformInitialize() { }
19+
void SysInfoWifiNetwork::PlatformInitialize() {
20+
timeout_cb_id_ = 0;
21+
}
2022

2123
bool SysInfoWifiNetwork::Update(picojson::value& error) {
2224
connection_h connect = NULL;

0 commit comments

Comments
 (0)