RDK Documentation (Open Sourced RDK Components)
basic_types.h
1
/*
2
* If not stated otherwise in this file or this component's Licenses.txt file the
3
* following copyright and licenses apply:
4
*
5
* Copyright 2016 RDK Management
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
#ifndef __BASIC_TYPES_H__
20
#define __BASIC_TYPES_H__
21
22
#include <stdio.h>
23
//#define ENABLE_DEBUG 1
24
#define LOG(level, text, ...) do {\
25
printf("%s[%d] - %s: " text, __FUNCTION__, __LINE__, level, ##__VA_ARGS__);}while(0);
26
27
#define ERROR(text, ...) do {\
28
printf("%s[%d] - %s: " text, __FUNCTION__, __LINE__, "ERROR", ##__VA_ARGS__);}while(0);
29
#define WARN(text, ...) do {\
30
printf("%s[%d] - %s: " text, __FUNCTION__, __LINE__, "WARN", ##__VA_ARGS__);}while(0);
31
#define INFO(text, ...) do {\
32
printf("%s[%d] - %s: " text, __FUNCTION__, __LINE__, "INFO", ##__VA_ARGS__);}while(0);
33
34
#ifdef ENABLE_DEBUG
35
#define DEBUG(text, ...) do {\
36
printf("%s[%d] - %s: " text, __FUNCTION__, __LINE__, "DEBUG", ##__VA_ARGS__);}while(0);
37
#else
38
#define DEBUG(text, ...)
39
#endif
40
41
42
#define REPORT_IF_UNEQUAL(lhs, rhs) do { \
43
if((lhs) != (rhs)) ERROR("Unexpected error!\n");}while(0);
44
45
46
typedef
enum
47
{
48
AUDIO_SETTINGS_CHANGE_EVENT = 0
49
}audio_capture_events_t;
50
51
#endif // __BASIC_TYPES_H__
components
generic
audiocapturemgr
include
basic_types.h
Generated on Thu Feb 9 2023 06:32:28 for RDK Documentation (Open Sourced RDK Components) by
1.8.17