aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
blob: e0355d135a6b21fd6d4753e5b3631460c3483343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef UTILS_H
#define UTILS_H 1

#include <stdint.h>

#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))

void pt_log(int level, const char *fmt, ...);

double time_as_double(void);

int host_to_addr(const char *hostname, uint32_t *result);

#if 0
void print_hexstr(unsigned char *buf, size_t siz);
#endif

#endif