Debian Codegraph @

src/bnetd/userlog.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2014 HarpyWar ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18 /*****/
19 #ifndef JUST_NEED_TYPES
20 #ifndef INCLUDED_USERLOGS_PROTOS
21 #define INCLUDED_USERLOGS_PROTOS
22
23 #include <string>
24 #include <vector>
25
26 #define JUST_NEED_TYPES
27 #include "connection.h"
28 #undef JUST_NEED_TYPES
29
30 namespace pvpgn
31 {
32
33 namespace bnetd
34 {
35 extern void userlog_init();
36
37 extern void userlog_append(t_account * account, const char * text);
38 extern std::map<long, char*> userlog_read(const char* username, long startline, const char* search_substr = nullptr);
39 extern std::map<long, char*> userlog_find_text(const char * username, const char * search_substr, long startline);
40 extern std::string userlog_filename(const char * username, bool force_create_path = false);
41
42 extern int handle_log_command(t_connection * c, char const *text);
43
44 }
45
46 }
47
48 #endif
49 #endif