* 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
*
* 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.
*
* Rewritten from scratch during Google Summer of Code 2012
* by Tomek Wasilczyk (http://www.wasilczyk.pl).
*
* Previously implemented by:
* - Arkadiusz Miskiewicz <misiek@pld.org.pl> - first implementation (2001);
* - Bartosz Oler <bartosz@bzimage.us> - reimplemented during GSoC 2005;
* - Krzysztof Klinikowski <grommasher@gmail.com> - some parts (2009-2011).
*
* 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
*/
#include<glib/gi18n-lib.h>
#include<purple.h>
#include"pubdir-prpl.h"
#include"gg.h"
#include"oauth/oauth-purple.h"
#include"xml.h"
#include"utils.h"
#include"status.h"
typedefstruct
{
PurpleConnection*gc;
ggp_pubdir_request_cbcb;
void*user_data;
enum
{
GGP_PUBDIR_REQUEST_TYPE_INFO,
GGP_PUBDIR_REQUEST_TYPE_SEARCH,
}type;
union
{
struct
{
uin_tuin;
}user_info;
ggp_pubdir_search_form*search_form;
}params;
}ggp_pubdir_request;
/* Searching for buddies. */
#define GGP_PUBDIR_SEARCH_TITLE _("Gadu-Gadu Public Directory")
#define GGP_PUBDIR_SEARCH_PER_PAGE 20
struct_ggp_pubdir_search_form
{
gchar*nick,*city;
ggp_pubdir_gendergender;
intoffset;
intlimit;
void*display_handle;
};
/* For ggp_pubdir_search_results_next, which is called by this. */