]> git.karo-electronics.de Git - mdnsd.git/blob - dns_sd_txt.h
Add futher files to .gitignore
[mdnsd.git] / dns_sd_txt.h
1 #ifndef _DNS_SD_TXT_H_
2 #define _DNS_SD_TXT_H_
3
4 /*
5  * Copyright (C) 2003 Jeremie Miller <jer@jabber.org>
6  * Copyright (C) 2013 Ole Reinhardt <ole.reinhardt@embedded-it.de>
7  *
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  *
14  * 1. Redistributions of source code must retain the above copyright
15  *    notice, this list of conditions and the following disclaimer.
16  * 2. Redistributions in binary form must reproduce the above copyright
17  *    notice, this list of conditions and the following disclaimer in the
18  *    documentation and/or other materials provided with the distribution.
19  * 3. Neither the name of the copyright holders nor the names of
20  *    contributors may be used to endorse or promote products derived
21  *    from this software without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
30  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
31  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
33  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34  * SUCH DAMAGE.
35  *
36  * For additional information see http://www.ethernut.de/
37  */
38
39 /* This code is based on
40  * Based on BSD licensed mdnsd implementation by Jer <jer@jabber.org>
41  * http://dotlocal.org/mdnsd/
42  *
43  * Unfortunately this site is now longer alive. You can still find it at:
44  * http://web.archive.org/web/20080705131510/http://dotlocal.org/mdnsd/
45  *
46  * mdnsd - embeddable Multicast DNS Daemon
47  * =======================================
48  *
49  * "mdnsd" is a very lightweight, simple, portable, and easy to integrate
50  * open source implementation of Multicast DNS (part of Zeroconf, also called
51  * Rendezvous by Apple) for developers. It supports both acting as a Query and
52  * a Responder, allowing any software to participate fully on the .localnetwork
53  * just by including a few files and calling a few functions.  All of the
54  * complexity of handling the Multicast DNS retransmit timing, duplicate
55  * suppression, probing, conflict detection, and other facets of the DNS
56  * protocol is hidden behind a very simple and very easy to use interface,
57  * described in the header file. The single small c source file has almost no
58  * dependencies, and is portable to almost any embedded platform.
59  * Multiple example applications and usages are included in the download,
60  * including a simple persistent query browser and a tool to advertise .local
61  * web sites.
62  *
63  * The code is licensed under both the GPL and BSD licenses, for use in any
64  * free software or commercial application. If there is a licensing need not
65  * covered by either of those, alternative licensing is available upon request.
66  *
67  */
68
69 /*!
70  * \file include/pro/dns_sd_txt.h
71  * \brief Helper functions to handle the DNS-SD (Multicast DNS) TXT record format
72  *
73  * \verbatim
74  *
75  * $Id$
76  *
77  * \endverbatim
78  */
79
80 #include "shash.h"
81
82 unsigned char *DnsSd2Txt(SHASH hash, int *len);
83 SHASH DnsTxt2Sd(unsigned char *txt, int len);
84
85 #endif