Sun, 20 Mar 2011 00:08:01 +0000
Update PRPL structs with new fields.
| 2086 | 1 | /* This file is part of the Project Athena Zephyr Notification System. |
| 2 | * It contains source for the ZSendList function. | |
| 3 | * | |
| 4 | * Created by: Robert French | |
| 5 | * | |
| 6 | * Copyright (c) 1987 by the Massachusetts Institute of Technology. | |
| 7 | * For copying and distribution information, see the file | |
|
31294
73607ab89c6f
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
22198
diff
changeset
|
8 | * "mit-copyright.h". |
| 2086 | 9 | */ |
| 10 | ||
|
8792
b0645c9dc276
[gaim-migrate @ 9554]
Christian Hammond <chipx86@chipx86.com>
parents:
2086
diff
changeset
|
11 | #include "internal.h" |
| 2086 | 12 | |
| 13 | Code_t ZSendList(notice, list, nitems, cert_routine) | |
| 14 | ZNotice_t *notice; | |
| 15 | char *list[]; | |
| 16 | int nitems; | |
| 17 | Z_AuthProc cert_routine; | |
| 18 | { | |
| 19 | return(ZSrvSendList(notice, list, nitems, cert_routine, Z_XmitFragment)); | |
| 20 | } | |
| 21 | ||
| 22 | Code_t ZSrvSendList(notice, list, nitems, cert_routine, send_routine) | |
| 23 | ZNotice_t *notice; | |
| 24 | char *list[]; | |
| 25 | int nitems; | |
| 26 | Z_AuthProc cert_routine; | |
|
22198
c8005d0412e3
Revert some of my -Wstrict-prototypes fixes here, as they are causing more
Richard Laager <rlaager@pidgin.im>
parents:
22104
diff
changeset
|
27 | Code_t (*send_routine)(); |
| 2086 | 28 | { |
| 29 | Code_t retval; | |
| 30 | ZNotice_t newnotice; | |
| 31 | char *buffer; | |
| 32 | int len; | |
| 33 | ||
|
31294
73607ab89c6f
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
22198
diff
changeset
|
34 | if ((retval = ZFormatNoticeList(notice, list, nitems, &buffer, |
| 2086 | 35 | &len, cert_routine)) != ZERR_NONE) |
| 36 | return (retval); | |
| 37 | ||
| 38 | if ((retval = ZParseNotice(buffer, len, &newnotice)) != ZERR_NONE) | |
| 39 | return (retval); | |
|
31294
73607ab89c6f
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
22198
diff
changeset
|
40 | |
| 2086 | 41 | retval = Z_SendFragmentedNotice(&newnotice, len, cert_routine, |
| 42 | send_routine); | |
| 43 | ||
| 44 | free(buffer); | |
| 45 | ||
| 46 | return (retval); | |
| 47 | } |