#include "CbCTaskManager.h" #include "taskinit.h" #define F_NONE 0x000 #define F_STARTER 0x001 #define F_a 0x002 #define F_b 0x004 typedef struct _TaskType { Taskrun code; char *name; unsigned int flag; // F_STARTER .. } TaskType; const int max_tasktype = MAX_TASKCLASS; extern __code nojob(UserManager *, void *, void *); #undef DEFINETASKTYPE #define DEFINETASKTYPE(_var, _code0, _name, _type) \ { _code0, _name, _type }, const TaskType tasktypes[] = { { nojob, "no jobs", F_NONE }, { nojob, "no jobs", F_NONE }, #include "task.def" };