sphore 0.0.1
SPH openGL rendering engine
|
00001 /******************************************************************** 00002 * sphore - SPH Opengl Rendering Engine 00003 * 00004 * This file is (or was) part of sphore. 00005 * sphore comes with ABSOLUTELY NO WARRANTY. 00006 * This is free software; and you are welcome to redistribute 00007 * it under the terms of the GNU General Public License 00008 * (see LICENSE file for details) and the provision that 00009 * this notice remains intact. If you modify this file, please 00010 * note section 2a) of the GPLv2 states that: 00011 * 00012 * a) You must cause the modified files to carry prominent notices 00013 * stating that you changed the files and the date of any change. 00014 * 00015 * Copyright (C) 2011 James Wetter. All rights reserved. 00016 * Contact: wetter.j@gmail.com 00017 * 00018 ********************************************************************/ 00019 00024 #ifndef NODE_H 00025 #define NODE_H 00026 00030 typedef unsigned int _SREnodeID; 00031 00037 typedef struct _node node_t; 00038 00048 node_t *node_create (_SREnodeID id, void *data, node_t * next); 00049 00057 void node_destroy (node_t * node); 00058 00065 void node_destroy_data (node_t * node, void (*destroy_func) (void *)); 00066 00073 node_t *node_get_next (node_t * node); 00074 00081 _SREnodeID node_get_id (node_t * node); 00082 00089 void *node_get_data (node_t * node); 00090 00097 void node_set_next (node_t * node, node_t * new_next); 00098 #endif