OSDN Git Service

Break out security callbacks stack/include/security_client_callbacks
authorChris Manton <cmanton@google.com>
Mon, 25 Jan 2021 17:30:14 +0000 (09:30 -0800)
committerChris Manton <cmanton@google.com>
Fri, 29 Jan 2021 16:31:40 +0000 (08:31 -0800)
Towards modular code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I4d4f2b7963107778d90bf7df7dd6696edf2a0028

stack/include/security_client_callbacks.h [new file with mode: 0644]

diff --git a/stack/include/security_client_callbacks.h b/stack/include/security_client_callbacks.h
new file mode 100644 (file)
index 0000000..7d73823
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#pragma once
+
+#include "stack/include/btm_api_types.h"
+#include "stack/include/btm_ble_api_types.h"
+
+struct tBTM_APPL_INFO {
+  tBTM_PIN_CALLBACK* p_pin_callback{nullptr};
+  tBTM_LINK_KEY_CALLBACK* p_link_key_callback{nullptr};
+  tBTM_AUTH_COMPLETE_CALLBACK* p_auth_complete_callback{nullptr};
+  tBTM_BOND_CANCEL_CMPL_CALLBACK* p_bond_cancel_cmpl_callback{nullptr};
+  tBTM_SP_CALLBACK* p_sp_callback{nullptr};
+  tBTM_LE_CALLBACK* p_le_callback{nullptr};
+  tBTM_LE_KEY_CALLBACK* p_le_key_callback{nullptr};
+};