Use GSList functions instead of manual iterations
[pidgin-git.git] / libpurple / protocols / bonjour / mdns_interface.h
blob1903fe6524c12a10f0cd6599f04b502c258d2276
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.
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_INTERFACE_H
18 #define PURPLE_BONJOUR_MDNS_INTERFACE_H
20 #include "mdns_types.h"
21 #include "buddy.h"
23 gboolean _mdns_init_session(BonjourDnsSd *data);
25 gboolean _mdns_publish(BonjourDnsSd *data, PublishType type, GSList *records);
27 gboolean _mdns_browse(BonjourDnsSd *data);
29 void _mdns_stop(BonjourDnsSd *data);
31 gboolean _mdns_set_buddy_icon_data(BonjourDnsSd *data, gconstpointer avatar_data, gsize avatar_len);
33 void _mdns_init_buddy(BonjourBuddy *buddy);
35 void _mdns_delete_buddy(BonjourBuddy *buddy);
37 void _mdns_retrieve_buddy_icon(BonjourBuddy* buddy);
39 #endif /* PURPLE_BONJOUR_MDNS_INTERFACE_H */