#include <context.h>
|
void(* | log_fn )(struct lightify_ctx *ctx, int priority, const char *file, int line, const char *fn, const char *format, va_list args) |
|
int(* | socket_read_fn )(struct lightify_ctx *ctx, unsigned char *msg, size_t size) |
| Function pointer to the I/O handling – read from. More...
|
|
int(* | socket_write_fn )(struct lightify_ctx *ctx, unsigned char *msg, size_t size) |
| Function pointer to the I/O handling – read from. More...
|
|
void * | userdata |
| Function pointer to the I/O handling – write to. More...
|
|
int | log_priority |
|
int | socket |
|
struct lightify_node * | nodes |
|
struct lightify_group * | groups |
|
uint32_t | cnt |
|
struct timeval | iotimeout |
|
int | gw_protocol_version |
|
lightify_ctx:
Opaque object representing the library context.
Definition at line 68 of file context.h.
◆ cnt
request id counter
Definition at line 96 of file context.h.
◆ groups
pointer to the first group, if any
Definition at line 93 of file context.h.
◆ gw_protocol_version
detected protocol variant
Definition at line 102 of file context.h.
◆ iotimeout
timeout for IO
Definition at line 99 of file context.h.
◆ log_fn
void(* log_fn(struct lightify_ctx *ctx, int priority, const char *file, int line, const char *fn, const char *format, va_list args) |
◆ log_priority
◆ nodes
pointer to the first node, if any.
Definition at line 90 of file context.h.
◆ socket
fd for network socket
Definition at line 87 of file context.h.
◆ socket_read_fn
int(* socket_read_fn(struct lightify_ctx *ctx, unsigned char *msg, size_t size) |
Function pointer to the I/O handling – read from.
Definition at line 74 of file context.h.
◆ socket_write_fn
int(* socket_write_fn(struct lightify_ctx *ctx, unsigned char *msg, size_t size) |
Function pointer to the I/O handling – read from.
Definition at line 77 of file context.h.
◆ userdata
Function pointer to the I/O handling – write to.
Definition at line 82 of file context.h.
The documentation for this struct was generated from the following file: