Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/BLI_dynamiclist.h')
-rw-r--r--source/blender/blenlib/BLI_dynamiclist.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/source/blender/blenlib/BLI_dynamiclist.h b/source/blender/blenlib/BLI_dynamiclist.h
deleted file mode 100644
index 1334d830aff..00000000000
--- a/source/blender/blenlib/BLI_dynamiclist.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * $Id$
- *
- * ***** BEGIN GPL LICENSE BLOCK *****
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * Contributor(s): Jiri Hnidek.
- *
- * Documentation of Two way dynamic list with access array can be found at:
- *
- * http://wiki.blender.org/bin/view.pl/Blenderwiki/DynamicListWithAccessArray
- *
- * ***** END GPL LICENSE BLOCK *****
- */
-
-#ifndef BLI_DYNAMIC_LIST_H
-#define BLI_DYNAMIC_LIST_H
-
-#include "DNA_listBase.h"
-
-/*
- * Access array using realloc
- */
-typedef struct DynamicArray{
- unsigned int count; /* count of items in list */
- unsigned int max_item_index; /* max available index */
- unsigned int last_item_index; /* max used index */
- void **items; /* dynamicaly allocated array of pointers
- pointing at items in list */
-} DynamicArray;
-
-/*
- * Two way dynamic list with access array
- */
-typedef struct DynamicList {
- struct DynamicArray da; /* access array */
- struct ListBase lb; /* two way linked dynamic list */
-} DynamicList;
-
-/* note: 'index' is a string.h function, do not use in includes */
-struct DynamicList *BLI_dlist_from_listbase(struct ListBase *);
-struct ListBase *BLI_listbase_from_dlist(struct DynamicList *, struct ListBase *);
-void * BLI_dlist_find_link(struct DynamicList *, unsigned int);
-unsigned int BLI_count_items(struct DynamicList *);
-void BLI_dlist_free_item(struct DynamicList *, unsigned int);
-void BLI_dlist_rem_item(struct DynamicList *, unsigned int);
-void * BLI_dlist_add_item_index(struct DynamicList *, void *, unsigned int);
-void BLI_dlist_destroy(struct DynamicList *);
-void BLI_dlist_init(struct DynamicList *);
-void BLI_dlist_reinit(struct DynamicList *);
-
-#endif