src/xh_sort.h
raw| 1 | #ifndef _XH_SORT_H_ |
| 2 | #define _XH_SORT_H_ |
| 3 | |
| 4 | #include "xh_config.h" |
| 5 | #include "xh_core.h" |
| 6 | |
| 7 | typedef struct { |
| 8 | xh_char_t *key; |
| 9 | I32 key_len; |
| 10 | void *value; |
| 11 | } xh_sort_hash_t; |
| 12 | |
| 13 | xh_sort_hash_t *xh_sort_hash(HV *hash, size_t len); |
| 14 | void xh_sort_hash_free(pTHX_ void *sorted_hash); |
| 15 | |
| 16 | #endif /* _XH_SORT_H_ */ |