EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the definition of mdns list utils. More...
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
#include <list.h>
Go to the source code of this file.
Data Structures | |
struct | mdns_list_info |
MDNS info list. More... | |
struct | mdns_list |
MDNS info list. More... | |
Enumerations | |
enum | MDNS_REQUEST_TYPE { MDNS_REQUEST_NONE = 0 , MDNS_REQUEST_QUERY , MDNS_REQUEST_ANSWER } |
Functions | |
struct mdns_list * | init_mdns_list (void) |
Initialises an empty mdns list. More... | |
int | push_mdns_list (struct mdns_list *mlist, struct mdns_list_info *info) |
Pushes an mdns info entry in the mdns list. More... | |
void | free_mdns_list_el (struct mdns_list *el) |
Delete a mdns list entry. More... | |
void | free_mdns_list (struct mdns_list *mlist) |
Frees the mdns list. More... | |
int | check_mdns_list_req (struct mdns_list *mlist, enum MDNS_REQUEST_TYPE request) |
Checks if MDNS list has an element with a given request type. More... | |
File containing the definition of mdns list utils.
enum MDNS_REQUEST_TYPE |
int check_mdns_list_req | ( | struct mdns_list * | mlist, |
enum MDNS_REQUEST_TYPE | request | ||
) |
Checks if MDNS list has an element with a given request type.
mlist | The pointer to the mdns list |
request | The request type |
void free_mdns_list | ( | struct mdns_list * | mlist | ) |
Frees the mdns list.
mlist | The pointer to the mdns list |
void free_mdns_list_el | ( | struct mdns_list * | el | ) |
Delete a mdns list entry.
el | The mdns list entry |
struct mdns_list* init_mdns_list | ( | void | ) |
Initialises an empty mdns list.
int push_mdns_list | ( | struct mdns_list * | mlist, |
struct mdns_list_info * | info | ||
) |
Pushes an mdns info entry in the mdns list.
mlist | The mdns list |
info | The mdns info structure |