2009-08-08 19:45:49 +00:00
|
|
|
#ifndef UTILS_H
|
|
|
|
#define UTILS_H
|
|
|
|
|
|
|
|
Uint32 gtime(void);
|
|
|
|
Uint32 longtime(void);
|
|
|
|
|
2009-08-09 17:10:35 +00:00
|
|
|
#if 0
|
2009-08-08 19:45:49 +00:00
|
|
|
void create_unique(void);
|
|
|
|
void set_unique(Uint32 unique);
|
|
|
|
Uint32 get_unique(void);
|
2009-08-09 17:10:35 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define SEED_UNIQUE_SIZE (32*4+4)
|
|
|
|
void read_seed_unique(unsigned char *buf);
|
|
|
|
unsigned char* write_seed_unique(unsigned char *buf);
|
|
|
|
void create_seed_unique(void);
|
2009-08-08 19:45:49 +00:00
|
|
|
|
|
|
|
extern Uint32 network_unique;
|
|
|
|
|
|
|
|
int myrand(void);
|
|
|
|
|
|
|
|
void nomem(char *str);
|
|
|
|
|
2009-08-09 17:10:35 +00:00
|
|
|
int mypause(void);
|
2009-08-08 19:45:49 +00:00
|
|
|
void pulseon(void);
|
|
|
|
|
|
|
|
void hexdump(unsigned char *p, int len);
|
|
|
|
|
|
|
|
extern volatile int hc;
|
|
|
|
extern volatile char interrupted;
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|