forked from external/yambar
module: define a struct for module meta data
* Function pointer; instantiates the module from a yml conf node * Its (top-level) configuration attributes
This commit is contained in:
parent
4dd1a24af6
commit
eaf061ee57
1 changed files with 10 additions and 0 deletions
10
module.h
10
module.h
|
@ -3,12 +3,22 @@
|
||||||
#include <threads.h>
|
#include <threads.h>
|
||||||
#include <cairo.h>
|
#include <cairo.h>
|
||||||
|
|
||||||
|
#include "config-verify.h"
|
||||||
#include "particle.h"
|
#include "particle.h"
|
||||||
#include "tag.h"
|
#include "tag.h"
|
||||||
|
#include "yml.h"
|
||||||
|
|
||||||
struct bar;
|
struct bar;
|
||||||
struct module;
|
struct module;
|
||||||
|
|
||||||
|
struct module_info {
|
||||||
|
struct module *(*from_conf)(const struct yml_node *node,
|
||||||
|
const struct font *parent_font);
|
||||||
|
|
||||||
|
size_t attr_count; /* TODO: remove, NULL-terminate attr list instead */
|
||||||
|
const struct attr_info attrs[];
|
||||||
|
};
|
||||||
|
|
||||||
struct module_run_context {
|
struct module_run_context {
|
||||||
struct module *module;
|
struct module *module;
|
||||||
int ready_fd;
|
int ready_fd;
|
||||||
|
|
Loading…
Add table
Reference in a new issue