00001 /* $Id$ */ 00002 00003 /* 00004 * (C) Copyright 2001-2003 Wojtek Kaniewski <wojtekka@irc.pl> 00005 * Robert J. Woźny <speedy@ziew.org> 00006 * Paweł Maziarz <drg@o2.pl> 00007 * Dawid Jarosz <dawjar@poczta.onet.pl> 00008 * Piotr Domagalski <szalik@szalik.net> 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License Version 2 as 00012 * published by the Free Software Foundation. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00022 */ 00023 00024 #ifndef __EKG_LOG_H 00025 #define __EKG_LOG_H 00026 00027 #include <sys/types.h> 00028 #include <time.h> 00029 00030 #include "dynstuff.h" 00031 00032 #ifdef __cplusplus 00033 extern "C" { 00034 #endif 00035 00036 struct last { 00037 struct last *next; 00038 unsigned int type : 1; /* 0 - przychodząca, 1 - wychodząca */ 00039 char *uid; /* od kogo, lub do kogo przy wysyłanych */ 00040 time_t time; /* czas */ 00041 time_t sent_time; /* czas wysłania wiadomości przychodzącej */ 00042 char *message; /* wiadomość */ 00043 }; 00044 00045 #ifndef EKG2_WIN32_NOFUNCTION 00046 extern struct last *lasts; 00047 00048 void last_add(int type, const char *uid, time_t t, time_t st, const char *msg); 00049 void last_del(const char *uid); 00050 int last_count(const char *uid); 00051 void lasts_destroy(); 00052 00053 char *xml_escape(const char *text); 00054 00055 #endif 00056 00057 #ifdef __cplusplus 00058 } 00059 #endif 00060 00061 #endif /* __EKG_LOG_H */ 00062 00063 /* 00064 * Local Variables: 00065 * mode: c 00066 * c-file-style: "k&r" 00067 * c-basic-offset: 8 00068 * indent-tabs-mode: t 00069 * End: 00070 */