oop-adns.h | oop-adns.h | |||
---|---|---|---|---|
skipping to change at line 21 | skipping to change at line 21 | |||
#error You must include "adns.h" before "oop-adns.h"! | #error You must include "adns.h" before "oop-adns.h"! | |||
#endif | #endif | |||
#include "oop.h" | #include "oop.h" | |||
typedef struct oop_adapter_adns oop_adapter_adns; | typedef struct oop_adapter_adns oop_adapter_adns; | |||
typedef struct oop_adns_query oop_adns_query; | typedef struct oop_adns_query oop_adns_query; | |||
typedef void *oop_adns_call(oop_adapter_adns *,adns_answer *,void *); | typedef void *oop_adns_call(oop_adapter_adns *,adns_answer *,void *); | |||
/* A liboop adns adapter creates an adns instance tied to a liboop source. | /* A liboop adns adapter creates an adns instance tied to a liboop source. | |||
oop_adns_new() Returns NULL on failure.*/ | oop_adns_new() returns NULL on failure.*/ | |||
oop_adapter_adns *oop_adns_new(oop_source *,adns_initflags,FILE *diag); | oop_adapter_adns *oop_adns_new(oop_source *,adns_initflags,FILE *diag); | |||
void oop_adns_delete(oop_adapter_adns *); | void oop_adns_delete(oop_adapter_adns *); | |||
/* Submit an asynchronous DNS query. Returns NULL on system failure. | /* Submit an asynchronous DNS query. Returns NULL on system failure. | |||
The returned pointer is valid until the callback occurs or the | The returned pointer is valid until the callback occurs or the | |||
query is cancelled (see below). */ | query is cancelled (see below). */ | |||
oop_adns_query *oop_adns_submit( | oop_adns_query *oop_adns_submit( | |||
oop_adapter_adns *, | oop_adapter_adns *, | |||
const char *owner,adns_rrtype type,adns_queryflags flags, | const char *owner,adns_rrtype type,adns_queryflags flags, | |||
oop_adns_call *,void *); | oop_adns_call *,void *); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||