mirror of https://github.com/getdnsapi/getdns.git
Unbound event API without header compile fix
This commit is contained in:
parent
426fc238da
commit
f67314c1c1
|
@ -50,12 +50,14 @@ struct ub_event_base {
|
||||||
unsigned long magic;
|
unsigned long magic;
|
||||||
struct ub_event_base_vmt* vmt;
|
struct ub_event_base_vmt* vmt;
|
||||||
};
|
};
|
||||||
struct ub_event_base;
|
# ifndef _UB_EVENT_PRIMITIVES
|
||||||
|
# define _UB_EVENT_PRIMITIVES
|
||||||
struct ub_ctx* ub_ctx_create_ub_event(struct ub_event_base* base);
|
struct ub_ctx* ub_ctx_create_ub_event(struct ub_event_base* base);
|
||||||
typedef void (*ub_event_callback_t)(void*, int, void*, int, int, char*);
|
typedef void (*ub_event_callback_t)(void*, int, void*, int, int, char*);
|
||||||
int ub_resolve_event(struct ub_ctx* ctx, const char* name, int rrtype,
|
int ub_resolve_event(struct ub_ctx* ctx, const char* name, int rrtype,
|
||||||
int rrclass, void* mydata, ub_event_callback_t callback, int* async_id);
|
int rrclass, void* mydata, ub_event_callback_t callback, int* async_id);
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct _getdns_ub_loop {
|
typedef struct _getdns_ub_loop {
|
||||||
struct ub_event_base super;
|
struct ub_event_base super;
|
||||||
|
|
Loading…
Reference in New Issue