1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#/*##########################################################################
# Copyright (C) 2004-2013 European Synchrotron Radiation Facility
#
# This file is part of the PyMca X-ray Fluorescence Toolkit developed at
# the ESRF by the Software group.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This file is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
#############################################################################*/
/***************************************************************************
*
* File: Lists.h
*
* Description: Include file for dealing with lists.
*
* Author: Vicente Rey
*
* Created: 22 May 1995
*
* (copyright by E.S.R.F. March 1995)
*
***************************************************************************/
#ifndef LISTS_H
#define LISTS_H
/* #include <malloc.h> */
typedef struct _ObjectList {
struct _ObjectList *next;
struct _ObjectList *prev;
void *contents;
} ObjectList;
typedef struct _ListHeader {
struct _ObjectList *first;
struct _ObjectList *last;
} ListHeader;
extern ObjectList * findInList ( ListHeader *list, int (*proc)(void *,void *), void *value );
extern long addToList ( ListHeader *list, void *object,long size);
extern void unlinkFromList ( ListHeader *list, ObjectList *element);
#endif /* LISTS_H */
|