summaryrefslogtreecommitdiff
path: root/h
diff options
context:
space:
mode:
authorGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-02-22 21:17:44 -0500
committerGravatar Karl Ramm <kcr@1ts.org>2013-02-26 23:01:10 -0500
commit18e990a4f37a750ff71a2c5c9206afcd95df6208 (patch)
tree5f3ceffa9c90bbce6c6a4635de487302ae3d32e1 /h
parent58a713e13c61dd4ce0b7f9f81685879353c0b911 (diff)
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
Diffstat (limited to 'h')
-rw-r--r--h/internal.h2
-rw-r--r--h/zephyr/zephyr.h1
2 files changed, 2 insertions, 1 deletions
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*);