XanVar Struct Reference

Variable. More...

#include <xanlib.h>

Data Fields

void * data
sem_t mutex
void *(* alloc )(size_t size)
void(* free )(void *address)
void *(* synchRead )(struct XanVar *var)
void(* synchWrite )(struct XanVar *var, void *data)
void *(* read )(struct XanVar *var)
void(* write )(struct XanVar *var, void *data)
void(* lock )(struct XanVar *var)
void(* unlock )(struct XanVar *var)
void(* destroyVarAndData )(struct XanVar *var)

Detailed Description

Variable.

Variable which store pointer

Definition at line 178 of file xanlib.h.


Field Documentation

void*(* XanVar::alloc)(size_t size)

Definition at line 182 of file xanlib.h.

Referenced by xanVarNew().

void* XanVar::data

Definition at line 180 of file xanlib.h.

Referenced by _varRead(), _varWrite(), varDestroyVarAndData(), and xanVarNew().

void(* XanVar::destroyVarAndData)(struct XanVar *var)

Destroy the XanVar and the data stored inside

Definition at line 193 of file xanlib.h.

Referenced by xanVarNew().

void(* XanVar::free)(void *address)

Definition at line 183 of file xanlib.h.

Referenced by varDestroyVarAndData(), and xanVarNew().

void(* XanVar::lock)(struct XanVar *var)

Take the lock to the XanVar

Definition at line 191 of file xanlib.h.

Referenced by xanVarNew().

Definition at line 181 of file xanlib.h.

Referenced by varDestroyVarAndData(), varLock(), varRead(), varUnlock(), varWrite(), and xanVarNew().

void*(* XanVar::read)(struct XanVar *var)

Return the pointer to the user variable.

Definition at line 189 of file xanlib.h.

Referenced by xanVarNew().

void*(* XanVar::synchRead)(struct XanVar *var)

Return the pointer to the user variable. This operation is act only after taked the lock to the list.

Definition at line 186 of file xanlib.h.

Referenced by xanVarNew().

void(* XanVar::synchWrite)(struct XanVar *var, void *data)

Write the user variable inside the XanVar structure. This operation is act only after taked the lock to the list.

Definition at line 187 of file xanlib.h.

Referenced by xanVarNew().

void(* XanVar::unlock)(struct XanVar *var)

Unlock the XanVar

Definition at line 192 of file xanlib.h.

Referenced by xanVarNew().

void(* XanVar::write)(struct XanVar *var, void *data)

Write the user variable inside the XanVar structure.

Definition at line 190 of file xanlib.h.

Referenced by xanVarNew().


The documentation for this struct was generated from the following file:
Generated on Mon Apr 26 15:54:47 2010 for xanlib by  doxygen 1.6.3