Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:01:21

0001 /*
0002   Copyright @ 2002 ImageMagick Studio LLC, a non-profit organization
0003   dedicated to making software imaging solutions freely available.
0004   
0005   You may not use this file except in compliance with the License.  You may
0006   obtain a copy of the License at
0007   
0008     https://imagemagick.org/script/license.php
0009   
0010   Unless required by applicable law or agreed to in writing, software
0011   distributed under the License is distributed on an "AS IS" BASIS,
0012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013   See the License for the specific language governing permissions and
0014   limitations under the License.
0015 
0016   MagickCore linked list methods.
0017 */
0018 #ifndef MAGICKCORE_LINKED_LIST_H
0019 #define MAGICKCORE_LINKED_LIST_H
0020 
0021 #if defined(__cplusplus) || defined(c_plusplus)
0022 extern "C" {
0023 #endif
0024 
0025 typedef struct _LinkedListInfo
0026   LinkedListInfo;
0027 
0028 extern MagickExport LinkedListInfo
0029   *DestroyLinkedList(LinkedListInfo *,void *(*)(void *)),
0030   *NewLinkedList(const size_t);
0031 
0032 extern MagickExport MagickBooleanType
0033   AppendValueToLinkedList(LinkedListInfo *,const void *),
0034   InsertValueInLinkedList(LinkedListInfo *,const size_t,const void *),
0035   InsertValueInSortedLinkedList(LinkedListInfo *,
0036     int (*)(const void *,const void *),void **,const void *),
0037   IsLinkedListEmpty(const LinkedListInfo *),
0038   LinkedListToArray(LinkedListInfo *,void **);
0039 
0040 extern MagickExport size_t
0041   GetNumberOfElementsInLinkedList(const LinkedListInfo *);
0042 
0043 extern MagickExport void
0044   ClearLinkedList(LinkedListInfo *,void *(*)(void *)),
0045   *GetLastValueInLinkedList(LinkedListInfo *),
0046   *GetNextValueInLinkedList(LinkedListInfo *),
0047   *GetValueFromLinkedList(LinkedListInfo *,const size_t),
0048   *RemoveElementByValueFromLinkedList(LinkedListInfo *,const void *),
0049   *RemoveElementFromLinkedList(LinkedListInfo *,const size_t),
0050   *RemoveLastElementFromLinkedList(LinkedListInfo *),
0051   ResetLinkedListIterator(LinkedListInfo *);
0052 
0053 #if defined(__cplusplus) || defined(c_plusplus)
0054 }
0055 #endif
0056 
0057 #endif