1 /* 2 * Copyright 2011 Tom Stellard <[email protected]> 3 * SPDX-License-Identifier: MIT 4 */ 5 6 #ifndef RADEON_LIST_H 7 #define RADEON_LIST_H 8 9 struct memory_pool; 10 11 struct rc_list { 12 void * Item; 13 struct rc_list * Prev; 14 struct rc_list * Next; 15 }; 16 17 struct rc_list * rc_list(struct memory_pool * pool, void * item); 18 void rc_list_add(struct rc_list ** list, struct rc_list * new_value); 19 void rc_list_remove(struct rc_list ** list, struct rc_list * rm_value); 20 unsigned int rc_list_count(struct rc_list * list); 21 void rc_list_print(struct rc_list * list); 22 23 #endif /* RADEON_LIST_H */ 24 25