OLD | NEW |
1 //------------------------------------------------------------------------------ | 1 //------------------------------------------------------------------------------ |
2 // <copyright file="athbtfilter.h" company="Atheros"> | 2 // <copyright file="athbtfilter.h" company="Atheros"> |
3 // Copyright (c) 2007-2008 Atheros Corporation. All rights reserved. | 3 // Copyright (c) 2007-2010 Atheros Corporation. All rights reserved. |
4 // | 4 // |
5 // This program is free software; you can redistribute it and/or modify | |
6 // it under the terms of the GNU General Public License version 2 as | |
7 // published by the Free Software Foundation; | |
8 // | 5 // |
9 // Software distributed under the License is distributed on an "AS | 6 // Permission to use, copy, modify, and/or distribute this software for any |
10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | 7 // purpose with or without fee is hereby granted, provided that the above |
11 // implied. See the License for the specific language governing | 8 // copyright notice and this permission notice appear in all copies. |
12 // rights and limitations under the License. | 9 // |
| 10 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 11 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 12 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 13 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 14 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 15 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 16 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
13 // | 17 // |
14 // | 18 // |
15 //------------------------------------------------------------------------------ | 19 //------------------------------------------------------------------------------ |
16 //============================================================================== | 20 //============================================================================== |
17 // Public Bluetooth filter APIs | 21 // Public Bluetooth filter APIs |
18 // Author(s): ="Atheros" | 22 // Author(s): ="Atheros" |
19 //============================================================================== | 23 //============================================================================== |
20 #ifndef ATHBTFILTER_H_ | 24 #ifndef ATHBTFILTER_H_ |
21 #define ATHBTFILTER_H_ | 25 #define ATHBTFILTER_H_ |
22 | 26 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 } ATHBT_STATE; | 58 } ATHBT_STATE; |
55 | 59 |
56 /* BT state indication (when filter functions are not used) */ | 60 /* BT state indication (when filter functions are not used) */ |
57 | 61 |
58 typedef void (*ATHBT_INDICATE_STATE_FN)(void *pContext, ATHBT_STATE_INDICATION
Indication, ATHBT_STATE State, unsigned char LMPVersion); | 62 typedef void (*ATHBT_INDICATE_STATE_FN)(void *pContext, ATHBT_STATE_INDICATION
Indication, ATHBT_STATE State, unsigned char LMPVersion); |
59 | 63 |
60 typedef struct _ATHBT_FILTER_INSTANCE { | 64 typedef struct _ATHBT_FILTER_INSTANCE { |
61 #ifdef UNDER_CE | 65 #ifdef UNDER_CE |
62 WCHAR *pWlanAdapterName; /* filled in by user */ | 66 WCHAR *pWlanAdapterName; /* filled in by user */ |
63 #else | 67 #else |
64 A_CHAR *pWlanAdapterName; /* filled in by user */ | 68 char *pWlanAdapterName; /* filled in by user */ |
65 #endif /* UNDER_CE */ | 69 #endif /* UNDER_CE */ |
66 int FilterEnabled; /* filtering is enabled */ | 70 int FilterEnabled; /* filtering is enabled */ |
67 int Attached; /* filter library is attache
d */ | 71 int Attached; /* filter library is attache
d */ |
68 void *pContext; /* private context for filte
r library */ | 72 void *pContext; /* private context for filte
r library */ |
69 ATHBT_FILTER_CMD_EVENTS_FN pFilterCmdEvents; /* function ptr to filter a
command or event */ | 73 ATHBT_FILTER_CMD_EVENTS_FN pFilterCmdEvents; /* function ptr to filter a
command or event */ |
70 ATHBT_FILTER_DATA_FN pFilterAclDataOut; /* function ptr to filter AC
L data out (to radio) */ | 74 ATHBT_FILTER_DATA_FN pFilterAclDataOut; /* function ptr to filter AC
L data out (to radio) */ |
71 ATHBT_FILTER_DATA_FN pFilterAclDataIn; /* function ptr to filter AC
L data in (from radio) */ | 75 ATHBT_FILTER_DATA_FN pFilterAclDataIn; /* function ptr to filter AC
L data in (from radio) */ |
72 ATHBT_INDICATE_STATE_FN pIndicateState; /* function ptr to indicate
a state */ | 76 ATHBT_INDICATE_STATE_FN pIndicateState; /* function ptr to indicate
a state */ |
73 } ATH_BT_FILTER_INSTANCE; | 77 } ATH_BT_FILTER_INSTANCE; |
74 | 78 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 (indication), \ | 118 (indication), \ |
115 (state), \ | 119 (state), \ |
116 0); \ | 120 0); \ |
117 } | 121 } |
118 | 122 |
119 #ifdef __cplusplus | 123 #ifdef __cplusplus |
120 extern "C" { | 124 extern "C" { |
121 #endif | 125 #endif |
122 | 126 |
123 /* API prototypes */ | 127 /* API prototypes */ |
124 int AthBtFilter_Attach(ATH_BT_FILTER_INSTANCE *pInstance, A_UINT32 flags); | 128 int AthBtFilter_Attach(ATH_BT_FILTER_INSTANCE *pInstance, unsigned int flags
); |
125 void AthBtFilter_Detach(ATH_BT_FILTER_INSTANCE *pInstance); | 129 void AthBtFilter_Detach(ATH_BT_FILTER_INSTANCE *pInstance); |
126 | 130 |
127 #ifdef __cplusplus | 131 #ifdef __cplusplus |
128 } | 132 } |
129 #endif | 133 #endif |
130 | 134 |
131 #endif /*ATHBTFILTER_H_*/ | 135 #endif /*ATHBTFILTER_H_*/ |
OLD | NEW |