File: driver.h

package info (click to toggle)
conquest 8.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,984 kB
  • ctags: 3,086
  • sloc: ansic: 39,393; sh: 8,540; yacc: 446; makefile: 296; lex: 146
file content (27 lines) | stat: -rw-r--r-- 791 bytes parent folder | download
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
/* 
 * Driver structure
 *
 * $Id: driver.h,v 1.3 2003/11/02 20:53:00 jon Exp $
 *
 * Copyright 1999-2004 Jon Trulson under the ARTISTIC LICENSE. (See LICENSE).
 */

#ifndef DRIVER_H_INCLUDED
#define DRIVER_H_INCLUDED

#include "conqdef.h"

typedef struct {
  int drivstat;			/* driver status; one of the DRS_ values */
  int drivpid;			/* pid of the driver process */
  int drivcnt;			/* number of driver timeouts (modp1 1000) */
  int drivsecs;			/* phase of the universe in seconds */
				/*  (modp1 five minutes) */
  char drivowner[MAXUSERNAME]; /* username of the driver's owner */
  				/* The following are seconds since midnight. */
  int drivtime;			/* last time the driver looped */
  int playtime;			/* last time a player looped */
  
} Driver_t;

#endif /* DRIVER_H_INCLUDED */