fix if statements and sds publishing
[mTask.git] / int / task.h
1 #ifndef TASK_H
2 #define TASK_H
3
4 #define MAXTASKS 5
5 #define MAXTASKSIZE 1024
6
7 #include <stdint.h>
8 #include <stdbool.h>
9
10 struct task {
11 uint8_t bc[MAXTASKSIZE];
12 uint16_t tlen;
13 uint16_t interval;
14 long lastrun;
15 bool used;
16 };
17
18 int task_register(int fd);
19 void task_delete(int fd);
20 struct task *task_get(int num);
21
22 #endif