* @file bonjour.h The Purple interface to mDNS and peer to peer XMPP. * Purple is the legal property of its developers, whose names are too numerous * to list here. Please refer to the COPYRIGHT file distributed with this * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA #ifndef PURPLE_BONJOUR_BONJOUR_H #define PURPLE_BONJOUR_BONJOUR_H #define BONJOUR_GROUP_NAME _("Bonjour") #define BONJOUR_PROTOCOL_NAME "bonjour" #define BONJOUR_ICON_NAME "bonjour" #define BONJOUR_STATUS_ID_OFFLINE "offline" #define BONJOUR_STATUS_ID_AVAILABLE "available" #define BONJOUR_STATUS_ID_AWAY "away" #define BONJOUR_DEFAULT_PORT 5298 #define BONJOUR_TYPE_PROTOCOL (bonjour_protocol_get_type()) #define BONJOUR_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), BONJOUR_TYPE_PROTOCOL, BonjourProtocol)) #define BONJOUR_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), BONJOUR_TYPE_PROTOCOL, BonjourProtocolClass)) #define BONJOUR_IS_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), BONJOUR_TYPE_PROTOCOL)) #define BONJOUR_IS_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), BONJOUR_TYPE_PROTOCOL)) #define BONJOUR_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), BONJOUR_TYPE_PROTOCOL, BonjourProtocolClass)) PurpleProtocolClass parent_class; BonjourDnsSd *dns_sd_data; * Returns the GType for the BonjourProtocol object. G_MODULE_EXPORT GType bonjour_protocol_get_type(void); * This will always be username@machinename const char *bonjour_get_jid(PurpleAccount *account); #endif /* PURPLE_BONJOUR_BONJOUR_H */