1 /* prot.h - protocol implementation header */
9 /* space for 16 Mi jobs */
10 #define HEAP_SIZE 16 * 1024 * 1024
12 #define URGENT_THRESHOLD 1024
14 /* measured in seconds */
15 #define RESERVATION_TIMEOUT 120
17 #define MSG_RESERVED "RESERVED"
21 void reply(conn c
, char *line
, int len
, int state
);
22 void reply_job(conn c
, job j
, const char *word
);
24 void enqueue_waiting_conn(conn c
);
26 int enqueue_job(job j
);
31 job
peek_job(unsigned long long int id
);
33 unsigned int get_ready_job_ct();
34 unsigned int get_buried_job_ct();
35 unsigned int get_urgent_job_ct();