ekg2
GIT master
ekg
log.h
Idź do dokumentacji tego pliku.
1
/* $Id$ */
2
3
/*
4
* (C) Copyright 2001-2003 Wojtek Kaniewski <wojtekka@irc.pl>
5
* Robert J. Woźny <speedy@ziew.org>
6
* Paweł Maziarz <drg@o2.pl>
7
* Dawid Jarosz <dawjar@poczta.onet.pl>
8
* Piotr Domagalski <szalik@szalik.net>
9
*
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License Version 2 as
12
* published by the Free Software Foundation.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
*/
23
24
#ifndef __EKG_LOG_H
25
#define __EKG_LOG_H
26
27
#include <sys/types.h>
28
#include <time.h>
29
30
#include "
dynstuff.h
"
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
36
struct
last
{
37
struct
last
*
next
;
38
unsigned
int
type
: 1;
/* 0 - przychodząca, 1 - wychodząca */
39
char
*
uid
;
/* od kogo, lub do kogo przy wysyłanych */
40
time_t
time
;
/* czas */
41
time_t
sent_time
;
/* czas wysłania wiadomości przychodzącej */
42
char
*
message
;
/* wiadomość */
43
};
44
45
#ifndef EKG2_WIN32_NOFUNCTION
46
extern
struct
last
*
lasts
;
47
48
void
last_add
(
int
type
,
const
char
*
uid
, time_t t, time_t st,
const
char
*msg);
49
void
last_del
(
const
char
*
uid
);
50
int
last_count
(
const
char
*
uid
);
51
void
lasts_destroy
();
52
53
char
*
xml_escape
(
const
char
*text);
54
55
#endif
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
/* __EKG_LOG_H */
62
63
/*
64
* Local Variables:
65
* mode: c
66
* c-file-style: "k&r"
67
* c-basic-offset: 8
68
* indent-tabs-mode: t
69
* End:
70
*/
last::sent_time
time_t sent_time
Definition:
log.h:41
last::uid
char * uid
Definition:
log.h:39
last_add
void last_add(int type, const char *uid, time_t t, time_t st, const char *msg)
Definition:
log.c:53
last::next
struct last * next
Definition:
log.h:37
lasts_destroy
void lasts_destroy()
Definition:
log.c:40
lasts
struct last * lasts
Definition:
log.c:29
last::message
char * message
Definition:
log.h:42
last
Definition:
log.h:36
dynstuff.h
last_count
int last_count(const char *uid)
Definition:
log.c:125
last::time
time_t time
Definition:
log.h:40
last::type
unsigned int type
Definition:
log.h:38
last_del
void last_del(const char *uid)
Definition:
log.c:109
xml_escape
char * xml_escape(const char *text)
Definition:
log.c:187
Wygenerowano przez
1.8.13