From d0dd65cef54e2d779f05c9a9ae5cea67d672b23a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 20 Jun 2021 21:14:12 +0200 Subject: [PATCH] =?UTF-8?q?module:=20add=20=E2=80=98description()=E2=80=99?= =?UTF-8?q?=20to=20the=20module=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This function is intended to return a description of this particular module instance. --- module.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module.h b/module.h index b757a04..e525c87 100644 --- a/module.h +++ b/module.h @@ -26,6 +26,8 @@ struct module { /* refresh_in() should schedule a module content refresh after the * specified number of milliseconds */ bool (*refresh_in)(struct module *mod, long milli_seconds); + + const char *(*description)(struct module *mod); }; struct module *module_common_new(void);