Blender V2.61 - r43446

DNA_listBase.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
00019  * All rights reserved.
00020  *
00021  * The Original Code is: all of this file.
00022  *
00023  * Contributor(s): none yet.
00024  *
00025  * ***** END GPL LICENSE BLOCK *****
00026  *
00027  *
00028  */
00029 
00036 #ifndef DNA_LISTBASE_H
00037 #define DNA_LISTBASE_H
00038 
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042 
00043 /* generic - all structs which are used in linked-lists used this */
00044 typedef struct Link
00045 {
00046     struct Link *next,*prev;
00047 } Link;
00048 
00049 
00050 /* use this when it is not worth defining a custom one... */
00051 typedef struct LinkData
00052 {
00053     struct LinkData *next, *prev;
00054     void *data;
00055 } LinkData;
00056 
00057 /* never change the size of this! genfile.c detects pointerlen with it */
00058 typedef struct ListBase 
00059 {
00060     void *first, *last;
00061 } ListBase;
00062 
00063 /* 8 byte alignment! */
00064 
00065 #ifdef __cplusplus
00066 }
00067 #endif
00068 
00069 #endif
00070