Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals  

slot.h

Go to the documentation of this file.
00001  /*
00002   * share/slot.h : slot is something within a somewhat context, you can put into
00003   * 
00004   * Time-stamp: <2003-01-08 18:38:56 gseba>
00005   * 
00006   * Copyright (C) Sebastian Glita, email: gseba@users.sourceforge.net
00007   * 
00008   * This file is part of plint.
00009   * 
00010   * plint is free software; you can  redistribute it and/or modify it under the
00011   * terms of the  GNU General Public License as published  by the Free Software
00012   * Foundation; either version 2, or (at your option) any later version.
00013   *
00014   * plint  is distributed  in the  hope  that it  will be  useful, but  WITHOUT
00015   * ANY  WARRANTY; without  even  the implied  warranty  of MERCHANTABILITY  or
00016   * FITNESS FOR A  PARTICULAR PURPOSE.  See the GNU  General Public License for
00017   * more details.
00018   * 
00019   * You should  have received a  copy of the  GNU General Public  License along
00020   * with  plint; see  the file  COPYING.  If  not, write  to the  Free Software
00021   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA USA.
00022   *
00023   */
00024 
00025 #ifndef SLOT_H
00026 #define SLOT_H
00027 
00045 typedef void * slot_key_t;
00046 
00050 typedef void (* slot_ffree_t)(void * DATA);
00051 
00058 typedef int (* slot_ffind_t)(void * DATA, void * PARM);
00059 
00060 
00061 __BEGIN_DECLS
00062 
00063 slot_key_t slot_create();
00064 void slot_delete(slot_key_t SLOT);
00065 
00066 int slot_register(slot_key_t SLOT, void * DATA, slot_ffree_t FREEFUNC);
00067 int slot_unregister(slot_key_t SLOT, int TYPE);
00068 
00069 void * slot_getdata(slot_key_t SLOT, int TYPE);
00070 int slot_setdata(slot_key_t SLOT, int TYPE, void * DATA);
00071 
00072 int slot_first(slot_key_t SLOT);
00073 int slot_next(slot_key_t SLOT, int TYPE);
00074 
00075 int slot_lock(slot_key_t SLOT);
00076 int slot_unlock(slot_key_t SLOT);
00077 
00078 int slot_find(slot_key_t SLOT, void * PARM, slot_ffind_t FINDFUNC);
00079 
00080 __END_DECLS
00081 
00082 
00085 #endif

Generated on Thu Jan 9 19:02:39 2003 for plint by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002