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(rxv_spin_ctx_pool(ctx),(val))) |
#define | rxv_spin_ctx_del(ctx, key) rxv_spin_ctx_set((ctx),(key),NULL) |
Typedefs | |
typedef rxv_spin_ctx | rxv_spin_ctx_t |
Functions | |
apr_pool_t * | rxv_spin_ctx_pool (rxv_spin_ctx_t *ctx) |
apr_pool_t * | rxv_spin_ctx_tpool (rxv_spin_ctx_t *ctx) |
rxv_spin_data_t * | rxv_spin_ctx_data (rxv_spin_ctx_t *ctx) |
request_rec * | rxv_spin_ctx_r (rxv_spin_ctx_t *ctx) |
apreq_handle_t * | rxv_spin_ctx_req (rxv_spin_ctx_t *ctx) |
void * | rxv_spin_ctx_xget (rxv_spin_ctx_t *ctx) |
void * | rxv_spin_ctx_xset (rxv_spin_ctx_t *ctx, void *extra) |
rxv_spin_data_t * | rxv_spin_ctx_get (rxv_spin_ctx_t *ctx, const char *key) |
rxv_spin_data_t * | rxv_spin_ctx_set (rxv_spin_ctx_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(rxv_spin_ctx_pool(ctx),(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_ctx rxv_spin_ctx_t |
context type
apr_pool_t* rxv_spin_ctx_pool | ( | rxv_spin_ctx_t * | ctx | ) |
Retrieve context specific pool.
ctx | Context |
rxv_spin_ctx_pool(ctx);
apr_pool_t* rxv_spin_ctx_tpool | ( | rxv_spin_ctx_t * | ctx | ) |
Retrieve thread specific pool.
ctx | Context |
rxv_spin_ctx_tpool(ctx);
rxv_spin_data_t* rxv_spin_ctx_data | ( | rxv_spin_ctx_t * | ctx | ) |
Retrieve data from context.
ctx | Context |
rxv_spin_ctx_data(ctx);
request_rec* rxv_spin_ctx_r | ( | rxv_spin_ctx_t * | ctx | ) |
Retrieve Apache request from context.
ctx | Context |
rxv_spin_ctx_r(ctx);
apreq_handle_t* rxv_spin_ctx_req | ( | rxv_spin_ctx_t * | ctx | ) |
Retrieve parsed request from context.
ctx | Context |
rxv_spin_ctx_req(ctx);
void* rxv_spin_ctx_xget | ( | rxv_spin_ctx_t * | ctx | ) |
Retrieve extra data from the context.
ctx | Context |
rxv_spin_ctx_xget(ctx);
void* rxv_spin_ctx_xset | ( | rxv_spin_ctx_t * | ctx, | |
void * | extra | |||
) |
Set extra data into the context.
ctx | Context | |
extra | Pointer to extra data to set into the context |
rxv_spin_ctx_xset(ctx,somedata);
rxv_spin_data_t* rxv_spin_ctx_get | ( | rxv_spin_ctx_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_ctx_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);