00001 /* output.h: header for output.c 00002 * 00003 * Copyright (C) 2002, 2003, 2004 Eggheads Development Team 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 * 00019 * $Id: output.h,v 1.7 2003-12-18 06:50:47 wcc Exp $ 00020 */ 00021 00022 #ifndef _EGG_MOD_SERVER_OUTPUT_H_ 00023 #define _EGG_MOD_SERVER_OUTPUT_H_ 00024 00025 int printserv(int priority, const char *format, ...); 00026 queue_entry_t *queue_new(char *text); 00027 void queue_append(queue_t *queue, queue_entry_t *q); 00028 void queue_unlink(queue_t *queue, queue_entry_t *q); 00029 void queue_entry_from_text(queue_entry_t *q, char *text); 00030 void queue_entry_to_text(queue_entry_t *q, char *text, int *remaining); 00031 void queue_entry_cleanup(queue_entry_t *q); 00032 queue_t *queue_get_by_priority(int priority); 00033 void dequeue_messages(); 00034 00035 #endif /* !_EGG_MOD_SERVER_OUTPUT_H_ */