summaryrefslogtreecommitdiffstats
path: root/procd.h
blob: cc063b36b54a741174d4aac6c6992ecc87b8b136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __PROCD_H
#define __PROCD_H

#include <libubox/uloop.h>
#include <stdio.h>

#define DPRINTF(fmt, ...) do { \
	if (debug) \
		fprintf(stderr, "DEBUG %s(%d): " fmt, __func__, __LINE__, ## __VA_ARGS__); \
	} while (0)

extern int debug;
extern char *ubus_socket;
void procd_connect_ubus(void);

#endif