+tel-plugin-indicator (0.1.4) unstable; urgency=low
+
+ * Add context reset logic after modem crash
+ * Git: slp/pkgs/t/tel-plugin-indicator
+ * Tag: tel-plugin-indicator_0.1.4
+
+ -- DongHoo Park <donghoo.park@samsung.com> Wed, 23 May 2012 17:37:50 +0900
+
+tel-plugin-indicator (0.1.3) unstable; urgency=low
+
+ * package version sync with public
+ * Git: slp/pkgs/t/tel-plugin-indicator
+ * Tag: tel-plugin-indicator_0.1.3
+
+ -- Inho Oh <inho48.oh@samsung.com> Mon, 02 Apr 2012 14:49:46 +0900
+
tel-plugin-indicator (0.1.2) unstable; urgency=low
* Fix prefix (TAPI_ to TCORE_)
- * Git: pkgs/t/tel-plugin-indicator
+ * Git: slp/pkgs/t/tel-plugin-indicator
* Tag: tel-plugin-indicator_0.1.2
-- Inho Oh <inho48.oh@samsung.com> Tue, 27 Mar 2012 22:17:37 +0900
tel-plugin-indicator (0.1.1) unstable; urgency=low
* Add .spec for OBS
- * Git: pkgs/t/tel-plugin-indicator
+ * Git: slp/pkgs/t/tel-plugin-indicator
* Tag: tel-plugin-indicator_0.1.1
-- DongHoo Park <donghoo.park@samsung.com> Fri, 16 Mar 2012 21:31:53 +0900
tel-plugin-indicator (0.1.0) unstable; urgency=low
* Initial
- * Git: pkgs/t/tel-plugin-indicator
+ * Git: slp/pkgs/t/tel-plugin-indicator
* Tag: tel-plugin-indicator_0.1.0
-- Inho Oh <inho48.oh@samsung.com> Thu, 15 Mar 2012 22:37:29 +0900
return TRUE;
}
+static enum tcore_hook_return __on_hook_powered(Server *s, CoreObject *source,
+ enum tcore_notification_command command, unsigned int data_len, void *data, void *user_data)
+{
+ struct tnoti_modem_power *modem_power = NULL;
+
+ dbg("powered event called");
+ g_return_val_if_fail(data != NULL, TCORE_HOOK_RETURN_STOP_PROPAGATION);
+
+ modem_power = (struct tnoti_modem_power *)data;
+ if ( modem_power->state == MODEM_STATE_ERROR ){
+ indicator_info.active = FALSE;
+ g_free(indicator_info.devname);
+ indicator_info.devname = NULL;
+ _indicator_stop_updater(s);
+ }
+
+ return TCORE_HOOK_RETURN_CONTINUE;
+}
+
static enum tcore_hook_return __on_hook_callstatus(Server *s, CoreObject *source,
enum tcore_notification_command command, unsigned int data_len, void *data,
void *user_data)
{
Server *s = NULL;
s = tcore_plugin_ref_server(p);
+ tcore_server_add_notification_hook(s, TNOTI_MODEM_POWER, __on_hook_powered, NULL);
tcore_server_add_notification_hook(s, TNOTI_PS_CALL_STATUS, __on_hook_callstatus, NULL);
dbg("initialized Indicator plugin!");
return TRUE;