Minor updates

This commit is contained in:
Brian Behlendorf 2008-12-23 13:25:52 -08:00
parent 926e2b6058
commit dc0f920710
2 changed files with 39 additions and 0 deletions

View File

@ -1,4 +1,39 @@
#ifndef _SPL_LIST_H
#define _SPL_LIST_H
#include <sys/types.h>
typedef struct list_node {
struct list_node *list_next;
struct list_node *list_prev;
} list_node_t;
typedef struct list {
size_t list_size;
size_t list_offset;
struct list_node list_head;
} list_t;
void list_create(list_t *, size_t, size_t);
void list_destroy(list_t *);
void list_insert_after(list_t *, void *, void *);
void list_insert_before(list_t *, void *, void *);
void list_insert_head(list_t *, void *);
void list_insert_tail(list_t *, void *);
void list_remove(list_t *, void *);
void *list_remove_head(list_t *);
void *list_remove_tail(list_t *);
void *list_head(list_t *);
void *list_tail(list_t *);
void *list_next(list_t *, void *);
void *list_prev(list_t *, void *);
int list_is_empty(list_t *);
void list_link_init(list_node_t *);
void list_link_replace(list_node_t *, list_node_t *);
int list_link_active(list_node_t *);
#endif /* SPL_LIST_H */

View File

@ -0,0 +1,4 @@
#ifndef _SPL_U8_TEXTPREP_H
#define _SPL_U8_TEXTPREP_H
#endif /* SPL_U8_TEXTPREP_H */