1
0

private.h 347 B

123456789101112131415
  1. #include "faux/list.h"
  2. struct faux_list_node_s {
  3. faux_list_node_t *prev;
  4. faux_list_node_t *next;
  5. void *data;
  6. };
  7. struct faux_list_s {
  8. faux_list_node_t *head;
  9. faux_list_node_t *tail;
  10. faux_list_compare_fn *compareFn; // Function to compare two list elements
  11. faux_list_free_fn *freeFn; // Function to properly free data field
  12. size_t len;
  13. };