libjapi
0.3.2
Universal JSON API Library
|
JAPI push service context. More...
#include <japi_pushsrv.h>
Data Fields | |
char * | pushsrv_name |
pthread_t | thread_id |
japi_pushsrv_routine | routine |
volatile bool | enabled |
pthread_mutex_t | lock |
struct __japi_client * | clients |
struct __japi_pushsrv_context * | next |
void * | userptr |
JAPI push service context.
A JAPI push service context stores the name of a push services and subcribed clients.
struct __japi_client* japi_pushsrv_context::clients |
Pointer to the JAPI client context
Referenced by japi_pushsrv_destroy(), japi_pushsrv_register(), japi_pushsrv_remove_client(), and japi_pushsrv_sendmsg().
volatile bool japi_pushsrv_context::enabled |
Flag to end routine
Referenced by japi_pushsrv_register(), japi_pushsrv_start(), and japi_pushsrv_stop().
pthread_mutex_t japi_pushsrv_context::lock |
Mutual access lock
Referenced by japi_pushsrv_destroy(), japi_pushsrv_register(), japi_pushsrv_remove_client_from_all_pushsrv(), and japi_pushsrv_sendmsg().
struct __japi_pushsrv_context* japi_pushsrv_context::next |
Pointer to the next push service or NULL
Referenced by japi_destroy(), japi_pushsrv_destroy(), japi_pushsrv_list(), japi_pushsrv_register(), japi_pushsrv_remove_client_from_all_pushsrv(), japi_pushsrv_subscribe(), and japi_pushsrv_unsubscribe().
char* japi_pushsrv_context::pushsrv_name |
Name of the push service
Referenced by japi_pushsrv_list(), japi_pushsrv_register(), japi_pushsrv_remove_client(), japi_pushsrv_sendmsg(), japi_pushsrv_stop(), japi_pushsrv_subscribe(), and japi_pushsrv_unsubscribe().
japi_pushsrv_routine japi_pushsrv_context::routine |
Function to call
Referenced by japi_pushsrv_register(), and japi_pushsrv_start().
pthread_t japi_pushsrv_context::thread_id |
ID of the thread
Referenced by japi_pushsrv_register(), japi_pushsrv_start(), and japi_pushsrv_stop().
void* japi_pushsrv_context::userptr |
Pointer to user data
Referenced by japi_pushsrv_register().