blob: a9b020b0fd366a0384d21cec7d548ea21bbe6b94 (
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
|
#include <sysdep.h>
#include <X11/Intrinsic.h> /* for String and Boolean */
#define ZLEN 60
#define DEFAULT_CLASS "MESSAGE"
#define DEFAULT_INST "PERSONAL"
#define XZWRITE_DEST_FILE "/.xzwrite.dest"
#define ZEPHYR_FILE "/.zephyr.subs"
#define ANYONE_FILE "/.anyone"
#define SEND_OK -1000
#define SENDFAIL_RECV -1001
#define SENDFAIL_SEND -1002
#define SENDFAIL_ACK -1003
/* Structure to contains values from the resource database */
typedef struct _defaults {
String signature, opcode;
Boolean auth;
Boolean close_on_send;
Boolean clear_on_send;
Boolean ping;
Boolean verbose;
Boolean yank_dest;
Boolean add_globals;
Boolean read_xzwrite;
Boolean read_zephyr;
Boolean read_anyone;
Boolean class_inst;
Boolean track_logins;
Boolean popup_cursor;
Boolean debug;
Boolean pong_scan;
Boolean auto_reply;
int max_yanks, command_mask, columns;
String zsigfile;
String logfile;
} Defaults;
/* Structure to contain a legal zephyr triple */
typedef struct _destination {
char zclass[ZLEN], zinst[ZLEN], zrecip[ZLEN];
} DestRec, *Dest;
/* Structure to contain a yank */
typedef struct _yank {
DestRec dest;
char *msg;
} YankRec, *Yank;
#include <zephyr/zephyr.h>
#include "xzwrite-proto.h"
|