Lines Matching defs:cookie
44 void (*func)(int fd, void *cookie);
46 void *cookie;
53 sti->func(sti->fd, sti->cookie);
60 void restart_root_service(int fd, void *cookie)
85 void restart_tcp_service(int fd, void *cookie)
89 int port = (int) (uintptr_t) cookie;
105 void restart_usb_service(int fd, void *cookie)
157 static int create_service_thread(void (*func)(int, void *), void *cookie)
171 sti->cookie = cookie;
309 static void subproc_waiter_service(int fd, void *cookie)
311 pid_t pid = (pid_t) (uintptr_t) cookie;
370 sti->cookie = (void*) (uintptr_t) pid;
463 char* cookie = strdup(name + 8);
464 if (cookie == NULL) {
467 ret = create_service_thread(reverse_service, cookie);
469 free(cookie);
489 static void wait_for_state(int fd, void* cookie)
491 struct state_info* sinfo = cookie;
610 static void connect_service(int fd, void* cookie)
614 char *host = cookie;