summaryrefslogtreecommitdiff
path: root/otr/options.h
blob: fbfcb9c1e9c349dc2d143d728818ac8619961003 (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
#ifndef _OPTIONS_INC
#define _OPTIONS_INC

#define CONTACT_DEFAULT_POLICY 	0xFFFF

typedef enum {ED_POP, ED_BAL, ED_MB} ErrorDisplay;

typedef struct {
	OtrlPolicy default_policy;
	ErrorDisplay err_method;
	bool prefix_messages;
	bool msg_inline;
	char prefix[64];
	
	bool delete_history;
	bool timeout_finished;
	
	bool end_offline, end_window_close;
} Options;

extern Options options;

int OptInit(WPARAM wParam, LPARAM lParam);

void LoadOptions();

#endif