MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
linked-list.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2018 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License.
6  obtain a copy of the License at
7 
8  https://www.imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickCore linked list methods.
17 */
18 #ifndef MAGICKCORE_LINKED_LIST_H
19 #define MAGICKCORE_LINKED_LIST_H
20 
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24 
25 typedef struct _LinkedListInfo
27 
29  *DestroyLinkedList(LinkedListInfo *,void *(*)(void *)),
30  *NewLinkedList(const size_t);
31 
34  InsertValueInLinkedList(LinkedListInfo *,const size_t,const void *),
36  int (*)(const void *,const void *),void **,const void *),
39 
40 extern MagickExport size_t
42 
43 extern MagickExport void
44  ClearLinkedList(LinkedListInfo *,void *(*)(void *)),
47  *GetValueFromLinkedList(LinkedListInfo *,const size_t),
52 
53 #if defined(__cplusplus) || defined(c_plusplus)
54 }
55 #endif
56 
57 #endif
MagickExport MagickBooleanType IsLinkedListEmpty(const LinkedListInfo *)
MagickExport void ResetLinkedListIterator(LinkedListInfo *)
Definition: linked-list.c:959
MagickExport void * GetNextValueInLinkedList(LinkedListInfo *)
MagickExport void * RemoveElementByValueFromLinkedList(LinkedListInfo *, const void *)
MagickExport void * GetLastValueInLinkedList(LinkedListInfo *)
MagickExport MagickBooleanType LinkedListToArray(LinkedListInfo *, void **)
Definition: linked-list.c:666
MagickBooleanType
Definition: magick-type.h:156
MagickExport MagickBooleanType AppendValueToLinkedList(LinkedListInfo *, const void *)
MagickExport MagickBooleanType InsertValueInSortedLinkedList(LinkedListInfo *, int(*)(const void *, const void *), void **, const void *)
MagickExport void * RemoveElementFromLinkedList(LinkedListInfo *, const size_t)
MagickExport LinkedListInfo * DestroyLinkedList(LinkedListInfo *, void *(*)(void *))
MagickExport MagickBooleanType InsertValueInLinkedList(LinkedListInfo *, const size_t, const void *)
MagickExport void * RemoveLastElementFromLinkedList(LinkedListInfo *)
MagickExport void ClearLinkedList(LinkedListInfo *, void *(*)(void *))
MagickExport LinkedListInfo * NewLinkedList(const size_t)
Definition: linked-list.c:713
MagickExport void * GetValueFromLinkedList(LinkedListInfo *, const size_t)
#define MagickExport
MagickExport size_t GetNumberOfElementsInLinkedList(const LinkedListInfo *)
Definition: linked-list.c:348