1 /* vi:ai:et:ts=8 sw=2
2  */
3 /*
4  * wzdftpd - a modular and cool ftp server
5  * Copyright (C) 2002-2006  Pierre Chifflier
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20  *
21  * As a special exemption, Pierre Chifflier
22  * and other respective copyright holders give permission to link this program
23  * with OpenSSL, and distribute the resulting executable, without including
24  * the source code for OpenSSL in the source distribution.
25  */
26 #ifndef _LIBWZD_HOWL_H
27 #define _LIBWZD_HOWL_H
28 
29 #include <stdlib.h>
30 #include <assert.h>
31 #include <string.h>
32 
33 #include <libwzd-core/wzd_structs.h>
34 #include <libwzd-core/wzd_log.h>
35 
36 #include <howl.h>
37 
38 #define FTP_DNS_SERVICE_TYPE "_ftp._tcp"
39 
40 /* prototype definitions */
41 void* ho_zeroconf_setup(unsigned long, /* port */
42                         const char *,  /* mDNS name */
43                         const char *,  /* username */
44                         const char *,  /* password */
45                         const char *); /* path */
46 void* ho_zeroconf_unregister(void);
47 void* ho_zeroconf_run(void);
48 static sw_result HOWL_API publish_reply(sw_discovery,
49                                         sw_discovery_oid,
50                                         sw_discovery_publish_status,
51                                         sw_opaque);
52 
53 #endif   /* _LIBWZD_HOWL_H */
54