File: network.h

package info (click to toggle)
netmaze 0.81+jpg0.82-12
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,208 kB
  • ctags: 912
  • sloc: ansic: 8,277; tcl: 1,223; makefile: 60; sh: 26
file content (41 lines) | stat: -rw-r--r-- 787 bytes parent folder | download | duplicates (5)
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
41

#define SUBSERVMODE 1
#define PLAYERMODE 2
#define CAMMODE 3

/*
#define CAMMAGIC     0x47115d1eL
#define SUBSERVMAGIC 0x08151234L
#define PLAYERMAGIC  0x17121970L
*/

/* V0.8 - magics: this avoids bugs, because of different versions */
#define CAMMAGIC    0x4d696b60L
#define SUBSERVMAGIC 0x78531930L
#define PLAYERMAGIC 0x77554712L

/*
void pushlong(char *s,long w)
{
  s[0] = ((unsigned long) w)>>24;
  s[1] = ((unsigned long) w)>>16;
  s[2] = ((unsigned long) w)>>8;
  s[3] = ((unsigned long) w);
}

long poplong(char *s)
{
  w = ((unsigend long) s[0]<<24) + ((unsigend long) s[1]<<16) +
      ((unsigend long) s[2]<<8) + ((unsigend long) s[3])
  return((long) w);

}
*/

struct robot_functions {
  int  valid;
  void (*init)(void);
  void (*start)(int);
  int (*action)(void);
};