X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fodhcpd.h;h=fb78ec0eee7812ac1fbe557c3e0797c853e19da2;hp=fb6b18262ffd24fdb7108dc4bf29e8f09dd62cff;hb=fa57225cb62b43adffc37a50c3dbd3fa7d225b0b;hpb=8a615ad3c4f2318667630e2505888df09901320d diff --git a/src/odhcpd.h b/src/odhcpd.h index fb6b182..fb78ec0 100644 --- a/src/odhcpd.h +++ b/src/odhcpd.h @@ -66,8 +66,8 @@ struct odhcpd_event { struct uloop_fd uloop; void (*handle_dgram)(void *addr, void *data, size_t len, struct interface *iface, void *dest_addr); - void (*handle_error)(int error); - void (*recv_msgs)(struct odhcpd_event *ev); + void (*handle_error)(struct odhcpd_event *e, int error); + void (*recv_msgs)(struct odhcpd_event *e); }; @@ -188,6 +188,7 @@ extern struct list_head interfaces; // Exported main functions int odhcpd_register(struct odhcpd_event *event); +int odhcpd_deregister(struct odhcpd_event *event); void odhcpd_process(struct odhcpd_event *event); struct nl_sock *odhcpd_create_nl_socket(int protocol);