MDNS: make a few arguments const where suitable

This commit is contained in:
Dirk Ziegelmeier
2016-08-14 15:31:49 +02:00
parent 306113c8c3
commit a2894ede1c
3 changed files with 8 additions and 8 deletions

View File

@@ -47,12 +47,12 @@ struct mdns_service;
void mdns_resp_init(void);
err_t mdns_resp_add_netif(struct netif *netif, char *hostname, u32_t dns_ttl);
err_t mdns_resp_add_netif(struct netif *netif, const char *hostname, u32_t dns_ttl);
err_t mdns_resp_remove_netif(struct netif *netif);
typedef void (*service_get_txt_fn_t)(struct mdns_service *service, void *txt_userdata);
err_t mdns_resp_add_service(struct netif *netif, char *name, char *service, u16_t proto, u16_t port, u32_t dns_ttl, service_get_txt_fn_t txt_fn, void *txt_userdata);
err_t mdns_resp_add_service_txtitem(struct mdns_service *service, char *txt, int txt_len);
err_t mdns_resp_add_service(struct netif *netif, const char *name, const char *service, u16_t proto, u16_t port, u32_t dns_ttl, service_get_txt_fn_t txt_fn, void *txt_userdata);
err_t mdns_resp_add_service_txtitem(struct mdns_service *service, const char *txt, int txt_len);
/* Domain struct and methods - visible for unit tests */