summaryrefslogtreecommitdiff
path: root/server/zserver.h
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2013-01-31 08:02:34 -0500
committerGravatar Karl Ramm <kcr@1ts.org>2013-03-16 23:57:54 -0700
commit9e8331c95c94003458ec0a9f9a750bee9f25fdbd (patch)
tree3545fe8e128e6bb06a238492ad88fad32838378b /server/zserver.h
parent9e361ec4b0fbf61fc743bae78ab1b6e30c4a2742 (diff)
Test the low-level code in uloc.c
Also, tweak the debian build infrastructure so that we can pass in arbitrary CFLAGS. New program test_server that links with the non-main.c parts of the server. Currently only (as above) tests the low-level bits of uloc.c.
Diffstat (limited to 'server/zserver.h')
-rw-r--r--server/zserver.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/zserver.h b/server/zserver.h
index c694489..6ded4a4 100644
--- a/server/zserver.h
+++ b/server/zserver.h
@@ -211,6 +211,24 @@ struct _Statistic {
char *str;
};
+typedef enum _Exposure_type {
+ NONE,
+ OPSTAFF_VIS,
+ REALM_VIS,
+ REALM_ANN,
+ NET_VIS,
+ NET_ANN
+} Exposure_type;
+
+typedef struct _Location {
+ String *user;
+ String *machine;
+ char *time; /* in ctime format */
+ String *tty;
+ struct sockaddr_in addr; /* IP address and port of location */
+ Exposure_type exposure;
+} Location;
+
/* Function declarations */
/* These macros instantiate inline functions that do the work of the formder