forked from github/server
abca25d1d5
fix copyright date remove vi ts=2 code remove a couple of superfluous extern declarations
16 lines
393 B
C
16 lines
393 B
C
#ifndef H_CALLBACK_H
|
|
#define H_CALLBACK_H
|
|
|
|
#include <stdarg.h>
|
|
|
|
typedef struct {
|
|
void(*cbv)(va_list va);
|
|
} HCALLBACK;
|
|
|
|
HCALLBACK register_callback(const char *name, void(*cbv)(va_list va));
|
|
HCALLBACK create_callback(void(*cbv)(va_list va));
|
|
int find_callback(const char *name, HCALLBACK *result);
|
|
int call_callback(HCALLBACK cb, const char *name, ...);
|
|
void reset_callbacks(void);
|
|
|
|
#endif
|