/[LeafOK_CVS]/pvpgn-1.7.4/src/bnetd/news.h
ViewVC logotype

Annotation of /pvpgn-1.7.4/src/bnetd/news.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Tue Jun 6 03:41:37 2006 UTC (19 years, 9 months ago) by sysadm
Branch point for: GNU, MAIN
Content type: text/x-chdr
Initial revision

1 sysadm 1.1 /*
2     * Copyright (C) 2000 Alexey Belyaev (spider@omskart.ru)
3     * Copyright (C) 2004 Dizzy (dizzy@roedu.net)
4     *
5     * This program is free software; you can redistribute it and/or
6     * modify it under the terms of the GNU General Public License
7     * as published by the Free Software Foundation; either version 2
8     * of the License, or (at your option) any later version.
9     *
10     * This program is distributed in the hope that it will be useful,
11     * but WITHOUT ANY WARRANTY; without even the implied warranty of
12     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13     * GNU General Public License for more details.
14     *
15     * You should have received a copy of the GNU General Public License
16     * along with this program; if not, write to the Free Software
17     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18     */
19    
20     #ifndef INCLUDED_NEWS_TYPES
21     #define INCLUDED_NEWS_TYPES
22    
23     #ifdef HAVE_TIME_H
24     # include <time.h>
25     #endif
26     #include "common/elist.h"
27     #include "common/lstr.h"
28    
29     typedef struct news_index
30     #ifdef NEWS_INTERNAL_ACCESS
31     {
32     time_t date;
33     t_lstr body;
34     t_elist list;
35     }
36     #endif
37     t_news_index;
38    
39     typedef int (*t_news_cb)(time_t, t_lstr *, void *);
40    
41     #endif
42    
43     /*****/
44     #ifndef JUST_NEED_TYPES
45     #ifndef NEWS_INTERNAL_ACCESS
46     #define NEWS_INTERNAL_ACCESS
47    
48     extern int news_load(const char *filename);
49     extern int news_unload(void);
50    
51     extern unsigned int news_get_firstnews(void);
52     extern unsigned int news_get_lastnews(void);
53    
54     extern void news_traverse(t_news_cb cb, void *data);
55    
56     #endif
57     #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1