summaryrefslogtreecommitdiffstats
path: root/test/parser/utils.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-19 11:41:23 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-20 16:40:21 +1100
commitca11198f4034266b0f48b37e5871c44d1399aba6 (patch)
tree7fe71c9c1c82de7a98134613ca1c141eee919466 /test/parser/utils.c
parent0ba871a497f156dd474a333889cd92eaab9b08dc (diff)
downloadpetitboot-ca11198f4034266b0f48b37e5871c44d1399aba6.zip
petitboot-ca11198f4034266b0f48b37e5871c44d1399aba6.tar.gz
discover/paths: Add stdout callback parameter for load_url_async()
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'test/parser/utils.c')
-rw-r--r--test/parser/utils.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/parser/utils.c b/test/parser/utils.c
index 9d40d2b..8900bd7 100644
--- a/test/parser/utils.c
+++ b/test/parser/utils.c
@@ -310,7 +310,8 @@ int parser_replace_file(struct discover_context *ctx,
}
struct load_url_result *load_url_async(void *ctx, struct pb_url *url,
- load_url_complete async_cb, void *async_data)
+ load_url_complete async_cb, void *async_data,
+ waiter_cb stdout_cb, void *stdout_data)
{
struct conf_context *conf = async_data;
struct parser_test *test = conf->dc->test_data;
@@ -320,6 +321,10 @@ struct load_url_result *load_url_async(void *ctx, struct pb_url *url,
struct test_file *file;
int fd;
+ /* Ignore the stdout callback for tests */
+ (void)stdout_cb;
+ (void)stdout_data;
+
fd = mkstemp(tmp);
if (fd < 0)
OpenPOWER on IntegriCloud