"Fossies" - the Fresh Open Source Software Archive

Member "wcalc-2.5/src/common/includes/list.h" (29 Dec 2014, 1047 Bytes) of package /linux/privat/wcalc-2.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "list.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.4.1_vs_2.5.

    1 /*
    2  *
    3  * This file is the header of a basic, generic list (well, technically, a
    4  * queue) object implementation.
    5  *
    6  */
    7 #ifndef WCALC_PACKETLIST
    8 #define WCALC_PACKETLIST
    9 
   10 struct _list;
   11 typedef struct _list *List;
   12 struct _list_iterator;
   13 typedef struct _list_iterator *ListIterator;
   14 
   15 /* this is for the memory pools */
   16 void lists_init(void);
   17 void lists_cleanup(void);
   18 
   19 /* List operations */
   20 void addToList(List *,
   21                void *);
   22 void addToListHead(List *,
   23                    void *);
   24 void  *getHeadOfList(List /*@null@*/);
   25 void  *peekListElement(List /*@null@*/, size_t);
   26 void  *getListElement(List, size_t);
   27 void  *peekAheadInList(List);
   28 size_t listLen(List /*@null@*/);
   29 void   removeFromList(List, void *);
   30 void freeList(List *);
   31 
   32 /* ListIterator operations */
   33 ListIterator getListIterator(List);
   34 void        *currentListElement(ListIterator);
   35 void        *nextListElement(ListIterator);
   36 void         resetListIterator(ListIterator);
   37 void         freeListIterator(ListIterator);
   38 #endif // ifndef WCALC_PACKETLIST
   39 /* vim:set expandtab: */