tstatus/tstatus.c

22 lines
397 B
C
Raw Normal View History

/* see LICENSE file for details on license */
2022-09-20 18:08:37 -05:00
#include <stdio.h>
2022-09-20 16:29:25 -05:00
#include "module.h"
2022-09-20 18:08:37 -05:00
#include "bspwm.c"
#include "battery.c"
2022-09-20 16:29:25 -05:00
struct module table[] = {
{0, 10, bspwm_update, {'\0'}},
2022-09-20 18:08:37 -05:00
{0, 10, battery_update, {'\0'}},
2022-09-20 16:29:25 -05:00
};
int main(void) {
table[0].updatecallback(&table[0]);
printf("%s\n", table[0].buffer);
2022-09-20 18:08:37 -05:00
table[1].updatecallback(&table[1]);
printf("%s\n", table[1].buffer);
2022-09-20 16:29:25 -05:00
return 0;
}