void free_mdns_list(struct mdns_list *mlist)
Frees the mdns list.
Definition: mdns_list.c:43
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.
Definition: mdns_list.c:97
struct mdns_list * init_mdns_list(void)
Initialises an empty mdns list.
Definition: mdns_list.c:20
MDNS_REQUEST_TYPE
Definition: mdns_list.h:21
@ MDNS_REQUEST_QUERY
Definition: mdns_list.h:23
@ MDNS_REQUEST_NONE
Definition: mdns_list.h:22
@ MDNS_REQUEST_ANSWER
Definition: mdns_list.h:24
void free_mdns_list_el(struct mdns_list *el)
Delete a mdns list entry.
Definition: mdns_list.c:35
int push_mdns_list(struct mdns_list *mlist, struct mdns_list_info *info)
Pushes an mdns info entry in the mdns list.
Definition: mdns_list.c:53
MDNS info list.
Definition: mdns_list.h:31
uint32_t ttl
Definition: mdns_list.h:33
uint16_t rrtype
Definition: mdns_list.h:34
char * name
Definition: mdns_list.h:36
enum MDNS_REQUEST_TYPE request
Definition: mdns_list.h:32
uint16_t qtype
Definition: mdns_list.h:35
MDNS info list.
Definition: mdns_list.h:43
struct mdns_list_info info
Definition: mdns_list.h:44
struct dl_list list
Definition: mdns_list.h:45