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>
80PLAYERINTERFACE_EXPORT
int itable_init (
void);
86PLAYERINTERFACE_EXPORT
int itable_grow (
int newSize);
91PLAYERINTERFACE_EXPORT
void itable_destroy (
void);
96PLAYERINTERFACE_EXPORT
int itable_add (
const char *name,
unsigned int code,
int replace);
103PLAYERINTERFACE_EXPORT
int lookup_interface(
const char* name,
player_interface_t* interf);
110PLAYERINTERFACE_EXPORT
int
118PLAYERINTERFACE_EXPORT
const char*
119lookup_interface_name(
unsigned int startpos,
int code);
125PLAYERINTERFACE_EXPORT
const char*
126interf_to_str(uint16_t code);
132PLAYERINTERFACE_EXPORT uint16_t
133str_to_interf(
const char *name);
139PLAYERINTERFACE_EXPORT
const char*
140msgtype_to_str(uint8_t code);
146PLAYERINTERFACE_EXPORT uint8_t
147str_to_msgtype(
const char *name);
Available interfaces are stored in an array of these, defined in interface_util.c.
Definition interface_util.h:72