libplayerinterface

Modules

 Messaging basics
 

Interface-independent message types, sizes, units, address structures, etc.


 Interface specifications
 

All Player communication occurs through interfaces, which specify the syntax and semantics for a set of messages.


#define PLAYERINTERFACE_EXPORT
PLAYERINTERFACE_EXPORT int itable_init (void)
PLAYERINTERFACE_EXPORT int itable_grow (int newSize)
PLAYERINTERFACE_EXPORT void itable_destroy (void)
PLAYERINTERFACE_EXPORT int itable_add (const char *name, unsigned int code, int replace)
PLAYERINTERFACE_EXPORT int lookup_interface (const char *name, player_interface_t *interf)
PLAYERINTERFACE_EXPORT int lookup_interface_code (int code, player_interface_t *interf)
PLAYERINTERFACE_EXPORT const char * lookup_interface_name (unsigned int startpos, int code)
PLAYERINTERFACE_EXPORT const char * interf_to_str (uint16_t code)
PLAYERINTERFACE_EXPORT uint16_t str_to_interf (const char *name)
PLAYERINTERFACE_EXPORT const char * msgtype_to_str (uint8_t code)
PLAYERINTERFACE_EXPORT uint8_t str_to_msgtype (const char *name)