summaryrefslogtreecommitdiff
path: root/lib/ZSendList.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-06-15 16:47:42 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-06-15 16:47:42 +0000
commit0fa6b8154ed03eb0a7168a24a17fa4e206a2e5f9 (patch)
tree49480760cdf23eab94316408564bb41cf880e687 /lib/ZSendList.c
parent6ea1193fe722905667af6a9aad599e5a0ae90c66 (diff)
parameterize Z_SendFragmentedNotice and add ZSrvSendList
Diffstat (limited to 'lib/ZSendList.c')
-rw-r--r--lib/ZSendList.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/ZSendList.c b/lib/ZSendList.c
index 3b6fea3..3d8efc6 100644
--- a/lib/ZSendList.c
+++ b/lib/ZSendList.c
@@ -26,6 +26,16 @@ Code_t ZSendList(notice, list, nitems, cert_routine)
int nitems;
int (*cert_routine)();
{
+ return(ZSrvSendList(notice, list, nitems, cert_routine, Z_XmitFragment));
+}
+
+Code_t ZSrvSendList(notice, list, nitems, cert_routine, send_routine)
+ ZNotice_t *notice;
+ char *list[];
+ int nitems;
+ int (*cert_routine)();
+ int (*send_routine)();
+{
Code_t retval;
ZNotice_t newnotice;
char *buffer;
@@ -38,7 +48,7 @@ Code_t ZSendList(notice, list, nitems, cert_routine)
if ((retval = ZParseNotice(buffer, len, &newnotice)) != ZERR_NONE)
return (retval);
- retval = Z_SendFragmentedNotice(&newnotice, len);
+ retval = Z_SendFragmentedNotice(&newnotice, len, send_routine);
free(buffer);