view src/protocols/rendezvous/rendezvous.h @ 11111:f03dce7ea408

[gaim-migrate @ 13163] Patch #1234440, from sadrul "Mark blocked users in the buddy-list" Patch #1234197, from sadrul "New API fn gaim_privacy_check" Plus changes by me. (Read as: blame me if it's busted, thank sadrul if it works) Basically, all this stuff boils down to the following: We composite a new blocked.png onto the prpl icon in the buddy list if the user is blocked. MSN was the only prpl that used the old blocked.png. However, it looks bad to overlay both icons, so I removed the use of blocked.png from the MSN prpl. As an MSN user, I think the result is intuitive. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 17 Jul 2005 23:36:34 +0000
parents 8bc7ba019e96
children
line wrap: on
line source

/**
 * @file rendezvous.h The Gaim interface to mDNS and peer to peer Jabber.
 *
 * gaim
 *
 * Gaim 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 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 _RENDEZVOUS_H_
#define _RENDEZVOUS_H_

#include "internal.h"
#include "debug.h"

#include "mdns.h"

#define RENDEZVOUS_CONNECT_STEPS 2

#define UC_UNAVAILABLE 1
#define UC_IDLE 2

typedef struct _RendezvousData {
	int fd;
	GHashTable *buddies;
	GSList *mytxtdata;
	unsigned short listener_port;
	int listener;
	int listener_watcher;
} RendezvousData;

typedef struct _RendezvousBuddy {
#if 0
	guint ttltimer;
#endif
	gchar *firstandlast;
	gchar *aim;
	unsigned char ipv4[4];		/**< An IPv4 address */
	unsigned char ipv6[16];		/**< An IPv6 address */
	unsigned short p2pjport;
	int status;
	int idle;					/**< Current idle time in seconds since the epoch.	*/
	gchar *msg;					/**< Current status message of this buddy.			*/
	int fd;						/**< File descriptor of the P2PJ socket.			*/
	int watcher;				/**< Handle for the watcher of the P2PJ socket.		*/
} RendezvousBuddy;

#endif /* _RENDEZVOUS_H_ */