86 int state_publish(
const char *name,
const char *state,
size_t len);
108 int state_get(
const char *key,
char **value);
150 #if defined(__block) && defined(dispatch_queue_t)
151 void state_dispatch(
char *name, dispatch_queue_t queue,
void (^block)(
void));
159 #ifdef dispatch_queue_t
160 void state_dispatch_f(
char *name, dispatch_queue_t queue,
void *context,
void (*func)(
void *));
ssize_t state_check(char **key, char **value)
Check for pending notifications, and return the current state.
int state_publish(const char *name, const char *state, size_t len)
Publish a notification about name and update the state.
int state_unbind(const char *name)
Stop publishing information about
int state_bind(const char *name)
Acquire the ability to publish notifications about a name
void state_atexit(void)
Free all resources used by the state notification mechanism.
int state_init(int abi_version, int flags)
Initialize the state notification mechanism.
int state_openlog(const char *logfile)
Submit a block to be executed when one or more state change notifications are pending.
int state_get_event_fd(void)
Get a file descriptor that can be monitored for readability.
int state_get(const char *key, char **value)
Get the current state of a .
int state_closelog(void)
Close the logfile.
int state_subscribe(const char *name)
Subscribe to notifications about a name.
int state_unsubscribe(const char *name)
Stop subscribing to notifications about