Mistake on this page? Email us
edge_trace.h
Go to the documentation of this file.
1 /*
2  * ----------------------------------------------------------------------------
3  * Copyright 2018 ARM Ltd.
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ----------------------------------------------------------------------------
19  */
20 #ifndef EDGE_TRACE_API_H
21 #define EDGE_TRACE_API_H
22 
23 #include "common/edge_mutex.h"
24 
40 void edge_trace_init(int color_mode);
41 
45 void edge_trace_destroy();
46 
47 #ifdef BUILD_TYPE_TEST
48 
51 extern char *timestamp_prefix;
52 
56 extern edge_mutex_t trace_mutex;
57 
64 char *edge_trace_prefix(size_t size);
65 #endif
66 
72 #endif
void edge_trace_init(int color_mode)
The function may be used to initialize the Edge Trace API.
Edge Mutex API.
void edge_trace_destroy()
The function destroys the Edge Trace API and frees the related resources.