module: add ‘description()’ to the module interface

This function is intended to return a description of this particular
module instance.
This commit is contained in:
Daniel Eklöf 2021-06-20 21:14:12 +02:00
parent 60ee992a73
commit d0dd65cef5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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);