/* see LICENSE file for details on license */ #include #include "module.h" #include "bspwm.c" #include "battery.c" struct module table[] = { {0, 10, bspwm_update, {'\0'}}, {0, 10, battery_update, {'\0'}}, }; int main(void) { table[0].updatecallback(&table[0]); printf("%s\n", table[0].buffer); table[1].updatecallback(&table[1]); printf("%s\n", table[1].buffer); return 0; }