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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA.
17 #ifndef PURPLE_BONJOUR_MDNS_COMMON_H
18 #define PURPLE_BONJOUR_MDNS_COMMON_H
20 #include "mdns_types.h"
25 * Allocate space for the dns-sd data.
27 BonjourDnsSd
*bonjour_dns_sd_new(void);
30 * Deallocate the space of the dns-sd data.
32 void bonjour_dns_sd_free(BonjourDnsSd
*data
);
35 * Send a new dns-sd packet updating our status.
37 void bonjour_dns_sd_send_status(BonjourDnsSd
*data
, const char *status
, const char *status_message
);
40 * Retrieve the buddy icon blob
42 void bonjour_dns_sd_retrieve_buddy_icon(BonjourBuddy
* buddy
);
45 * Deal with a buddy icon update
47 void bonjour_dns_sd_update_buddy_icon(BonjourDnsSd
*data
);
50 * Advertise our presence within the dns-sd daemon and start
51 * browsing for other bonjour peers.
53 gboolean
bonjour_dns_sd_start(BonjourDnsSd
*data
);
56 * Unregister the "_presence._tcp" service at the mDNS daemon.
58 void bonjour_dns_sd_stop(BonjourDnsSd
*data
);
60 void bonjour_dns_sd_set_jid(PurpleAccount
*account
, const char *hostname
);
62 #endif /* PURPLE_BONJOUR_MDNS_COMMON_H */