Data Structures | |
struct | rxv_spin_context |
Context structure. More... | |
Defines | |
#define | rxv_spin_ctx_strget(ctx, key) rxv_spin_single_get(rxv_spin_ctx_get((ctx),(key))) |
#define | rxv_spin_ctx_strset(ctx, key, val) rxv_spin_ctx_set((ctx),(key),rxv_spin_single((ctx)->pool,(val))) |
#define | rxv_spin_ctx_del(ctx, key) rxv_spin_ctx_set((ctx),(key),NULL) |
Typedefs | |
typedef struct rxv_spin_context | rxv_spin_context_t |
typedef rxv_spin_context_t | rxv_spin_ctx_t |
Functions | |
rxv_spin_data_t * | rxv_spin_ctx_get (rxv_spin_context_t *ctx, const char *key) |
rxv_spin_data_t * | rxv_spin_ctx_set (rxv_spin_context_t *ctx, const char *key, rxv_spin_data_t *value) |
#define rxv_spin_ctx_strget | ( | ctx, | |||
key | ) | rxv_spin_single_get(rxv_spin_ctx_get((ctx),(key))) |
get a string from the context by converting from single
#define rxv_spin_ctx_strset | ( | ctx, | |||
key, | |||||
val | ) | rxv_spin_ctx_set((ctx),(key),rxv_spin_single((ctx)->pool,(val))) |
set a string into context by converting to single
#define rxv_spin_ctx_del | ( | ctx, | |||
key | ) | rxv_spin_ctx_set((ctx),(key),NULL) |
delete a value from context
typedef struct rxv_spin_context rxv_spin_context_t |
context type
typedef rxv_spin_context_t rxv_spin_ctx_t |
shorthand for context type
rxv_spin_data_t* rxv_spin_ctx_get | ( | rxv_spin_context_t * | ctx, | |
const char * | key | |||
) |
Retrieve data from the context.
ctx | Context | |
key | Unique key by which this data is identified |
rxv_spin_ctx_get(ctx,"result");
rxv_spin_data_t* rxv_spin_ctx_set | ( | rxv_spin_context_t * | ctx, | |
const char * | key, | |||
rxv_spin_data_t * | value | |||
) |
Place data into the context.
ctx | Context | |
key | Unique key by which this data is identified | |
value | The actual data |
rxv_spin_ctx_set(ctx,"result",result->data);