From 9e8331c95c94003458ec0a9f9a750bee9f25fdbd Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Thu, 31 Jan 2013 08:02:34 -0500 Subject: 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. --- server/zserver.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'server/zserver.h') 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 -- cgit v1.2.3