Skip to content

Commit

Permalink
add timespec function prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
edmonds committed Sep 26, 2011
1 parent 8ad96cf commit a58c88a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ubdns.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@
#define UBDNS_H

#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <assert.h>
#include <inttypes.h>
#include <time.h>

#define UBDNS_CONF "/etc/ubdns/ubdns.conf"
#define UBDNS_KEYDIR "/etc/ubdns/keys"
Expand All @@ -60,7 +62,13 @@ struct address {

void arpa_qname_ip4(const void *addr, char **res);
void arpa_qname_ip6(const void *addr, char **res);

size_t domain_to_str(const uint8_t *src, size_t src_len, char *dst);

void timespec_get(struct timespec *ts);
void timespec_sub(const struct timespec *a, struct timespec *b);
double timespec_to_double(const struct timespec *ts);

int ubdns_lookup_forward(const char *hn, int af, struct address **_list, unsigned *_n_list);
char *ubdns_lookup_reverse(const void *addr, int af);

Expand Down

0 comments on commit a58c88a

Please sign in to comment.