Initial revision of Eco, a simple text editor.
[eco.git] / func.h
blob2d32bed020ad0a8ee1c63aedeb603f7b6122cc1c
1 /*
2 * Copyright (C) 2008 Diego Hernan Borghetti.
3 * Eco
4 */
6 #ifndef _ECO_FUNC_H
7 #define _ECO_FUNC_H
9 typedef struct _E_Function {
10 struct _E_Function *next;
12 /* function name. */
13 char *name;
15 /* pointer to the function. */
16 void (*func)(E_Eco *);
17 } E_Function;
19 void e_func_free(void);
20 E_Function *e_func_find(char *name);
21 void e_func_add(char *name, void (*func)(E_Eco *));
22 void e_func_remove(char *name);
24 #endif /* _ECO_FUNC_H */