dependencies.h 865 Bytes

#ifndef __DEPENDENCIES_H__
#define __DEPENDENCIES_H__

#ifdef WIN32
#include <windows.h>
#endif

#include "AnubisSupport.h"
   
   
/**
 * here we make some OS depend initializations
 * @return 1 if OK, negative value otherwise
 */
int kernelInit(void);

/**
 * Wait until keyboard event are occurred
 */
void WaitForKeyboard(void);

void common_sleep(unsigned int  mseconds );

/**
 * Must be called (at least on Windows) before to call system_time() function.
 */
status_t initftime(void);

#ifdef __cplusplus
extern "C" {
#endif
/**
 * time since booting in microseconds
 */
bigtime_t system_time (void);

#ifdef __cplusplus
}
#endif


#ifdef WIN32
char * getpass(char * in);
void my_exit(int returnCode);
#endif

#ifdef __BEOS__
char *getpass(const char *prompt);
#endif

#if defined (_LINUX_) || (__BEOS__)
#define my_exit(n)   exit(n)
#endif

#endif