The Android Open Source Project | e9df6ba | 2012-12-13 14:55:37 -0800 | [diff] [blame^] | 1 | /****************************************************************************** |
| 2 | * |
| 3 | * Copyright (C) 2001-2012 Broadcom Corporation |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at: |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | * |
| 17 | ******************************************************************************/ |
| 18 | |
| 19 | /****************************************************************************** |
| 20 | * |
| 21 | * Critical section definitions for btdisp functions. |
| 22 | * |
| 23 | ******************************************************************************/ |
| 24 | |
| 25 | #ifndef BTDISP_LOCK |
| 26 | #define BTDISP_LOCK |
| 27 | |
| 28 | |
| 29 | #ifdef TESTER |
| 30 | |
| 31 | #ifdef __cplusplus |
| 32 | extern "C" { |
| 33 | #endif |
| 34 | |
| 35 | // External function declaration |
| 36 | extern void btdisp_lock(); |
| 37 | extern void btdisp_unlock(); |
| 38 | extern void btdisp_init(); |
| 39 | extern void btdisp_uninit(); |
| 40 | |
| 41 | #ifdef __cplusplus |
| 42 | } |
| 43 | #endif |
| 44 | |
| 45 | // Lock Macros |
| 46 | #define BTDISP_LOCK_LOG() btdisp_lock(); |
| 47 | #define BTDISP_UNLOCK_LOG() btdisp_unlock(); |
| 48 | #define BTDISP_INIT_LOCK() btdisp_init(); |
| 49 | #define BTDISP_UNINIT_LOCK() btdisp_uninit(); |
| 50 | |
| 51 | #else |
| 52 | |
| 53 | #define BTDISP_LOCK_LOG() |
| 54 | #define BTDISP_UNLOCK_LOG() |
| 55 | #define BTDISP_INIT_LOCK() |
| 56 | #define BTDISP_UNINIT_LOCK() |
| 57 | |
| 58 | #endif |
| 59 | |
| 60 | |
| 61 | |
| 62 | #endif // BTDISP_LOCK |