fix invalid message reuse in ubus_process_invoke
[project/ubus.git] / ubusd_obj.h
index b268792..83bc366 100644 (file)
@@ -1,3 +1,16 @@
+/*
+ * Copyright (C) 2011 Felix Fietkau <nbd@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 __UBUSD_OBJ_H
 #define __UBUSD_OBJ_H
 
@@ -33,6 +46,8 @@ struct ubus_object {
 
        struct ubus_client *client;
        int (*recv_msg)(struct ubus_client *client, const char *method, struct blob_attr *msg);
+
+       int event_seen;
 };
 
 struct ubus_object *ubusd_create_object(struct ubus_client *cl, struct blob_attr **attr);