55 * This Should be kept close to lg2 of the number of items to store.
56 * @param level_probability Ignored
57 * @param allow_duplicates Allow duplicates in this list
58 * @param append_duplicates Append rather than prepend duplicates
59 * @param compare_function Comparison function for data entries
60 * @return pointer to a new skiplist on success, NULL on errors
61 */
62 skiplist *skiplist_new(int max_levels, float level_probability, int allow_duplicates, int append_duplicates, int (*compare_function)(void *, void *));
63
64/**
65 * Insert an item into a skiplist
66 * @param list The list to insert to
67 * @param data The data to insert
68 * @return SKIPLIST_OK on success, or an error code