From a5ddda8854b588c334834626b9a1c3bf8f542487 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 12 Apr 2015 02:12:30 +0200 Subject: [PATCH] (UI companion) Add iterate function pointer to UI companion --- ui/drivers/ui_null.c | 1 + ui/ui_companion_driver.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/drivers/ui_null.c b/ui/drivers/ui_null.c index 430674bb43..ca18d01287 100644 --- a/ui/drivers/ui_null.c +++ b/ui/drivers/ui_null.c @@ -50,5 +50,6 @@ const ui_companion_driver_t ui_companion_null = { ui_companion_null_deinit, NULL, NULL, + NULL, "null", }; diff --git a/ui/ui_companion_driver.h b/ui/ui_companion_driver.h index e863352fce..8ed556c7b3 100644 --- a/ui/ui_companion_driver.h +++ b/ui/ui_companion_driver.h @@ -32,8 +32,9 @@ typedef struct ui_companion_driver { void *(*init)(void); void (*deinit)(void *data); - void (*toggle_companion_ui)(void); - void (*notify_content_loaded)(void); + int (*iterate)(void *data, unsigned action); + void (*toggle_companion_ui)(void *data); + void (*notify_content_loaded)(void *data); const char *ident; } ui_companion_driver_t;