Initial add of an NSIS installer script for the plugin pack. I just cheated and
ripped this off from Guifications 2.x. This needs substantial amounts of work
before it's release/distribution ready.
/* Message Splitter Plugin v0.95
*
* Splits a large message into smaller messages and sends them away
* in its place.
*
* Copyright (C) 2005-2007, Ike Gingerich <ike_@users.sourceforge.net>
*
* 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.
*/
#include"../common/pp_internal.h"
#include<pango/pango.h>
#ifdef _WIN32
#include<pango/pangowin32.h>
#endif
#ifndef _WIN32
#include<pango/pangocairo.h>
#endif
#include<string.h>
#include<errno.h>
#include<debug.h>
#include<notify.h>
#include<version.h>
#include<util.h>
#define PLUGIN_ID "core-ike-splitter"
/* grr */
#ifndef ENOTCONN
#define ENOTCONN 107
#endif
/* plugin constants and structures */
staticconstgintMIN_SPLIT_SIZE=32;
staticconstgintDEFAULT_SPLIT_SIZE=786;
staticconstgintMAX_SPLIT_SIZE=8192;
staticconstgintMIN_DELAY_MS=0;
staticconstgintDEFAULT_DELAY_MS=500;
staticconstgintMAX_DELAY_MS=3600000;
typedefstruct
{
char*sender_username;
char*sender_protocol_id;
GQueue*messages;
PurpleConversationTypetype;
union{
char*receiver;/* IM username */
gintid;/* chat ID */
};
}message_to_conv;
typedefstruct{
gintstart;
gintend;
}message_slice;
/* Global variable to block infinite loops. Single-threaded is nice */