monitor.h 346 B

12345678910111213141516
  1. #ifndef _KRATOS_MONITOR_H_
  2. #define _KRATOS_MONITOR_H_
  3. #include "netlink.h"
  4. extern int keep_running;
  5. typedef int monitor_callback(int, int, Wifi*);
  6. static int getWifiInfo_callback(struct nl_msg *msg, void *arg);
  7. static int getWifiStatus(Netlink* nl, Wifi* w);
  8. void monitor(const char *ifname, monitor_callback *funcp, unsigned long);
  9. #endif