File: worklog.h

package info (click to toggle)
worklog 2.1-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 132 kB
  • sloc: ansic: 712; makefile: 63
file content (40 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#define DEFAULT_LOG_FILE    "worklog_time.log"
#define DEFAULT_CONFIG_FILE "projects"

#define STRLEN 2048

#define IDLE_X 5
#define CR 10
#define LF 13

#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <curses.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <unistd.h>
#include <math.h>

int num_projects;
int x_update,y_update;
int IDLE_Y;
struct project_list *project_update, *no_category, *current_project=NULL;
char temps[STRLEN];
char temps2[STRLEN];
char starttimes[STRLEN];
char *log_filename;
int update_skip_refresh;
long initial_time,delta_time;
long fetch_total_time(struct project_list *);
void read_config_file(char *);
int isdelkey(int);
void draw_main_screen(void);
void draw_run_options(int);
void alarm_handler(int);
void do_resize(void);
void resize_handler(int);
int clock_on(int);
void exit_handler(int);