1 /*
2  * Copyright 2019 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 /**
20  * Gabeldorsche related legacy-only-stack-side expansion and support code.
21  */
22 #include "btcore/include/module.h"
23 #include "osi/include/future.h"
24 
25 static const char GD_SHIM_MODULE[] = "gd_shim_module";
26 
27 constexpr future_t* kReturnImmediate = nullptr;
28 constexpr module_lifecycle_fn kUnusedModuleApi = nullptr;
29 constexpr char* kUnusedModuleDependencies = nullptr;
30 
31 namespace bluetooth {
32 namespace shim {
33 
34 /**
35  * Checks if the bluetooth gd stack has been started up.
36  *
37  * @return true if bluetooth gd stack is started, false otherwise.
38  */
39 bool is_gd_stack_started_up();
40 
41 /**
42  * Checks if the dumpsys module has been started.
43  *
44  * DEPRECATED Flag:dumpsys_acquire_stack_when_executing
45  *
46  * @return true if specified module has started, false otherwise.
47  */
48 bool is_gd_dumpsys_module_started();
49 
50 /**
51  * Checks whether discovery should be classic only (vs also triggering BLE).
52  *
53  * @return true if discovery should be limited to classic.
54  */
55 bool is_classic_discovery_only_enabled();
56 
57 }  // namespace shim
58 }  // namespace bluetooth
59