QuickIO  0.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cleanup.h
Go to the documentation of this file.
1 
21 #include "qev.h"
22 
26 void qev_cleanup(void *ptr, const qev_free_fn free_fn);
27 
45 void qev_cleanup_full(
46  void *ptr,
47  const qev_free_fn free_fn,
48  const gboolean last);
49 
53 void qev_cleanup_and_null(void **ptrptr, const qev_free_fn free_fn);
54 
68  void **ptrptr,
69  const qev_free_fn free_fn,
70  const gboolean last);
71 
75 void qev_cleanup_fn(const qev_cb fn);
76 
85 void qev_cleanup_fn_full(const qev_cb cb, const gboolean last);
void qev_cleanup_fn(const qev_cb fn)
Calls qev_cleanup_fn_full() with last=FALSE.
void qev_cleanup_and_null_full(void **ptrptr, const qev_free_fn free_fn, const gboolean last)
Adds a pointer to be cleaned up and set to NULL on exit.
void(* qev_cb)()
A single callback that takes nothing and returns nothing.
Definition: qev.h:180
void qev_cleanup_and_null(void **ptrptr, const qev_free_fn free_fn)
Calls qev_cleanup_and_null_full() with last=FALSE.
void qev_cleanup_full(void *ptr, const qev_free_fn free_fn, const gboolean last)
Adds a pointer to a thread-local that needs to be cleaned up on exit.
Provides all the qev_* functions that are needed for creating an event loop.
void qev_cleanup(void *ptr, const qev_free_fn free_fn)
Calls qev_cleanup() with last=FALSE.
void(* qev_free_fn)(void *)
Function type for a typical free function.
Definition: qev.h:185
void qev_cleanup_fn_full(const qev_cb cb, const gboolean last)
Adds a simple function to be called on exit.