procd.h 307 B

12345678910111213141516
  1. #ifndef __PROCD_H
  2. #define __PROCD_H
  3. #include <libubox/uloop.h>
  4. #include <stdio.h>
  5. #define DPRINTF(fmt, ...) do { \
  6. if (debug) \
  7. fprintf(stderr, "DEBUG %s(%d): " fmt, __func__, __LINE__, ## __VA_ARGS__); \
  8. } while (0)
  9. extern int debug;
  10. extern char *ubus_socket;
  11. void procd_connect_ubus(void);
  12. #endif