* Make `_Z_InputQ->complete` a boolean, as that's all it's used as.
* Use GLib allocation functions for `Z_InputQ` members.
* Use a `GQueue` for zephyr input.
* Use `*_find_custom` functions for input queue search.
Testing Done:
Compile only.
Reviewed at https://reviews.imfreedom.org/r/253/
/*
* 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
* source distribution.
*
* 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 Library 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.
*/
#include<glib/gi18n-lib.h>
#include<purple.h>
#include"buddy.h"
#include"mdns_interface.h"
#ifdef __APPLE_CC__
#include<dns_sd.h>
#else
#include"dns_sd_proxy.h"
#endif
#include"mdns_common.h"
#include"bonjour.h"
staticGSList*pending_buddies=NULL;
typedefstruct{
DNSServiceRefsdRef;
PurpleAccount*account;
guintinput_handler;
}DnsSDServiceRefHandlerData;
/* data used by win32 bonjour implementation */
typedefstruct{
DnsSDServiceRefHandlerData*presence_query;
DnsSDServiceRefHandlerData*browser_query;
DNSRecordRefbuddy_icon_rec;
}Win32SessionImplData;
typedefstruct{
DnsSDServiceRefHandlerData*txt_query;
uint32_tif_idx;
gchar*name;
gchar*type;
gchar*domain;
/* This is a reference to the entry in BonjourBuddy->ips */