src/protocols/gg/gg.h

Fri, 25 Nov 2005 17:22:54 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Fri, 25 Nov 2005 17:22:54 +0000
changeset 12224
bf547f7989a4
parent 12007
bf1190509b70
child 12961
ee989777ce02
permissions
-rw-r--r--

[gaim-migrate @ 14526]
Bartosz Oler suggested this change to strtol() in ggp_str_to_uin(). I asked if it was really necessary...

(17:00:29) Bartosz Oler (liar): Hm. UINs are base 10 numbers. And it might be hard to trace a bug if user will accidentally type his number with a leading zero. I see no usecase for ggp_str_to_uin with octal numbers.

That seems reasonable to me. I cleaned up the documentation for this function a little.

/**
 * @file gg.h
 *
 * gaim
 *
 * Copyright (C) 2005  Bartosz Oler <bartosz@bzimage.us>
 *
 * 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */


#ifndef _GAIM_GG_H
#define _GAIM_GG_H

#include "lib/libgadu.h"
#include "search.h"
#include "connection.h"

typedef struct
{
	char *name;
	GList *participants;

} GGPChat;

typedef void (*GGPTokenCallback)(GaimConnection *);

typedef struct
{
	char *id;
	char *data;
	unsigned int size;

	struct gg_http *req;
	guint inpa;

	GGPTokenCallback cb;

} GGPToken;

typedef struct {

	struct gg_session *session;
	GGPSearchForm *search_form;
	GGPToken *token;
	GList *chats;
	void *searchresults_window;

	char *tmp_buddy;
	int chats_count;

} GGPInfo;


#endif /* _GAIM_GG_H */

/* vim: set ts=8 sts=0 sw=8 noet: */

mercurial