ENet  v1.3.17
Reliable UDP networking library
Data Structures | Macros | Typedefs | Functions
list.h File Reference

ENet list management. More...

#include <stdlib.h>

Data Structures

struct  ENetList
 
struct  ENetListNode
 

Macros

#define enet_list_back(list)   ((void *) (list) -> sentinel.previous)
 
#define enet_list_begin(list)   ((list) -> sentinel.next)
 
#define enet_list_empty(list)   (enet_list_begin (list) == enet_list_end (list))
 
#define enet_list_end(list)   (& (list) -> sentinel)
 
#define enet_list_front(list)   ((void *) (list) -> sentinel.next)
 
#define enet_list_next(iterator)   ((iterator) -> next)
 
#define enet_list_previous(iterator)   ((iterator) -> previous)
 

Typedefs

typedef ENetListNodeENetListIterator
 

Functions

void enet_list_clear (ENetList *)
 
ENetListIterator enet_list_insert (ENetListIterator, void *)
 
ENetListIterator enet_list_move (ENetListIterator, void *, void *)
 
void * enet_list_remove (ENetListIterator)
 
size_t enet_list_size (ENetList *)
 

Detailed Description

ENet list management.

Macro Definition Documentation

◆ enet_list_back

#define enet_list_back (   list)    ((void *) (list) -> sentinel.previous)

◆ enet_list_begin

#define enet_list_begin (   list)    ((list) -> sentinel.next)

◆ enet_list_empty

#define enet_list_empty (   list)    (enet_list_begin (list) == enet_list_end (list))

◆ enet_list_end

#define enet_list_end (   list)    (& (list) -> sentinel)

◆ enet_list_front

#define enet_list_front (   list)    ((void *) (list) -> sentinel.next)

◆ enet_list_next

#define enet_list_next (   iterator)    ((iterator) -> next)

◆ enet_list_previous

#define enet_list_previous (   iterator)    ((iterator) -> previous)

Typedef Documentation

◆ ENetListIterator