mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
datastorage: improve linked list
- Simplify linked list search - code was unnecessarily complex for no benefit - Adjust some MAC address handling to simplify code [cleanup commit message] Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
parent
40ebf48bd1
commit
335ace2a19
6 changed files with 53 additions and 131 deletions
|
|
@ -25,11 +25,11 @@ struct mac_entry_s {
|
|||
// ---------------- Functions ----------
|
||||
void insert_macs_from_file();
|
||||
|
||||
int insert_to_maclist(struct dawn_mac mac);
|
||||
struct mac_entry_s* insert_to_maclist(struct dawn_mac mac);
|
||||
|
||||
int mac_in_maclist(struct dawn_mac mac);
|
||||
struct mac_entry_s* mac_find_entry(struct dawn_mac mac);
|
||||
|
||||
struct mac_entry_s* insert_to_mac_array(struct mac_entry_s* entry, struct mac_entry_s** insert_pos);
|
||||
struct mac_entry_s* insert_to_mac_array(struct mac_entry_s* entry);
|
||||
|
||||
void mac_array_delete(struct mac_entry_s* entry);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue