1 /*
2  * Copyright (C) 2018-2022 Intel Corporation.
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 /*
7  * Copyright (C) 2018-2022 Intel Corporation.
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
22 #ifndef __HISTORY_H__
23 #define __HISTORY_H__
24 
25 #define HISTORY_NAME		"history_event"
26 
27 extern char *history_file;
28 
29 int prepare_history(void);
30 void hist_raise_infoerror(const char *type, size_t tlen);
31 void hist_raise_uptime(char *lastuptime);
32 void hist_raise_event(const char *event, const char *type, const char *log,
33 			const char *lastuptime, const char *key);
34 
35 #endif
36