Mercurial > pidgin
annotate src/protocols/zephyr/ZSendRLst.c @ 11202:ff4884029708
[gaim-migrate @ 13330]
Some compile warning fixes. It's very possible the perl warnings
were caused by some of my changes to the core last week
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Mon, 08 Aug 2005 02:21:57 +0000 |
| parents | 64895571248f |
| children | 7c2e2c4d45a4 |
| rev | line source |
|---|---|
| 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
43d6c08d7e96
[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 } |
