From 9c6d8a640911d336cc1e758310bbfccaf547d2d2 Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 1 Nov 2006 14:40:04 +0000 Subject: git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@10 4f64403b-2f21-0410-a795-97e2b3489a10 --- otr/common.h | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 otr/common.h (limited to 'otr/common.h') diff --git a/otr/common.h b/otr/common.h new file mode 100644 index 0000000..062ae78 --- /dev/null +++ b/otr/common.h @@ -0,0 +1,71 @@ +#ifndef _COMMON_INC +#define _COMMON_INC + +#define _WIN32_WINNT 0x0500 +#define WINVER 0x0500 +#define _WIN32_IE 0x0300 + +#include +//#include +//#include +#include +#include +#include +#include + +#include "resource.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include +#include "IcoLib.h" + +#define MODULE "OTR" + +extern "C" { +#include "proto.h" +#include "message.h" +#include "privkey.h" +}; + +// modified manual policy - so that users set to 'opportunistic' will automatically start OTR with users set to 'manual' +#define OTRL_POLICY_MANUAL_MOD (OTRL_POLICY_MANUAL | OTRL_POLICY_WHITESPACE_START_AKE | OTRL_POLICY_ERROR_START_AKE) + +// use the same filenames as the gaim plugin, for compatibility +#define PRIVATE_KEY_FILENAME "otr.private_key" +#define FINGERPRINT_STORE_FILENAME "otr.fingerprints" + + +extern HINSTANCE hInst; +extern HANDLE mainThread; +extern DWORD mainThreadId; + +extern OtrlUserState otr_user_state; +extern char private_key_filename[MAX_PATH]; + +#define MS_OTR_MENUSTART "OTR/Start" +#define MS_OTR_MENUSTOP "OTR/Stop" + +#define INLINE_PREFIX "[OTR Message] " +#define INLINE_PREFIX_LEN 14 + +#endif -- cgit v1.2.3