rlib
Convenience library for useful things
Loading...
Searching...
No Matches
rcbctx.h File Reference

Callback + data + user-data + per-side destroy-notify tuples used by Linked lists, Queues and Timeout callback list to store deferred callbacks. More...

#include <rlib/rtypes.h>

Go to the source code of this file.

Data Structures

struct  RFuncCallbackCtx
 Callback context for a void-returning function. More...
 
struct  RFuncReturnCallbackCtx
 Callback context for a function that returns rboolean. More...
 

Functions

static void r_func_callback_ctx_init (RFuncCallbackCtx *ctx, RFunc cb, rpointer data, RDestroyNotify datanotify, rpointer user, RDestroyNotify usernotify)
 
static void r_func_callback_ctx_clear (RFuncCallbackCtx *ctx)
 
static void r_func_callback_ctx_call (RFuncCallbackCtx *ctx)
 
static void r_func_return_callback_ctx_init (RFuncReturnCallbackCtx *ctx, RFuncReturn cb, rpointer data, RDestroyNotify datanotify, rpointer user, RDestroyNotify usernotify)
 
static void r_func_return_callback_ctx_clear (RFuncReturnCallbackCtx *ctx)
 
static rboolean r_func_return_callback_ctx_call (RFuncReturnCallbackCtx *ctx)
 

Detailed Description

Callback + data + user-data + per-side destroy-notify tuples used by Linked lists, Queues and Timeout callback list to store deferred callbacks.