22 lines
397 B
C
22 lines
397 B
C
/* see LICENSE file for details on license */
|
|
#include <stdio.h>
|
|
|
|
#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;
|
|
}
|