]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/lib/ZSendRaw.c
finalize -3
[1ts-debian.git] / zephyr / lib / ZSendRaw.c
1 /* This file is part of the Project Athena Zephyr Notification System.
2  * It contains source for the ZSendRawNotice function.
3  *
4  *      Created by:     Robert French
5  *
6  *      $Id$
7  *
8  *      Copyright (c) 1987 by the Massachusetts Institute of Technology.
9  *      For copying and distribution information, see the file
10  *      "mit-copyright.h". 
11  */
12
13 #ifndef lint
14 static char rcsid_ZSendRawNotice_c[] = "$Id$";
15 #endif
16
17 #include <internal.h>
18
19 Code_t ZSendRawNotice(notice)
20     ZNotice_t *notice;
21 {
22     Code_t retval;
23     ZNotice_t newnotice;
24     char *buffer;
25     int len;
26
27     if ((retval = ZFormatRawNotice(notice, &buffer, &len)) !=
28         ZERR_NONE)
29         return (retval);
30
31     if ((retval = ZParseNotice(buffer, len, &newnotice)) != ZERR_NONE)
32         return (retval);
33     
34     retval = Z_SendFragmentedNotice(&newnotice, len, NULL, Z_XmitFragment);
35
36     free(buffer);
37
38     return (retval);
39 }