common/vector.h

00001 /*
00002  * Copyright Ian Burnett 2005, 2006.
00003  *
00004  * This file is part of Ian's Interactive LCD controller (IILC).
00005  * 
00006  * IILC is free software; you can redistribute it and/or modify it under
00007  * the terms of the GNU General Public License as published by the Free
00008  * Software Foundation; either version 2 of the License, or (at your
00009  * option) any later version.
00010  *
00011  * IILC is distributed in the hope that it will be useful, but WITHOUT
00012  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00014  * for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License along
00017  * with IILC; if not, write to the Free Software Foundation, Inc.,
00018  * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
00019  */
00020 
00021 #if !defined(__VECTOR_H__)
00022 #define __VECTOR_H__
00023 
00024 
00025 typedef struct _tag_vector * LPVECTOR;
00026 
00027 int vectorCreate(LPVECTOR * ppVector);
00028 
00029 int vectorDestroy(LPVECTOR * ppVector);
00030 
00031 int vectorAdd(LPVECTOR pVector,
00032               void * data);
00033 
00034 int vectorRemove(LPVECTOR pVector,
00035                  void * data);
00036 
00037 int vectorGetSize(LPVECTOR pVector,
00038                   int * pnSize);
00039 
00040 int vectorGetElementAt(LPVECTOR pVector,
00041                        int nIndex,
00042                        void ** pData);
00043 
00044 int vectorSetElementAt(LPVECTOR pVector, 
00045                        int nIndex, 
00046                        void * pData);
00047 
00048 
00049 #endif /* __VECTOR_H__ */
00050 

Generated on Mon Jul 17 01:36:11 2006 for IILC by  doxygen 1.4.6