1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef GITROLEX_CORE_H #define GITROLEX_CORE_H #include <stdlib.h> #include <stdio.h> int gitrolex_core(); enum Task_t { ERROR = -1, STATUS = 0, EXPORT, TRACK }; struct State_t { enum Task_t task; char taskArgs[1024]; }; void gitrolex_parseArgs(struct State_t *s, int argc, const char *argv[]); #endif