Go to the source code of this file.
Compounds | |
struct | dice_func |
struct | dice_type |
Type functions | |
#define | DICE_no_types DICE_Type DICE_MyTypes[] = { NULL, NULL, NULL, NULL }; |
typedef dice_type | DICE_Type |
int | DICE_type_free (char *type, void *data) |
char * | DICE_type_pack (char *type, void *data, int *n) |
Packs a variable. More... | |
void * | DICE_type_unpack (char *type, char *packet, int *n) |
DICE_Type | DICE_MyTypes [] |
DICE attributes | |
typedef enum dice_attributetype | DICE_AttributeType |
Typedef encapsulation. | |
enum | dice_attributetype { LIBVERSION, VERBOSE, PORT, MAX_CONNECTIONS, OUTPUT, COLOR } |
Attributes of DICE API.. More... | |
int | DICE_set_attribute (DICE_AttributeType t, void *value) |
Sets an attribute value. See enum for list. More... | |
void * | DICE_get_attribute (DICE_AttributeType t) |
int | DICE_is_original (void) |
Initialization/finalization | |
int | DICE_init (int *argc, char **argv) |
Inits the library. More... | |
void | DICE_close (void) |
Sync functions | |
int | DICE_sync (void) |
Synchronizes the applications. More... | |
int | DICE_sync_new (char *name, char *type, void *value) |
Creates a new synchronized variable. More... | |
int | DICE_sync_delete (char *name) |
Internal: Deletes an existing synchronized variable. More... | |
int | DICE_sync_update (char *name, void *value) |
void * | DICE_sync_get (char *name) |
void * | DICE_sync_get_next (char *name) |
Get the content of the next update. More... | |
Async functions | |
int | DICE_async_new (char *name, char *type, void *value) |
int | DICE_async_delete (char *name) |
int | DICE_async_update (char *name, void *value) |
void * | DICE_async_get (char *name) |
int | DICE_async_lock (char *name) |
int | DICE_async_unlock (char *name) |
Defines | |
#define | DICE_no_functions DICE_Function DICE_MyFunctions[] = { NULL, NULL }; |
Typedefs | |
typedef dice_func | DICE_Function |
Functions | |
int | DICE_function (void *data) |
Variables | |
DICE_Function | DICE_MyFunctions [] |
Definition in file dicelib.h.
|
Attributes of DICE API..
|
|
Inits the library.
This function must be called before any other DICE function. Recognized arguments are:
|
|
Sets an attribute value. See enum for list.
|
|
Synchronizes the applications.
What it does:
|
|
Internal: Deletes an existing synchronized variable.
Deletes an existing synchronized variable. Takes care of memory deallocation.
|
|
Get the content of the next update.
Long description
|
|
Creates a new synchronized variable.
Long description
|
|
Packs a variable.
Process a variable data of type type, and returns a string, and the length of this string in the pointer n. The type must have been previously registered. The user is responsible for freeing the returned string.
|