liblightify
lightify_ctx Struct Reference

#include <context.h>

Collaboration diagram for lightify_ctx:

Data Fields

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_nodenodes
 
struct lightify_groupgroups
 
uint32_t cnt
 
struct timeval iotimeout
 
int gw_protocol_version
 

Detailed Description

lightify_ctx:

Opaque object representing the library context.

Definition at line 68 of file context.h.

Field Documentation

◆ cnt

uint32_t cnt

request id counter

Definition at line 96 of file context.h.

◆ groups

struct lightify_group* groups

pointer to the first group, if any

Definition at line 93 of file context.h.

◆ gw_protocol_version

int gw_protocol_version

detected protocol variant

Definition at line 102 of file context.h.

◆ iotimeout

struct timeval 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)

Definition at line 70 of file context.h.

◆ log_priority

int log_priority

Definition at line 84 of file context.h.

◆ nodes

struct lightify_node* nodes

pointer to the first node, if any.

Definition at line 90 of file context.h.

◆ socket

int 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

void* 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: