syslog() is a blocking call on eglibc. as procd provides the actual syslog, weneed...
[project/procd.git] / utils.h
diff --git a/utils.h b/utils.h
index 360f9f1..37fa216 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -1,3 +1,17 @@
+/*
+ * Copyright (C) 2013 Felix Fietkau <nbd@openwrt.org>
+ * Copyright (C) 2013 John Crispin <blogic@openwrt.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 2.1
+ * as published by the Free Software Foundation
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
 #ifndef __PROCD_UTILS_H
 #define __PROCD_UTILS_H
 
@@ -11,6 +25,7 @@ struct blobmsg_list_node {
 };
 
 typedef bool (*blobmsg_list_cmp)(struct blobmsg_list_node *l1, struct blobmsg_list_node *l2);
+typedef void (*blobmsg_update_cb)(struct blobmsg_list_node *n);
 
 struct blobmsg_list {
        struct avl_tree avl;