navit  0.5.3-trunk
callback.c File Reference
#include <glib.h>
#include <string.h>
#include "item.h"
#include "debug.h"
#include "callback.h"

Data Structures

struct  callback
 
struct  callback_list
 

Functions

struct callback_listcallback_list_new (void)
 
struct callbackcallback_new_attr (void(*func)(void), enum attr_type type, int pcount, void **p)
 
struct callbackcallback_new_attr_args (void(*func)(void), enum attr_type type, int count,...)
 
struct callbackcallback_new (void(*func)(void), int pcount, void **p)
 
struct callbackcallback_new_args (void(*func)(void), int count,...)
 
void callback_destroy (struct callback *cb)
 
void callback_set_arg (struct callback *cb, int arg, void *p)
 
void callback_list_add (struct callback_list *l, struct callback *cb)
 
struct callbackcallback_list_add_new (struct callback_list *l, void(*func)(void), int pcount, void **p)
 
void callback_list_remove (struct callback_list *l, struct callback *cb)
 
void callback_list_remove_destroy (struct callback_list *l, struct callback *cb)
 
void callback_list_add_patch_function (struct callback_list *l, callback_patch patch, void *context)
 
void callback_call (struct callback *cb, int pcount, void **p)
 
void callback_call_args (struct callback *cb, int count,...)
 
void callback_list_call_attr (struct callback_list *l, enum attr_type type, int pcount, void **p)
 
void callback_list_call_attr_args (struct callback_list *cbl, enum attr_type type, int count,...)
 
void callback_list_call (struct callback_list *l, int pcount, void **p)
 
void callback_list_call_args (struct callback_list *cbl, int count,...)
 
void callback_list_destroy (struct callback_list *l)
 

Function Documentation

◆ callback_call()

void callback_call ( struct callback cb,
int  pcount,
void **  p 
)

◆ callback_call_args()

void callback_call_args ( struct callback cb,
int  count,
  ... 
)

References callback_call(), and p.

◆ callback_destroy()

◆ callback_list_add()

◆ callback_list_add_new()

struct callback* callback_list_add_new ( struct callback_list l,
void(*)(void)  func,
int  pcount,
void **  p 
)

◆ callback_list_add_patch_function()

void callback_list_add_patch_function ( struct callback_list l,
callback_patch  patch,
void *  context 
)

◆ callback_list_call()

void callback_list_call ( struct callback_list l,
int  pcount,
void **  p 
)

◆ callback_list_call_args()

void callback_list_call_args ( struct callback_list cbl,
int  count,
  ... 
)

References callback_list_call(), cbl, and p.

◆ callback_list_call_attr()

void callback_list_call_attr ( struct callback_list l,
enum attr_type  type,
int  pcount,
void **  p 
)

◆ callback_list_call_attr_args()

void callback_list_call_attr_args ( struct callback_list cbl,
enum attr_type  type,
int  count,
  ... 
)

References callback_list_call_attr(), cbl, p, and type.

◆ callback_list_destroy()

void callback_list_destroy ( struct callback_list l)

◆ callback_list_new()

◆ callback_list_remove()

◆ callback_list_remove_destroy()

void callback_list_remove_destroy ( struct callback_list l,
struct callback cb 
)

◆ callback_new()

struct callback* callback_new ( void(*)(void)  func,
int  pcount,
void **  p 
)

◆ callback_new_args()

struct callback* callback_new_args ( void(*)(void)  func,
int  count,
  ... 
)

References callback_new(), callback::func, and p.

◆ callback_new_attr()

struct callback* callback_new_attr ( void(*)(void)  func,
enum attr_type  type,
int  pcount,
void **  p 
)

◆ callback_new_attr_args()

struct callback* callback_new_attr_args ( void(*)(void)  func,
enum attr_type  type,
int  count,
  ... 
)

◆ callback_set_arg()

void callback_set_arg ( struct callback cb,
int  arg,
void *  p 
)

References callback::p, p, and callback::pcount.