Replace functions which called once with their bodies
[pidgin-git.git] / libpurple / protocols / bonjour / bonjour.h
blob1ba24df77073c67ac14dd09bc633aa51caed8185
1 /**
2 * @file bonjour.h The Purple interface to mDNS and peer to peer Jabber.
4 * purple
6 * Purple is the legal property of its developers, whose names are too numerous
7 * to list here. Please refer to the COPYRIGHT file distributed with this
8 * source distribution.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
26 #ifndef PURPLE_BONJOUR_BONJOUR_H
27 #define PURPLE_BONJOUR_BONJOUR_H
29 #include <gmodule.h>
31 #include "internal.h"
32 #include <purple.h>
34 #include "mdns_common.h"
35 #include "jabber.h"
37 #define BONJOUR_GROUP_NAME _("Bonjour")
38 #define BONJOUR_PROTOCOL_NAME "bonjour"
39 #define BONJOUR_ICON_NAME "bonjour"
41 #define BONJOUR_STATUS_ID_OFFLINE "offline"
42 #define BONJOUR_STATUS_ID_AVAILABLE "available"
43 #define BONJOUR_STATUS_ID_AWAY "away"
45 #define BONJOUR_DEFAULT_PORT 5298
47 #define BONJOUR_TYPE_PROTOCOL (bonjour_protocol_get_type())
48 #define BONJOUR_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), BONJOUR_TYPE_PROTOCOL, BonjourProtocol))
49 #define BONJOUR_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), BONJOUR_TYPE_PROTOCOL, BonjourProtocolClass))
50 #define BONJOUR_IS_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), BONJOUR_TYPE_PROTOCOL))
51 #define BONJOUR_IS_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), BONJOUR_TYPE_PROTOCOL))
52 #define BONJOUR_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), BONJOUR_TYPE_PROTOCOL, BonjourProtocolClass))
54 typedef struct
56 PurpleProtocol parent;
57 } BonjourProtocol;
59 typedef struct
61 PurpleProtocolClass parent_class;
62 } BonjourProtocolClass;
64 typedef struct
66 BonjourDnsSd *dns_sd_data;
67 BonjourJabber *jabber_data;
68 GSList *xfer_lists;
69 gchar *jid;
70 } BonjourData;
72 /**
73 * Returns the GType for the BonjourProtocol object.
75 G_MODULE_EXPORT GType bonjour_protocol_get_type(void);
77 /**
78 * This will always be username@machinename
80 const char *bonjour_get_jid(PurpleAccount *account);
82 #endif /* PURPLE_BONJOUR_BONJOUR_H */