iceWing
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Typedefs | Functions
Gdata.h File Reference
#include <stdlib.h>

Go to the source code of this file.

Typedefs

typedef void * guiData
typedef void(* guiDataDestroyFunc )(void *objdata)

Functions

void gui_data_free (guiData data)
void gui_data_remove (guiData data, const char *key)
void ** gui_data_get (guiData data, const char *key)
void ** gui_data_set (guiData *data, const char *key, void *objdata, guiDataDestroyFunc destroy)

Typedef Documentation

typedef void* guiData
typedef void(* guiDataDestroyFunc)(void *objdata)

Function Documentation

void gui_data_free ( guiData  data)

  Free 'data' and all associated objdata.

void gui_data_remove ( guiData  data,
const char *  key 
)

  Free the data and the list entry associated with 'key'.

void** gui_data_get ( guiData  data,
const char *  key 
)

  Get the data associated with "key", return the address of the
  stored data.

void** gui_data_set ( guiData data,
const char *  key,
void *  objdata,
guiDataDestroyFunc  destroy 
)

  Append 'objdata' to 'data'. The data is indexed by 'key'. If there
  is already data associated with 'key' the new data will replace it.
  'destroy' is called when the data is removed.
  Return the address of the stored 'objdata'.