• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*******************************************************************************
2 **+--------------------------------------------------------------------------+**
3 **|                                                                          |**
4 **| Copyright 1998-2008 Texas Instruments, Inc. - http://www.ti.com/         |**
5 **|                                                                          |**
6 **| Licensed under the Apache License, Version 2.0 (the "License");          |**
7 **| you may not use this file except in compliance with the License.         |**
8 **| You may obtain a copy of the License at                                  |**
9 **|                                                                          |**
10 **|     http://www.apache.org/licenses/LICENSE-2.0                           |**
11 **|                                                                          |**
12 **| Unless required by applicable law or agreed to in writing, software      |**
13 **| distributed under the License is distributed on an "AS IS" BASIS,        |**
14 **| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |**
15 **| See the License for the specific language governing permissions and      |**
16 **| limitations under the License.                                           |**
17 **|                                                                          |**
18 **+--------------------------------------------------------------------------+**
19 *******************************************************************************/
20 
21 //--------------------------------------------------------------------------
22 // Module:		TI_Adapter.cpp
23 //
24 // Purpose:
25 //
26 //--------------------------------------------------------------------------
27 
28 #include "CommonAdapter.h"
29 #ifdef _WINDOWS
30 #endif
31 
TI_CheckAdapterObject(void * pObj)32 tiBOOL TI_CheckAdapterObject(void *pObj)
33 {
34     tiBOOL bRes = FALSE;
35 
36     TI_OAL*  pOSLib = TI_OAL::GetInstance();
37     if (pOSLib)
38         bRes = !(pOSLib->TIIsBadWritePtr(pObj, sizeof(CTI_WLAN_AdapterAPI)));
39 
40     TI_OAL::FreeInstance();
41 
42     return bRes;
43 }
44 
TI_AdapterCppInit(tiCHAR * pszDeviceName,tiBOOL bForce)45 TI_WLAN_AdapterAPI* TI_AdapterCppInit(tiCHAR* pszDeviceName, tiBOOL bForce )
46 {
47     return CTI_WLAN_AdapterAPI::GetTIWLANAdapter(pszDeviceName, bForce);
48 }
49 
TI_AdapterCppDeinit(TI_WLAN_AdapterAPI * pAdapter,tiBOOL bForce)50 tiINT32 TI_AdapterCppDeinit( TI_WLAN_AdapterAPI* pAdapter, tiBOOL bForce )
51 {
52     return CTI_WLAN_AdapterAPI::FreeTIWLANAdapter((CTI_WLAN_AdapterAPI*)pAdapter, bForce);
53 }
54 
55