Remove the method bye of rpc_to_master.
And version is updated to 0.2.0 to sync with the version of master.
Change-Id: I5d6deb0502a9fa02c258035b86235b027dadc9fa
+data-provider-slave (0.2.0) unstable; urgency=low
+
+ * Git: slp/pkgs/d/data-provider-slave
+ * Tag: data-provider-slave_0.2.0
+
+ Version sync with the data-provider-master
+
+ -- Sung-jae Park <nicesj.park@samsung.com> Sun, 03 Jun 2012 02:38:42 +0900
+
data-provider-slave (0.0.7) unstable; urgency=low
* Git: slp/pkgs/d/data-provider-slave
extern int rpc_send_hello(void);
-extern int rpc_send_bye(void);
extern int rpc_send_updated(const char *pkgname, const char *filename, int x, int y, double priority);
extern int rpc_send_deleted(const char *pkgname, const char *filename);
extern int rpc_send_desc_updated(const char *pkgname, const char *filename, const char *descfile);
Name: com.samsung.data-provider-slave
Summary: Slave data provider
-Version: 0.0.7
+Version: 0.2.0
Release: 1
Group: main/app
License: Samsung Proprietary License
if (s_info.proxy) {
GDBusConnection *conn;
- rpc_send_bye();
-
conn = g_dbus_proxy_get_connection(s_info.proxy);
if (conn && s_info.reg_id) {
/* FIXME: Do I really need to do this? */
if (so_is_updated(item->inst) <= 0) {
if (so_need_to_destroy(item->inst) == NEED_TO_DESTROY) {
livebox_destroy(item->inst->item->pkgname, item->inst->filename);
+ rpc_send_deleted(item->inst->item->pkgname, item->inst->filename);
return ECORE_CALLBACK_CANCEL;
}
EINA_LIST_FOREACH_SAFE(s_info.item_list, l, n, item) {
livebox_destroy(item->inst->item->pkgname, item->inst->filename);
+ rpc_send_deleted(item->inst->item->pkgname, item->inst->filename);
}
if (s_info.pending_timer) {
}
if (!item->monitor) {
- rpc_send_deleted(pkgname, filename);
free(item);
ret = so_destroy(inst);
}
return 0;
}
-int rpc_send_bye(void)
-{
- GVariant *param;
- GDBusProxy *proxy;
- GError *err;
-
- proxy = dbus_get_proxy();
- if (!proxy)
- return -EINVAL;
-
- param = g_variant_new("(s)", main_get_name());
- if (!param) {
- ErrPrint("Failed to create variant\n");
- return -EFAULT;
- }
-
- err = NULL;
- param = g_dbus_proxy_call_sync(proxy, "bye", param,
- G_DBUS_CALL_FLAGS_NO_AUTO_START, -1, NULL, &err);
-
- if (!param) {
- if (err) {
- ErrPrint("Error: %s\n", err->message);
- g_error_free(err);
- }
-
- return -EIO;
- }
-
- return 0;
-}
-
int rpc_send_ping(void)
{
GVariant *param;