35 lines
728 B
C
35 lines
728 B
C
/* see LICENSE file for details on license */
|
|
#define _POSIX_C_SOURCE 2
|
|
#include <stdio.h>
|
|
|
|
#include "module.h"
|
|
#include "bspwm.h"
|
|
#include "battery.h"
|
|
#include "thermal.h"
|
|
#include "datetime.h"
|
|
#include "alsa.h"
|
|
|
|
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;
|
|
}
|