SolarCapture C Bindings
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Data Structures | Typedefs | Functions
event.h File Reference

sc_callback: Interface for event notification. More...

#include <sys/epoll.h>

Go to the source code of this file.

Data Structures

struct  sc_callback
 A callback object. More...
 

Typedefs

typedef void( sc_callback_handler_fn )(struct sc_callback *, void *event_info)
 A callback handler function. More...
 

Functions

int sc_callback_alloc (struct sc_callback **cb_out, const struct sc_attr *attr, struct sc_thread *thread)
 Allocate a callback object instance. More...
 
void sc_callback_free (struct sc_callback *cb)
 Free a callback object instance. More...
 
static int sc_callback_is_active (const struct sc_callback *cb)
 Returns true if a callback object is active. More...
 
static void sc_callback_remove (struct sc_callback *cb)
 Unregister a callback object from its event source. More...
 
void sc_callback_on_idle (struct sc_callback *cb)
 Request a callback when the thread is idle. More...
 
int sc_epoll_ctl (struct sc_thread *thread, int op, int fd, unsigned events, struct sc_callback *cb)
 Request a callback when the thread is idle. More...
 

Detailed Description

sc_callback: Interface for event notification.