• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 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 #ifndef GD_RUST_TOPSHIM_COMMON_TYPE_ALIAS_H
17 #define GD_RUST_TOPSHIM_COMMON_TYPE_ALIAS_H
18 
19 /*
20  * Declare type aliases in the topshim namespace in this file.
21  *
22  * The type declarations in cxx bridge blocks are bound to the namespace of the
23  * block. Since in topshim we always put the bridge codes in namespace
24  * `bluetooth::topshim::rust`, to reuse the existing types in GD it's necessary
25  * to define the aliases in the topshim namespace.
26  */
27 
28 #include "types/raw_address.h"
29 
30 namespace bluetooth {
31 namespace topshim {
32 namespace rust {
33 
34 using RawAddress = ::RawAddress;
35 
36 }  // namespace rust
37 }  // namespace topshim
38 }  // namespace bluetooth
39 
40 #endif  // GD_RUST_TOPSHIM_COMMON_TYPE_ALIAS_H
41