]> git.ipfire.org Git - thirdparty/sarg.git/blob - include/readlog.h
Move the log reading to a separate source file
[thirdparty/sarg.git] / include / readlog.h
1 #ifndef READLOG_HEADER
2 #define READLOG_HEADER
3
4 /*!
5 \brief Possible return codes for the functions parsing the input log.
6 */
7 enum ReadLogReturnCodeEnum
8 {
9 //! Line successfuly read.
10 RLRC_NoError,
11 //! Unknown line format.
12 RLRC_Unknown,
13
14 RLRC_LastRetCode //!< last entry of the list.
15 };
16
17 /*!
18 \brief Data read from an input log file.
19 */
20 struct ReadLogStruct
21 {
22 //! The time corresponding to the entry.
23 struct tm *EntryTime;
24 //! The IP address connecting to internet
25 char *Ip;
26 //! The user's name.
27 char *User;
28 //! The URL of the visited site.
29 char *Url;
30 //! Time necessary to process the user's request.
31 unsigned int ElapsedTime;
32 //! Number of transfered bytes.
33 unsigned long int DataSize;
34 //! HTTP code returned to the user for the entry.
35 char *HttpCode;
36 };
37
38 #endif //READLOG_HEADER