libpurple/protocols/bonjour/mdns_howl.h

branch
soc.2007.msimprpl
changeset 17979
a65747e01794
parent 15884
4de1981757fc
parent 17977
328f7ae1714b
child 18718
17a6c2c4820e
equal deleted inserted replaced
17978:73802e9b6791 17979:a65747e01794
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU Library General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15 */
16
17 #ifndef _BONJOUR_MDNS_HOWL
18 #define _BONJOUR_MDNS_HOWL
19
20 #include "config.h"
21
22 #ifdef USE_BONJOUR_HOWL
23
24 #include <howl.h>
25 #include <glib.h>
26 #include "mdns_types.h"
27
28 /* callback functions */
29
30 sw_result HOWL_API _publish_reply(sw_discovery discovery, sw_discovery_oid oid, sw_discovery_publish_status status, sw_opaque extra);
31
32 sw_result HOWL_API _resolve_reply(sw_discovery discovery, sw_discovery_oid oid, sw_uint32 interface_index, sw_const_string name,
33 sw_const_string type, sw_const_string domain, sw_ipv4_address address, sw_port port, sw_octets text_record,
34 sw_ulong text_record_len, sw_opaque extra);
35
36 sw_result HOWL_API _browser_reply(sw_discovery discovery, sw_discovery_oid oid, sw_discovery_browse_status status,
37 sw_uint32 interface_index, sw_const_string name, sw_const_string type, sw_const_string domain, sw_opaque_t extra);
38
39
40 /* interface functions */
41
42 int _mdns_publish(BonjourDnsSd *data, PublishType type);
43 void _mdns_handle_event(gpointer data, gint source, PurpleInputCondition condition);
44
45 #endif
46
47 #endif

mercurial