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

Commit

Permalink
Merge pull request #116 from fyraimar/master
Browse files Browse the repository at this point in the history
[Systeminfo]Fix Desktop Build Error
  • Loading branch information
Kenneth Rohde Christiansen committed Sep 10, 2013
2 parents e2365da + 5202b74 commit 45df4ed
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
5 changes: 4 additions & 1 deletion system_info/system_info_build.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SysInfoBuild {
inline void StopListening() {
if (timeout_cb_id_ > 0)
g_source_remove(timeout_cb_id_);
}
}

private:
bool UpdateHardware();
Expand All @@ -37,6 +37,9 @@ class SysInfoBuild {
std::string model_;
std::string manufacturer_;
std::string buildversion_;
#if defined(GENERIC_DESKTOP)
bool stopping_;
#endif
int timeout_cb_id_;

DISALLOW_COPY_AND_ASSIGN(SysInfoBuild);
Expand Down
3 changes: 3 additions & 0 deletions system_info/system_info_locale.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class SysInfoLocale {
ContextAPI* api_;
std::string language_;
std::string country_;
#if defined(GENERIC_DESKTOP)
bool stopping_;
#endif
int timeout_cb_id_;

DISALLOW_COPY_AND_ASSIGN(SysInfoLocale);
Expand Down
3 changes: 1 addition & 2 deletions system_info/system_info_network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
#include "system_info/system_info_utils.h"

SysInfoNetwork::SysInfoNetwork(ContextAPI* api)
: type_(SYSTEM_INFO_NETWORK_UNKNOWN),
timeout_cb_id_(0) {
: type_(SYSTEM_INFO_NETWORK_UNKNOWN) {
api_ = api;
PlatformInitialize();
}
Expand Down
4 changes: 3 additions & 1 deletion system_info/system_info_network_mobile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ SysInfoNetwork::~SysInfoNetwork() {
g_source_remove(timeout_cb_id_);
}

void SysInfoNetwork::PlatformInitialize() { }
void SysInfoNetwork::PlatformInitialize() {
timeout_cb_id_ = 0;
}

bool SysInfoNetwork::Update(picojson::value& error) {
int service_type = 0;
Expand Down
1 change: 1 addition & 0 deletions system_info/system_info_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class SysInfoStorage {
picojson::value& error,
picojson::value& unit);
std::string GetDevPathFromMountPath(const std::string& mnt_path);
bool stopping_;

struct udev* udev_;
#elif defined(TIZEN_MOBILE)
Expand Down
3 changes: 1 addition & 2 deletions system_info/system_info_wifi_network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ SysInfoWifiNetwork::SysInfoWifiNetwork(ContextAPI* api)
ssid_(""),
ip_address_(""),
ipv6_address_(""),
signal_strength_(0.0),
timeout_cb_id_(0) {
signal_strength_(0.0) {
api_ = api;
PlatformInitialize();
}
Expand Down
4 changes: 3 additions & 1 deletion system_info/system_info_wifi_network_mobile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ SysInfoWifiNetwork::~SysInfoWifiNetwork() {
}
}

void SysInfoWifiNetwork::PlatformInitialize() { }
void SysInfoWifiNetwork::PlatformInitialize() {
timeout_cb_id_ = 0;
}

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

0 comments on commit 45df4ed

Please sign in to comment.