/usr/include/libzia/zasyncdns.h is in libzia-dev 4.04-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | /*
zasyncdns.h - asynchronous DNS queries
Copyright (C) 2011 Ladislav Vaiz <ok1zia@nagano.cz>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
*/
#ifndef __ZASYNCDNS_H
#define __ZASYNCDNS_H
#include <libziaint.h>
#include <zsock.h>
#include <glib.h>
struct zselect;
struct zasyncdns{
struct zselect *zsel;
char *hostname;
void *arg;
int socktype;
GThread *thread;
void (*callback)(struct zasyncdns *adns, int n, int *family, int *socktype, int *protocol, int *addrlen, union zsockaddr *addr, char *errorstr);
};
struct zasyncdns *zasyncdns_init(void);
void zasyncdns_free(struct zasyncdns *adns);
struct zasyncdns *zasyncdns_getaddrinfo(
struct zasyncdns *adns,
struct zselect *zsel,
void (*callback)(struct zasyncdns *adns, int n, int *family, int *socktype, int *protocol, int *addrlen, union zsockaddr *addr, char *errorstr),
char *hostname,
int socktype,
void *arg);
void zasyncdns_read_handler(int n, char *items[]);
#endif
|