ADD_DEFINITIONS("-DNDEBUG")
#ADD_DEFINITIONS("-DFLOG")
ADD_DEFINITIONS("-DMASTER_PKGNAME=\"com.samsung.data-provider-master\"")
+ADD_DEFINITIONS("-DSOCKET_FILE=\"/opt/share/live_magazine/.live.socket\"")
ADD_LIBRARY(${PROJECT_NAME} SHARED
src/dlist.c
src/livebox.c
+livebox-viewer (0.3.9) unstable; urgency=low
+
+ * Git: slp/pkgs/l/livebox-viewer
+ * Tag: livebox-viewer_0.3.9
+
+ -- Sung-jae Park <nicesj.park@samsung.com> Sun, 29 Jul 2012 08:44:21 +0900
+
livebox-viewer (0.3.8) unstable; urgency=low
* Git: slp/pkgs/l/livebox-viewer
* milli seconds
*/
#define RECONNECT_PERIOD 1000
-
-#define LIVE_SOCKET "/tmp/.live.socket"
Name: liblivebox-viewer
Summary: Library for the development of a livebox viewer
-Version: 0.3.8
+Version: 0.3.9
Release: 1
Group: main/app
License: Samsung Proprietary License
DbgPrint("Let's making connection!\n");
- s_info.fd = com_core_packet_client_init(LIVE_SOCKET, 0, s_table);
+ s_info.fd = com_core_packet_client_init(SOCKET_FILE, 0, s_table);
if (s_info.fd < 0) {
s_info.reconnector = g_timeout_add(RECONNECT_PERIOD, connector_cb, NULL); /*!< After 10 secs later, try to connect again */
if (s_info.reconnector == 0)
static int disconnected_cb(int handle, void *data)
{
+ if (s_info.fd != handle) {
+ /*!< This handle is not my favor */
+ return 0;
+ }
+
s_info.fd = -1; /*!< Disconnected */
if (s_info.reconnector > 0) {
const char *client_addr(void)
{
- return LIVE_SOCKET;
+ return SOCKET_FILE;
}
int client_fini(void)
*/
DbgPrint("Send packet to master [%s]\n", packet_command(command->packet));
if (com_core_packet_async_send(client_fd(), command->packet, 0u, done_cb, command) < 0) {
+ DbgPrint("Failed to send a packet to master\n");
if (command->ret_cb)
command->ret_cb(command->handler, NULL, command->data);
destroy_command(command);
struct packet *result;
int ret;
- result = com_core_packet_oneshot_send(client_addr(), packet);
+ result = com_core_packet_oneshot_send(client_addr(), packet, 0.0f);
if (result) {
packet_get(result, "i", &ret);
packet_unref(result);