libjapi  0.3.2
Universal JSON API Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
japi_pushsrv_context Struct Reference

JAPI push service context. More...

#include <japi_pushsrv.h>

Collaboration diagram for japi_pushsrv_context:
Collaboration graph

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
 

Detailed Description

JAPI push service context.

A JAPI push service context stores the name of a push services and subcribed clients.

Field Documentation

struct __japi_client* japi_pushsrv_context::clients
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
struct __japi_pushsrv_context* japi_pushsrv_context::next
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().


The documentation for this struct was generated from the following file: