/* Monolith message. * - by Richard W.M. Jones * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: message.h,v 1.2 2003/02/22 12:56:26 rich Exp $ */ #ifndef MESSAGE_H #define MESSAGE_H #include #include struct message; typedef struct message *message; /* Create a new ordinary message posting. */ extern message new_message_posting (pool pool, int hh, int mm, int authorid, const char *username, const char *original_ip, const char *body); /* Create an enter or leave message. */ extern message new_message_enter (pool pool, const char *username); extern message new_message_leave (pool pool, const char *username); /* Blank messages (sent by the ping thread). */ extern message new_message_blank (pool pool); /* Render the message. */ extern void message_show (const message m, io_handle io); #endif /* MESSAGE_H */