projects
/
oweals
/
procd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
initial import: starts and connects to ubus
[oweals/procd.git]
/
procd.h
1
#ifndef __PROCD_H
2
#define __PROCD_H
3
4
#include <libubox/uloop.h>
5
#include <stdio.h>
6
7
#define DPRINTF(fmt, ...) do { \
8
if (debug) \
9
fprintf(stderr, "DEBUG %s(%d): " fmt, __func__, __LINE__, ## __VA_ARGS__); \
10
} while (0)
11
12
extern int debug;
13
extern char *ubus_socket;
14
void procd_connect_ubus(void);
15
16
#endif