7#include <core/string.h>
12#define RECORD_DISCOVERY "discovery"
DiscoveryTransportType
Enumeration of supported transport protocol types.
Definition discovery.h:40
@ DiscoveryTransportTypeUdp
UDP as transport protocol.
Definition discovery.h:42
@ DiscoveryTransportTypeTcp
TCP as transport protocol.
Definition discovery.h:41
bool(* DiscoveryTxtCallback)(size_t index, FuriString *txt_out, void *context)
Called to request one DNS-SD TXT record.
Definition discovery.h:35
bool discovery_add_service(Discovery *discovery, const DiscoveryServiceInfo *info, void *context)
Add a service to be announced to the local network.
Definition discovery.c:419
Definition discovery.c:48
Announced service information structure.
Definition discovery.h:48
const char * service
The service type string (e.g.
Definition discovery.h:50
DiscoveryTxtCallback txt_callback
Pointer to the TXT callback function.
Definition discovery.h:51
const char * name
The service's name string (e.g.
Definition discovery.h:49
uint16_t port
Port number the service is listening on (e.g.
Definition discovery.h:53
DiscoveryTransportType transport_type
Transport protocol type.
Definition discovery.h:52