list.h

00001 /***************************************************************************
00002                           list.h  -  description
00003                              -------------------
00004     begin                : Fri Feb 20 2004
00005     copyright            : (C) 2004 by Dynacube Team
00006     email                : 
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018  #ifndef __LIST_H
00019  #define __LIST_H
00020 
00021  #include "gui/components/window.h"
00022  #include "gui/components/component.h"
00023  #include "gui/components/frame.h"
00024 
00025  #ifdef __cplusplus
00026    extern "C"
00027    {
00028      #include "common/stdlib.h"
00029    }
00030  #else
00031      #include "common/stdlib.h" 
00032  #endif
00033 
00034   #define WIND_TYPE 1
00035   #define FRM_TYPE  2
00036   #define COMP_TYPE 3
00037   
00038   void list_init();
00039   
00040   SDW ladd(DW pid, DB type, void *ptr);
00041   SDW lremove(DW pid, DB type, DW index);
00042   void lremoveAll(DW pid);
00043   void* lfind(DW pid, DB type, DW index); //Return read_id or -1
00044 
00045   void printList(DW pid, DB type);
00046   
00047  #endif

Generated on Thu Jul 27 23:52:27 2006 for Dynacube by  doxygen 1.4.7