2016-12-20 00:32:34 -08:00
|
|
|
#ifndef LIBDS_HEADER
|
|
|
|
#define LIBDS_HEADER
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
enum libds_result_e {
|
2016-12-20 21:21:53 -08:00
|
|
|
SUCCESS,
|
2016-12-20 00:32:34 -08:00
|
|
|
MALLOC
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum libds_result_e libds_result;
|
|
|
|
typedef int (*compare_func)(void*, void*);
|
|
|
|
typedef int (*foreach_func)(void*, va_list);
|
|
|
|
|
|
|
|
int compare_always(void* a, void* b);
|
|
|
|
|
|
|
|
#endif
|