+data-provider-master (0.7.1) unstable; urgency=low
+
+ * Git: slp/pkgs/d/data-provider-master
+ * Tag: data-provider-master_0.7.1
+
+ -- Sung-jae Park <nicesj.park@samsung.com> Mon, 20 Aug 2012 17:10:46 +0900
+
data-provider-master (0.7.0) unstable; urgency=low
* Git: slp/pkgs/d/data-provider-master
extern int xmonitor_init(void);
extern void xmonitor_fini(void);
-extern int xmonitor_update_state(void);
+extern int xmonitor_update_state(int pid);
/* End of a file */
Name: com.samsung.data-provider-master
Summary: Master data provider
-Version: 0.7.0
+Version: 0.7.1
Release: 1
Group: main/app
License: Samsung Proprietary License
if (!rpc->client)
continue;
+ if (client_pid(rpc->client) < 0) {
+ ErrPrint("Client[%p] has PID[%d]\n", rpc->client, client_pid(rpc->client));
+ continue;
+ }
+
DbgPrint("Send packet to %d\n", client_pid(rpc->client));
(void)client_rpc_async_request(rpc->client, packet_ref(packet));
}
if (!rpc->client)
continue;
+ if (client_pid(rpc->client) < 0) {
+ ErrPrint("Client[%p] has PID[%d]\n", rpc->client, client_pid(rpc->client));
+ continue;
+ }
+
if (instance_client(inst) == rpc->client) {
DbgPrint("Send packet to %d\n", client_pid(rpc->client));
(void)client_rpc_async_request(rpc->client, packet_ref(packet));
#include "fault_manager.h"
#include "fb.h" /* fb_type */
#include "group.h"
+#include "xmonitor.h"
static struct info {
int fd;
goto out;
}
- client_rpc_initialize(client, handle);
+ ret = client_rpc_initialize(client, handle);
+ if (ret < 0)
+ ErrPrint("Failed to initialize the RPC for %d\n", pid);
+ else
+ xmonitor_update_state(pid);
+
ret = 0;
out:
return ECORE_CALLBACK_RENEW;
}
-int xmonitor_update_state(void)
+int xmonitor_update_state(int target_pid)
{
Ecore_X_Window win;
struct client_node *client;
return -ENOENT;
client = client_find_by_pid(pid);
- if (!client)
+ if (!client) {
+ DbgPrint("Client %d is not registered yet\n", pid);
return -EINVAL;
+ }
- client_resumed(client);
+ if (target_pid != pid) {
+ DbgPrint("Client is paused\n");
+ client_paused(client);
+ } else {
+ DbgPrint("Client is resumed\n");
+ client_resumed(client);
+ }
+
+ slave_handle_state_change();
return 0;
}
if (!strcmp(name, "_X_ILLUME_DEACTIVATE_WINDOW")) {
DbgPrint("PAUSE EVENT\n");
client_paused(client);
+
slave_handle_state_change();
} else if (!strcmp(name, "_X_ILLUME_ACTIVATE_WINDOW")) {
DbgPrint("RESUME EVENT\n");
client_resumed(client);
- if (!setting_is_lcd_off()) {
- slave_handle_state_change();
- } else {
- DbgPrint("Locked. ignore resume event.\n");
- }
+ slave_handle_state_change();
+ } else {
+ /* ignore event */
}
free(name);