1 /** 2 * Copyright (C) 2015 Happy Fish / YuQing 3 * 4 * libfastcommon may be copied only under the terms of the GNU General 5 * Public License V3, which may be found in the FastDFS source kit. 6 * Please visit the FastDFS Home Page http://www.fastken.com/ for more detail. 7 **/ 8 9 //skiplist_common.h 10 #ifndef _SKIPLIST_COMMON_H 11 #define _SKIPLIST_COMMON_H 12 13 #include <stdio.h> 14 #include <stdlib.h> 15 #include <string.h> 16 #include "common_define.h" 17 18 #define SKIPLIST_DEFAULT_MIN_ALLOC_ELEMENTS_ONCE 64 19 20 typedef int (*skiplist_compare_func)(const void *p1, const void *p2); 21 typedef void (*skiplist_free_func)(void *ptr); 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 #endif 32 33