From 18e990a4f37a750ff71a2c5c9206afcd95df6208 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Fri, 22 Feb 2013 21:17:44 -0500 Subject: Allow zctl flush_locs to take a user argument Provide a new library function, ZFlushUserLocations(), to flush locations for a specified user. This can be called using zctl flush_locs, which now takes an optional username parameter. This is the client side of #102 --- h/internal.h | 2 +- h/zephyr/zephyr.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'h') diff --git a/h/internal.h b/h/internal.h index 8aa7ffd..0753e67 100644 --- a/h/internal.h +++ b/h/internal.h @@ -117,7 +117,7 @@ Code_t Z_FormatRawHeader (ZNotice_t *, char*, int, Code_t Z_ReadEnqueue (void); Code_t Z_ReadWait (void); int Z_PacketWaiting (void); -Code_t Z_SendLocation (char*, char*, Z_AuthProc, char*); +Code_t Z_SendLocation (char*, char*, char*, Z_AuthProc, char*); Code_t Z_SendFragmentedNotice (ZNotice_t *notice, int len, Z_AuthProc cert_func, Z_SendProc send_func); diff --git a/h/zephyr/zephyr.h b/h/zephyr/zephyr.h index a7eb17f..faa8140 100644 --- a/h/zephyr/zephyr.h +++ b/h/zephyr/zephyr.h @@ -209,6 +209,7 @@ Code_t ZInitLocationInfo(char *hostname, char *tty); Code_t ZSetLocation(char *exposure); Code_t ZUnsetLocation(void); Code_t ZFlushMyLocations(void); +Code_t ZFlushUserLocations(char *); char *ZParseExposureLevel(char *text); Code_t ZFormatRawNotice(ZNotice_t *, char**, int *); Code_t ZRetrieveSubscriptions(unsigned short, int*); -- cgit v1.2.3