view libpurple/protocols/silc/wb.h @ 29386:e1dd357fc494

Add back Paul's error message from revision 219b3128f3d96b126a9ed9aff2d2f3277e69dbd4 (disapproved in revision e2fb4cc366c55b86f89304bddac780a92ff73394) with a slightly improved error message. Thanks for adding this in the first place, Paul! Sorry it took me months to re-instate it after I complained! Hopefully AOL won't start asking users to fill out CAPTCHAs in order to log in, because that would be messy (both our implementation and the user experience).
author Mark Doliner <mark@kingant.net>
date Sun, 07 Feb 2010 09:30:49 +0000
parents cb1ea9f878f5
children
line wrap: on
line source

/*

  silcpurple.h

  Author: Pekka Riikonen <priikone@silcnet.org>

  Copyright (C) 2005 Pekka Riikonen

  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; version 2 of the License.

  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.

*/

#ifndef SILCPURPLE_WB_H
#define SILCPURPLE_WB_H

#include "silcpurple.h"
#include "whiteboard.h"

PurpleWhiteboard *
silcpurple_wb_init(SilcPurple sg, SilcClientEntry client_entry);
PurpleWhiteboard *
silcpurple_wb_init_ch(SilcPurple sg, SilcChannelEntry channel);
void silcpurple_wb_receive(SilcClient client, SilcClientConnection conn,
			 SilcClientEntry sender, SilcMessagePayload payload,
			 SilcMessageFlags flags, const unsigned char *message,
			 SilcUInt32 message_len);
void silcpurple_wb_receive_ch(SilcClient client, SilcClientConnection conn,
			    SilcClientEntry sender, SilcChannelEntry channel,
			    SilcMessagePayload payload,
			    SilcMessageFlags flags,
			    const unsigned char *message,
			    SilcUInt32 message_len);
void silcpurple_wb_start(PurpleWhiteboard *wb);
void silcpurple_wb_end(PurpleWhiteboard *wb);
void silcpurple_wb_get_dimensions(const PurpleWhiteboard *wb, int *width, int *height);
void silcpurple_wb_set_dimensions(PurpleWhiteboard *wb, int width, int height);
void silcpurple_wb_get_brush(const PurpleWhiteboard *wb, int *size, int *color);
void silcpurple_wb_set_brush(PurpleWhiteboard *wb, int size, int color);
void silcpurple_wb_send(PurpleWhiteboard *wb, GList *draw_list);
void silcpurple_wb_clear(PurpleWhiteboard *wb);

#endif /* SILCPURPLE_WB_H */