46 #ifndef _INTERFACE_UTIL_H 47 #define _INTERFACE_UTIL_H 50 #if defined (PLAYER_STATIC) 51 #define PLAYERINTERFACE_EXPORT 52 #elif defined (playerinterface_EXPORTS) 53 #define PLAYERINTERFACE_EXPORT __declspec (dllexport) 55 #define PLAYERINTERFACE_EXPORT __declspec (dllimport) 58 #define PLAYERINTERFACE_EXPORT 61 #include <playerconfig.h> 80 PLAYERINTERFACE_EXPORT
int itable_init (
void);
86 PLAYERINTERFACE_EXPORT
int itable_grow (
int newSize);
91 PLAYERINTERFACE_EXPORT
void itable_destroy (
void);
96 PLAYERINTERFACE_EXPORT
int itable_add (
const char *name,
unsigned int code,
int replace);
103 PLAYERINTERFACE_EXPORT
int lookup_interface(
const char* name,
player_interface_t* interf);
110 PLAYERINTERFACE_EXPORT
int 118 PLAYERINTERFACE_EXPORT
const char*
119 lookup_interface_name(
unsigned int startpos,
int code);
125 PLAYERINTERFACE_EXPORT
const char*
126 interf_to_str(uint16_t code);
132 PLAYERINTERFACE_EXPORT uint16_t
133 str_to_interf(
const char *name);
139 PLAYERINTERFACE_EXPORT
const char*
140 msgtype_to_str(uint8_t code);
146 PLAYERINTERFACE_EXPORT uint8_t
147 str_to_msgtype(
const char *name);
Available interfaces are stored in an array of these, defined in interface_util.c.
Definition: interface_util.h:71