Sat, 12 Nov 2005 16:55:47 +0000
[gaim-migrate @ 14349]
oops, didn't mean to commit that
| 2086 | 1 | /* This file is part of the Project Athena Zephyr Notification System. |
| 2 | * It contains source for the ZSendRawNotice function. | |
| 3 | * | |
| 4 | * Created by: John T. Kohl | |
| 5 | * | |
| 6 | * Copyright (c) 1988 by the Massachusetts Institute of Technology. | |
| 7 | * For copying and distribution information, see the file | |
| 8 | * "mit-copyright.h". | |
| 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 ZSendRawList(notice, list, nitems) | |
| 14 | ZNotice_t *notice; | |
| 15 | char *list[]; | |
| 16 | int nitems; | |
| 17 | { | |
| 18 | return(ZSrvSendRawList(notice, list, nitems, Z_XmitFragment)); | |
| 19 | } | |
| 20 | ||
| 21 | Code_t ZSrvSendRawList(notice, list, nitems, send_routine) | |
| 22 | ZNotice_t *notice; | |
| 23 | char *list[]; | |
| 24 | int nitems; | |
| 25 | Code_t (*send_routine)(); | |
| 26 | { | |
| 27 | Code_t retval; | |
| 28 | ZNotice_t newnotice; | |
| 29 | char *buffer; | |
| 30 | int len; | |
| 31 | ||
| 32 | if ((retval = ZFormatRawNoticeList(notice, list, nitems, &buffer, | |
| 33 | &len)) != ZERR_NONE) | |
| 34 | return (retval); | |
| 35 | ||
| 36 | if ((retval = ZParseNotice(buffer, len, &newnotice)) != ZERR_NONE) | |
| 37 | return (retval); | |
| 38 | ||
| 39 | retval = Z_SendFragmentedNotice(&newnotice, len, NULL, send_routine); | |
| 40 | ||
| 41 | free(buffer); | |
| 42 | ||
| 43 | return (retval); | |
| 44 | } |