]> git.ipfire.org Git - thirdparty/sarg.git/blob - readlog_extlog.c
Modular reading of some input log formats
[thirdparty/sarg.git] / readlog_extlog.c
1 /*
2 * SARG Squid Analysis Report Generator http://sarg.sourceforge.net
3 * 1998, 2012
4 *
5 * SARG donations:
6 * please look at http://sarg.sourceforge.net/donations.php
7 * Support:
8 * http://sourceforge.net/projects/sarg/forums/forum/363374
9 * ---------------------------------------------------------------------
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
24 *
25 */
26
27 #include "include/conf.h"
28 #include "include/defs.h"
29
30 /*!
31 A new file is being read. The name of the file is \a FileName.
32 */
33 static void ExtLog_NewFile(const char *FileName)
34 {
35 }
36
37 /*!
38 Read one entry from an extended log.
39
40 \param Line One line from the input log file.
41 \param Entry Where to store the information parsed from the line.
42
43 \retval RLRC_NoError One valid entry is parsed.
44 \retval RLRC_Unknown The line is invalid.
45 \retval RLRC_InternalError An internal error was encountered.
46 */
47 static enum ReadLogReturnCodeEnum ExtLog_ReadEntry(char *Line,struct ReadLogStruct *Entry)
48 {
49 return(RLRC_NoError);
50 }
51
52 //! \brief Object to read an extended log.
53 const struct ReadLogProcessStruct ReadExtLog=
54 {
55 /* TRANSLATORS: This is the name of the log format displayed when this format is detected in an input log file. */
56 N_("extended log format"),
57 ExtLog_NewFile,
58 ExtLog_ReadEntry
59 };