timesynk/old/stubs.h

30 lines
903 B
C

#ifndef STUBS_H
#define STUBS_H
/**** stubs.h
This file defines the interface, and network stubs. During linking, the functions declared in this file will be linked to their compiled interface, or network functions.
****/
// loads up the needed resources for the interface and calls appropriate funcs
int interfaceInit();
// loop for handling network, user input, etc.
int interfaceLoop();
// draw function for UI, sprites, etc.
void interfaceDraw();
// cleans up resources allocated in the interface
void interfaceClose();
// function to call to quit the interface (e.g., console's quit)
void interfaceQuit();
/* non-main() Interface functions */
void interfacePrint(const char *input_string);
void interfacePrintf(const char *input_string, ...);
void interfaceDrawConsole();
/* common console commands */
void interfaceSetInterval(const char *input_string);
int netInit();
int netClose();
#endif