summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-08-01 09:28:51 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-08-01 11:22:15 +0800
commita65fe9b152b4a03f30b7ce88a17e7f177dd1c169 (patch)
treec0ceea76073626e0812e9fac00dad132a71323e2 /test
parent0bc40319b0dcf8f97889a51ec9bc996fa741126c (diff)
downloadtalos-petitboot-a65fe9b152b4a03f30b7ce88a17e7f177dd1c169.zip
talos-petitboot-a65fe9b152b4a03f30b7ce88a17e7f177dd1c169.tar.gz
test/parser: Add missing stubs for network_(un)register_interface
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>
Diffstat (limited to 'test')
-rw-r--r--test/parser/handler.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/parser/handler.c b/test/parser/handler.c
index 68d882b..bfb6108 100644
--- a/test/parser/handler.c
+++ b/test/parser/handler.c
@@ -6,6 +6,8 @@
#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,
@@ -51,6 +53,20 @@ void system_info_register_blockdev(const char *name, const char *uuid,
(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)
{
}
OpenPOWER on IntegriCloud