summaryrefslogtreecommitdiff
path: root/clients/xzwrite/xzwrite.h
diff options
context:
space:
mode:
authorGravatar Kenneth G Raeburn <raeburn@mit.edu>1990-11-16 06:14:16 +0000
committerGravatar Kenneth G Raeburn <raeburn@mit.edu>1990-11-16 06:14:16 +0000
commitd6c1a4a1043100a2534371d7572ec0ef89f117f4 (patch)
treeb9de8a21615c4b46f49383ee91204836b69ca271 /clients/xzwrite/xzwrite.h
parent1849bb26ec874fdd26a5d129a1041fedd85850e2 (diff)
Initial revision
Diffstat (limited to 'clients/xzwrite/xzwrite.h')
-rw-r--r--clients/xzwrite/xzwrite.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/clients/xzwrite/xzwrite.h b/clients/xzwrite/xzwrite.h
new file mode 100644
index 0000000..0a4e295
--- /dev/null
+++ b/clients/xzwrite/xzwrite.h
@@ -0,0 +1,50 @@
+#include <stdio.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;
+} 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"