summaryrefslogtreecommitdiff
path: root/include/slist.h
diff options
context:
space:
mode:
authorAdam <Adam@Anope.org>2010-05-24 23:36:40 -0500
committerAdam <Adam@anope.org>2010-06-18 21:04:05 -0400
commit2fba686904e6f78ebab35df171c5757afeebf05d (patch)
tree523782bccc479606206f271cd6708b2f70fe8278 /include/slist.h
parent3a2c2a916a26f4fa1844e71a9f1c2fc25337fd2b (diff)
Burned slist, rewrote operservs XLine code
Diffstat (limited to 'include/slist.h')
-rw-r--r--include/slist.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/include/slist.h b/include/slist.h
deleted file mode 100644
index 3377cd48f..000000000
--- a/include/slist.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Header for Services list handler.
- *
- * (C) 2003-2010 Anope Team
- * Contact us at team@anope.org
- *
- * Please read COPYING and README for furhter details.
- *
- * Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
- *
- *
- */
-
-#ifndef SLIST_H
-#define SLIST_H
-
-typedef struct slist_ SList;
-typedef struct slistopts_ SListOpts;
-
-struct slist_ {
- void **list;
-
- int16 count; /* Total entries of the list */
- int16 capacity; /* Capacity of the list */
- int16 limit; /* Maximum possible entries on the list */
-
- SListOpts *opts;
-};
-
-struct slistopts_ {
- int32 flags; /* Flags for the list. See below. */
-
- int (*compareitem) (SList *slist, void *item1, void *item2); /* Called to compare two items */
- int (*isequal) (SList *slist, void *item1, void *item2); /* Called by slist_indexof. item1 can be an arbitrary pointer. */
- void (*freeitem) (SList *slist, void *item); /* Called when an item is removed */
-};
-
-#define SLIST_DEFAULT_LIMIT 32767
-
-#define SLISTF_NODUP 0x00000001 /* No duplicates in the list. */
-#define SLISTF_SORT 0x00000002 /* Automatically sort the list. Used with compareitem member. */
-
-/* Note that number is the index in the array + 1 */
-typedef int (*slist_enumcb_t) (SList *slist, int number, void *item, va_list args);
-/* Callback to know whether we can delete the entry. */
-typedef int (*slist_delcheckcb_t) (SList *slist, void *item, va_list args);
-
-#endif /* SLIST_H */
-