43 #ifndef _INTERFACE_UTIL_H
44 #define _INTERFACE_UTIL_H
47 #if defined (PLAYER_STATIC)
48 #define PLAYERINTERFACE_EXPORT
49 #elif defined (playerinterface_EXPORTS)
50 #define PLAYERINTERFACE_EXPORT __declspec (dllexport)
52 #define PLAYERINTERFACE_EXPORT __declspec (dllimport)
55 #define PLAYERINTERFACE_EXPORT
58 #include <playerconfig.h>
75 PLAYERINTERFACE_EXPORT
int itable_init (
void);
81 PLAYERINTERFACE_EXPORT
int itable_grow (
int newSize);
86 PLAYERINTERFACE_EXPORT
void itable_destroy (
void);
91 PLAYERINTERFACE_EXPORT
int itable_add (
const char *name,
unsigned int code,
int replace);
98 PLAYERINTERFACE_EXPORT
int lookup_interface(
const char* name,
player_interface_t* interf);
105 PLAYERINTERFACE_EXPORT
int
113 PLAYERINTERFACE_EXPORT
const char*
114 lookup_interface_name(
unsigned int startpos,
int code);
120 PLAYERINTERFACE_EXPORT
const char*
121 interf_to_str(uint16_t code);
127 PLAYERINTERFACE_EXPORT uint16_t
128 str_to_interf(
const char *name);
134 PLAYERINTERFACE_EXPORT
const char*
135 msgtype_to_str(uint8_t code);
141 PLAYERINTERFACE_EXPORT uint8_t
142 str_to_msgtype(
const char *name);