blob: d623fa45aa481a72f6f7966125191740db2d3cc0 [file] [log] [blame]
Zach Johnson9891f322014-09-22 22:11:55 -07001/******************************************************************************
2 *
Jakub Pawlowski5b790fe2017-09-18 09:00:20 -07003 * Copyright 2014 Google, Inc.
Zach Johnson9891f322014-09-22 22:11:55 -07004 *
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#pragma once
20
21#include <stdbool.h>
22
Zach Johnson9891f322014-09-22 22:11:55 -070023#include "module.h"
Myles Watsonc1e42392016-11-09 09:47:42 -080024#include "osi/include/config.h"
Zach Johnson9891f322014-09-22 22:11:55 -070025
Sharvil Nanavati06ef2052014-11-06 18:34:06 -080026static const char STACK_CONFIG_MODULE[] = "stack_config_module";
27
Zach Johnson9891f322014-09-22 22:11:55 -070028typedef struct {
Zach Johnson9891f322014-09-22 22:11:55 -070029 bool (*get_trace_config_enabled)(void);
tedwang494dcc52018-05-16 19:51:26 +080030 bool (*get_pts_avrcp_test)(void);
Nitin Aroraa0ee0f82016-03-11 12:26:51 -080031 bool (*get_pts_secure_only_mode)(void);
Nitin Arora36ad41b2015-06-10 17:10:57 -070032 bool (*get_pts_conn_updates_disabled)(void);
Nitin Arora4cdb0e52016-03-10 18:27:24 -080033 bool (*get_pts_crosskey_sdp_disable)(void);
Jakub Pawlowskif3fb3162017-10-06 00:04:27 -070034 const std::string* (*get_pts_smp_options)(void);
Nitin Arora0bd0c8f2016-03-15 15:00:36 -070035 int (*get_pts_smp_failure_case)(void);
Myles Watsonc1e42392016-11-09 09:47:42 -080036 config_t* (*get_all)(void);
Zach Johnson9891f322014-09-22 22:11:55 -070037} stack_config_t;
38
Myles Watsonc1e42392016-11-09 09:47:42 -080039const stack_config_t* stack_config_get_interface(void);