blob: e4c7741fd2b06375bcf2fbc7eccc61fd252aee74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#ifndef _COMMON_INC
#define _COMMON_INC
#define _WIN32_WINNT 0x0500
#define WINVER 0x0500
#define _WIN32_IE 0x0300
#include <windows.h>
//#include <process.h>
//#include <shlobj.h>
#include <stdio.h>
#include <commctrl.h>
#include <malloc.h>
#include <process.h>
#include "resource.h"
#include <newpluginapi.h>
#include <statusmodes.h>
#include <m_options.h>
#include <m_langpack.h>
#include <m_popup.h>
#include <m_system.h>
#include <m_skin.h>
#include <m_netlib.h>
#include <m_database.h>
#include <m_protocols.h>
#include <m_protomod.h>
#include <m_protosvc.h>
#include <m_ignore.h>
#include <m_clist.h>
#include <m_clui.h>
#include <m_utils.h>
#include <m_message.h>
#include <m_updater.h>
#include <m_metacontacts.h>
#include <m_popup.h>
#include <m_icolib.h>
#include <m_folders.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];
extern char fingerprint_store_filename[MAX_PATH];
// read the files named above
void ReadPrivkeyFiles();
#define MS_OTR_MENUSTART "OTR/Start"
#define MS_OTR_MENUSTOP "OTR/Stop"
#define INLINE_PREFIX "[OTR Message] "
#define INLINE_PREFIX_LEN 14
#endif
|