| 1 | /* |
| 2 | * Copyright (C) 2000 Alexey Belyaev ([email protected]) |
| 3 | * Copyright (C) 2004 Dizzy |
| 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_TYPEScxx . . $ `src/bnetd/news.h:21:9`! |
| 22 | |
| 23 | #include <ctime> |
| 24 | #include "common/elist.h"cxx . . $ `<file>/src/common/elist.h`/ |
| 25 | #include "common/lstr.h"cxx . . $ `<file>/src/common/lstr.h`/ |
| 26 | |
| 27 | namespace pvpgncxx . . $ pvpgn/ |
| 28 | { |
| 29 | |
| 30 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 31 | { |
| 32 | |
| 33 | typedef struct news_indexcxx . . $ pvpgn/bnetd/news_index# |
| 34 | #ifdef NEWS_INTERNAL_ACCESScxx . . $ `src/bnetd/news.cpp:20:9`! |
| 35 | { |
| 36 | std::time_tcxx . . $ std/time_t# datecxx . . $ pvpgn/bnetd/news_index#date.; |
| 37 | t_lstrcxx . . $ pvpgn/t_lstr# bodycxx . . $ pvpgn/bnetd/news_index#body.; |
| 38 | t_elistcxx . . $ pvpgn/t_elist# listcxx . . $ pvpgn/bnetd/news_index#list.; |
| 39 | } |
| 40 | #endif |
| 41 | t_news_indexcxx . . $ pvpgn/bnetd/t_news_index#; |
| 42 | |
| 43 | typedef int(*t_news_cbcxx . . $ pvpgn/bnetd/t_news_cb#)(stdcxx . . $ std/::time_tcxx . . $ std/time_t#, t_lstrcxx . . $ pvpgn/t_lstr# *, void *); |
| 44 | |
| 45 | } |
| 46 | |
| 47 | } |
| 48 | |
| 49 | |
| 50 | #endif |
| 51 | |
| 52 | /*****/ |
| 53 | #ifndef JUST_NEED_TYPES |
| 54 | #ifndef NEWS_INTERNAL_ACCESScxx . . $ `src/bnetd/news.cpp:20:9`! |
| 55 | #define NEWS_INTERNAL_ACCESScxx . . $ `src/bnetd/news.h:55:9`! |
| 56 | |
| 57 | namespace pvpgncxx . . $ pvpgn/ |
| 58 | { |
| 59 | |
| 60 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 61 | { |
| 62 | |
| 63 | extern int news_loadcxx . . $ pvpgn/bnetd/news_load(5c4306d8553b3696).(const char *filename); |
| 64 | extern int news_unloadcxx . . $ pvpgn/bnetd/news_unload(b126dc7c1de90089).(void); |
| 65 | |
| 66 | extern unsigned int news_get_firstnewscxx . . $ pvpgn/bnetd/news_get_firstnews(db52760e79bf9054).(void); |
| 67 | extern unsigned int news_get_lastnewscxx . . $ pvpgn/bnetd/news_get_lastnews(db52760e79bf9054).(void); |
| 68 | |
| 69 | extern void news_traversecxx . . $ pvpgn/bnetd/news_traverse(161353baa9c5a8aa).(t_news_cbcxx . . $ pvpgn/bnetd/t_news_cb# cb, void *data); |
| 70 | |
| 71 | } |
| 72 | |
| 73 | } |
| 74 | |
| 75 | #endif |
| 76 | #endif |