-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror_log.h
46 lines (39 loc) · 1.68 KB
/
error_log.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* This file is part of FAST Wireshark.
*
* FAST Wireshark is free software: you can redistribute it and/or modify
* it under the terms of the Lesser GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FAST Wireshark is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Lesser GNU General Public License for more details.
*
* You should have received a copy of the Lesser GNU General Public License
* along with FAST Wireshark. If not, see
* <http://www.gnu.org/licenses/lgpl.txt>.
*/
#ifndef ERROR_LOG_H_INCLUDED_
#define ERROR_LOG_H_INCLUDED_
#include <glib.h>
#include "basic-dissect.h"
#include "template.h"
/*! \brief set user preferences for error dialogs and log files
* \param display true if user wants error dialogs to display
* \param log true if user wants error messages written to log file
* \param log_file_name if log true contains a name of log file
*/
void fast_set_log_settings(gboolean display, gboolean log, const gchar* log_file_name);
/*! \brief log a dynamic error that has occurred
* \param ftype field type for the field that caused the error
* \param fdata field data for the field that caused the error
*/
void fast_log_dynamic_error(const FieldType* ftype, const FieldData* fdata);
/*! \brief log a static error that has occurred
* \param ftype field type for the field that caused the error
* \param fdata field data for the field that caused the error
*/
void fast_log_static_error(int type, int line, const char* extra_error_info);
#endif