/* base info */
int pid;
unsigned int uid; /*<< unique id = pid + handle */
- int xid; /*<< main X window id */
vc_result_cb result_cb;
void* result_user_data;
/* initialize client data */
g_client->pid = getpid();
g_client->uid = getpid();
- g_client->xid = -1;
g_client->result_cb = NULL;
g_client->result_user_data = NULL;
return true;
}
-//LCOV_EXCL_START
-// int vc_client_get_handle(int pid, vc_h* vc)
-// {
-// vc_client_s *data = NULL;
-
-// int count = g_slist_length(g_client_list);
-// int i;
-
-// SLOG(LOG_DEBUG, TAG_VCC, "[DEBUG] The number of VC clients(%d)", count);
-
-// for (i = 0; i < count; i++) {
-// data = g_slist_nth_data(g_client_list, i);
-
-// if (NULL != data) {
-// SLOG(LOG_DEBUG, TAG_VCC, "[DEBUG] pid(%d), handle(%d)", pid, data->vc->handle);
-// if (pid == data->vc->handle) {
-// *vc = data->vc;
-// return VC_ERROR_NONE;
-// }
-// }
-// }
-
-// return VC_ERROR_INVALID_PARAMETER;
-// }
-//LCOV_EXCL_STOP
-
/* set/get callback function */
int vc_client_set_result_cb(vc_result_cb callback, void* user_data)
{