mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Minor updates
This commit is contained in:
parent
926e2b6058
commit
dc0f920710
@ -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 */
|
||||
|
4
include/sys/u8_textprep.h
Normal file
4
include/sys/u8_textprep.h
Normal file
@ -0,0 +1,4 @@
|
||||
#ifndef _SPL_U8_TEXTPREP_H
|
||||
#define _SPL_U8_TEXTPREP_H
|
||||
|
||||
#endif /* SPL_U8_TEXTPREP_H */
|
Loading…
Reference in New Issue
Block a user