Electroneum
outbound_list.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  outbound_list
 
struct  outbound_entry
 

Functions

void outbound_list_init (struct outbound_list *list)
 
void outbound_list_clear (struct outbound_list *list)
 
void outbound_list_insert (struct outbound_list *list, struct outbound_entry *e)
 
void outbound_list_remove (struct outbound_list *list, struct outbound_entry *e)
 

Detailed Description

This file contains functions to help a module keep track of the queries it has outstanding to authoritative servers.

Definition in file outbound_list.h.

Function Documentation

◆ outbound_list_clear()

void outbound_list_clear ( struct outbound_list list)

Clear the user owner outbound list structure. Deletes serviced queries.

Parameters
listthe list structure. It is cleared, but the list struct itself is callers responsability to delete.

◆ outbound_list_init()

void outbound_list_init ( struct outbound_list list)

Init the user allocated outbound list structure

Parameters
listthe list structure.

◆ outbound_list_insert()

void outbound_list_insert ( struct outbound_list list,
struct outbound_entry e 
)

Insert new entry into the list. Caller must allocate the entry with malloc. qstate and qsent are set by caller.

Parameters
listthe list to add to.
eentry to add, it is only half initialised at call start, fully initialised at call end.

◆ outbound_list_remove()

void outbound_list_remove ( struct outbound_list list,
struct outbound_entry e 
)

Remove an entry from the list, and deletes it. Deletes serviced query in the entry.

Parameters
listthe list to remove from.
ethe entry to remove.