Contiki-NG
Loading...
Searching...
No Matches

Implementation of circular singly linked lists. More...

#include "contiki.h"
#include "lib/circular-list.h"
#include <stdint.h>
#include <stdbool.h>
#include <string.h>

Go to the source code of this file.

Functions

void circular_list_init (circular_list_t cl)
 Initialise a circular, singly-linked list.
 
void * circular_list_head (const_circular_list_t cl)
 Return the tail of a circular, singly-linked list.
 
void * circular_list_tail (const_circular_list_t cl)
 Return the tail of a circular, singly-linked list.
 
void circular_list_remove (circular_list_t cl, const void *element)
 Remove an element from a circular, singly-linked list.
 
void circular_list_add (circular_list_t cl, void *element)
 Add an element to a circular, singly-linked list.
 
unsigned long circular_list_length (const_circular_list_t cl)
 Get the length of a circular, singly-linked list.
 
bool circular_list_is_empty (const_circular_list_t cl)
 Determine whether a circular, singly-linked list is empty.
 

Detailed Description

Implementation of circular singly linked lists.

Definition in file circular-list.c.