test/parser: Add missing stubs for network_(un)register_interface
authorJeremy Kerr <jk@ozlabs.org>
Fri, 1 Aug 2014 01:28:51 +0000 (09:28 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 1 Aug 2014 03:22:15 +0000 (11:22 +0800)
The device handler code needs these calls on interface add/remove, so we
need to provide stubs for the test framework.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
test/parser/handler.c

index 68d882b82174937bbdc50846d917876d1c59085a..bfb61083c14eace6c3bfb99c289419131bdd2ae1 100644 (file)
@@ -6,6 +6,8 @@
 
 #include "device-handler.h"
 
 
 #include "device-handler.h"
 
+struct network;
+
 typedef void (*boot_status_fn)(void *arg, struct boot_status *);
 
 void discover_server_notify_device_add(struct discover_server *server,
 typedef void (*boot_status_fn)(void *arg, struct boot_status *);
 
 void discover_server_notify_device_add(struct discover_server *server,
@@ -51,6 +53,20 @@ void system_info_register_blockdev(const char *name, const char *uuid,
        (void)mountpoint;
 }
 
        (void)mountpoint;
 }
 
+void network_register_device(struct network *network,
+               struct discover_device *dev)
+{
+       (void)network;
+       (void)dev;
+}
+
+void network_unregister_device(struct network *network,
+               struct discover_device *dev)
+{
+       (void)network;
+       (void)dev;
+}
+
 void parser_init(void)
 {
 }
 void parser_init(void)
 {
 }