Mercurial > pidgin
annotate src/protocols/zephyr/ZSendRLst.c @ 12081:5a08737f76c6
[gaim-migrate @ 14378]
sf patch #1355683, from Evan Schoenberg
"As discussed in #gaim, static plugins are fairly broken at present...
this may not be a fix for all possible plugins, but it certainly fixes all
the prpls and the ssl plugin to be able to work. We need to call the
plugin_load() function manually since plugins_probe() isn't going to
do it..."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 14 Nov 2005 07:26:01 +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 } |