36 lines
755 B
C
36 lines
755 B
C
/* see LICENSE file for details on license */
|
|
#include <stdio.h>
|
|
|
|
#define LENGTH(x) (sizeof(x) / sizeof(*x))
|
|
|
|
#include "module.h"
|
|
#include "bspwm.c"
|
|
#include "battery.c"
|
|
#include "thermal.c"
|
|
#include "datetime.c"
|
|
#include "alsa.c"
|
|
|
|
struct module table[] = {
|
|
{0, 10, bspwm_update, {'\0'}},
|
|
{0, 10, battery_update, {'\0'}},
|
|
{0, 10, thermal_update, {'\0'}},
|
|
{0, 10, datetime_update, {'\0'}},
|
|
{0, 10, alsa_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);
|
|
|
|
table[3].updatecallback(&table[2]);
|
|
printf("%s\n", table[2].buffer);
|
|
|
|
return 0;
|
|
}
|