|
Electroneum
|

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) |
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.
| void outbound_list_clear | ( | struct outbound_list * | list | ) |
Clear the user owner outbound list structure. Deletes serviced queries.
| list | the list structure. It is cleared, but the list struct itself is callers responsability to delete. |
| void outbound_list_init | ( | struct outbound_list * | list | ) |
Init the user allocated outbound list structure
| list | the list structure. |
| 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.
| list | the list to add to. |
| e | entry to add, it is only half initialised at call start, fully initialised at call end. |
| 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.
| list | the list to remove from. |
| e | the entry to remove. |