home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_12
/
8n12113a
< prev
next >
Wrap
Text File
|
1990-07-18
|
1KB
|
31 lines
/*
* time_entry.h
*
* Definition of event structure & types, socket &
* file names.
*/
#define SOCKET_NAME "/usr/bryang/tmp/time_socket"
#define TIME_FILE "/usr/bryang/ta/time"
typedef struct {
int event_cd; /* Code to specify event; see below */
time_t event_st; /* Time stamp of event start time */
char bill_flag; /* Y - time is billable */
char logname[8]; /* Login name of user */
}EVENT_TYPE;
/*
* The following are examples of valid event types.
*/
#define PHONE_IN 1 /* Phone time - in call */
#define PHONE_OUT 2 /* Phone time - out call */
#define PROJECT_CODED 3 /* Project time w/ time code */
#define PROCEST_NSPEC 4 /* Project time w/o time code */
#define OVERHEAD 5 /* General overhead time */
#define MARKETING 6 /* Looking for that next slot... */
#define SHUT_DOWN 99 /* Force server process to exit */