tstatus/tstatus.c

27 lines
524 B
C

/* see LICENSE file for details on license */
#include <stdio.h>
#include "module.h"
#include "bspwm.c"
#include "battery.c"
#include "thermal.c"
struct module table[] = {
{0, 10, bspwm_update, {'\0'}},
{0, 10, battery_update, {'\0'}},
{0, 10, thermal_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);
table[2].updatecallback(&table[2]);
printf("%s\n", table[2].buffer);
return 0;
}