cleaned up a bit
This commit is contained in:
61
src/timer.h
Normal file
61
src/timer.h
Normal file
@ -0,0 +1,61 @@
|
||||
#ifndef TIMER_H
|
||||
#define TIMER_H
|
||||
|
||||
#include "display.h"
|
||||
#include "keys.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <wchar.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <signal.h>
|
||||
#include <math.h>
|
||||
#include "cJSON.h"
|
||||
|
||||
#define NS_PER_S 1000000000
|
||||
#define cJSON_GetItem(x, y) cJSON_GetObjectItemCaseSensitive(x, y)
|
||||
|
||||
struct segment
|
||||
{
|
||||
char *name;
|
||||
int ms;
|
||||
bool isSkipped;
|
||||
bool isReset;
|
||||
};
|
||||
|
||||
struct pastseg
|
||||
{
|
||||
int ms;
|
||||
bool isSkipped;
|
||||
bool isReset;
|
||||
};
|
||||
|
||||
void sub_timespec(struct timespec t1, struct timespec t2, struct timespec* td);
|
||||
void add_timespec(struct timespec t1, struct timespec t2, struct timespec* td);
|
||||
void start();
|
||||
void stop();
|
||||
void split();
|
||||
void tpause();
|
||||
void unsplit();
|
||||
void reset();
|
||||
void loadKeymap();
|
||||
void ftime(char *timestr, bool withMS, int ms);
|
||||
int timespecToMS(struct timespec t);
|
||||
void drawSegments();
|
||||
void drawCurrentSegment();
|
||||
void drawDisplay();
|
||||
void resize(int i);
|
||||
void importSplitsIO(cJSON *splitfile);
|
||||
void calculatePB();
|
||||
void loadFile();
|
||||
void saveFile();
|
||||
int main(int argc, char **argv);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user