src/vapiIOList.h

Ir para a documentação deste ficheiro.
00001 #ifndef _VAPI_IO_LIST_
00002 #define _VAPI_IO_LIST_
00003 #include "vapiLists.h"
00004 #include "vapiGroups.h"
00005 #include "vapiIO.h"
00006 
00007 /*
00008  * Definir apontador para cada elemento.
00009  */
00010 typedef vList vIOList, vIOListConfigured;
00011 
00012 typedef struct _vIOConfigured
00013 {
00014         vIO *IO;
00015         vOptions *Options;
00016 } vIOConfigured;
00017 
00018 /*
00019  * A lista de Hardware tem que ser uma variável global.
00020  */
00021 vIOList *GlobalIOListConfigured;
00022 
00023 vIOListConfigured *GlobalIOList;
00024 
00025 vGroupList *GlobalIOGroups;
00026 
00027 vIOList *vapiIOListNew ();
00028 
00029 int vapiIOListAddIO (vIOList * IOList, const char *IOname,
00030                      const char *GroupName, const char *IOdescription,
00031                      int IOtype, int InData, int OutData, vIOFunction IOFunc);
00032 
00033 int vapiIOListCount (vIOList * IOList);
00034 
00035 vIO *vapiIOListSelect (vIOList * IOList, const char *IOname);
00036 
00037 int vapiIOListSelectN (vIOList * IOList, const char *IOname);
00038 
00039 void vapiIOListAddGroup (vIOList * IOList, vGroupList * GroupList);
00040 
00041 /*** Configured List ***/
00042 
00043 vIOListConfigured *vapiIOListConfiguredNew ();
00044 
00045 void vapiIOConfiguredDelete (int item);
00046 
00047 void vapiIOListFreeConfigured (vIOConfigured * vFree);
00048 
00049 void vapiIOListConfiguredAdd (vIO * IO, vOptions * Options);
00050 
00051 #endif

Gerado em Tue Jul 24 10:34:59 2007 para Vapi por  doxygen 1.5.1