summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c0feddd)
raw | patch | inline | side by side (parent: c0feddd)
author | Tinku Mannan <tmannan@ti.com> | |
Tue, 22 Apr 2014 15:22:03 +0000 (11:22 -0400) | ||
committer | Tinku Mannan <tmannan@ti.com> | |
Tue, 22 Apr 2014 15:22:03 +0000 (11:22 -0400) |
12 files changed:
index e8cbd7d6abda512a6d74af3da9b42bd11c78b7d6..9904b790339765849e01a3917d7ba461007183ff 100755 (executable)
#ifndef __NETAPI__H
#define __NETAPI__H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
*/
void netapi_pollHeapGarbage(NETAPI_T p);
-
+#ifdef __cplusplus
+}
+#endif
#endif
index 4cc3ed9942b6c32cec00be3823facb06a09c1706..1fa1bd9a4c19059697d827e0ee65f30b57d53e3c 100755 (executable)
#ifndef __NETAPI_SCHED__
#define __NETAPI_SCHED__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "netapi.h"
/**
unsigned long long* p_pkts,
unsigned long long* p_cycles,
unsigned long long* p_ccycles);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
index b731481241f23d3747da9f567b3a1a704a85ed30..bdd5c49f88b306ba56dfcc053663eef20e9f3853 100755 (executable)
#ifndef __NETAPI_SEC__H
#define __NETAPI_SEC__H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#include "netapi.h"
#include "ti/drv/nwal/nwal.h"
#include <ti/drv/sa/salld.h>
NETCP_CFG_APP_ID_T appId,
nwalChanCxtInfo_t* pInfo);
+
+#ifdef __cplusplus
+}
+#endif
#endif
index 079eafe8b294dabaab30b5a535c7d0f6517b4e72..1b457f75949cd0e75eace9df3788ac455db2a30a 100755 (executable)
#ifndef __NETAPI_TUNE__H
#define __NETAPI_TUNE__H
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
* @ingroup tune_parameters
* @def NETAPI_ENABLE_SECURITY
*/
#define TUNE_NETAPI_MAX_POLICY 128 //rx policies
+#ifdef __cplusplus
+}
+#endif
#endif
index a1db13348c7b225b709e50c3e010704b1c3c3399..ca5c075f422725eb193a69afda76fcfe36cb23dc 100755 (executable)
#ifndef __NETAPI_ERR__
#define __NETAPI_ERR__
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
* @ingroup cfg_constants
*/
#define NETAPI_ERR_NWAL_TX_ERR -65536
+#ifdef __cplusplus
+}
+#endif
+
#endif
index 34fc55e9ff6b2f8916084d0e8061b14291777c53..a98f72afdc09a197a2f6b5ed9d05cfba164d93c4 100755 (executable)
#ifndef __NETAPI_UTIL__H
#define __NETAPI_UTIL__H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
#include "./src/netapi_loc.h"
}
}
+#ifdef __cplusplus
+}
+#endif
+
+
#endif
index eb94f22edefe2f40bb5ed3effd2729ec7fee9196..ecee4fd7bcc0f50bea6f2ac3545901ed6f9b16ac 100755 (executable)
#ifndef __NETAPI_ERR__
#define __NETAPI_ERR__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @def NETAPI_VERSION_ID
* This is the NETAPI Version. Versions numbers are encoded in the following
* format:
* 0xAABBCCDD -> Arch (AA); API Changes (BB); Major (CC); Minor (DD)
*/
-#define NETAPI_VERSION_ID (0x0100000A)
+#define NETAPI_VERSION_ID (0x0100000B)
/**
* @def NETAPI_VERSION_STR
* This is the version string which describes the NETAPI along with the
* date and build information.
*/
-#define NETAPI_VERSION_STR "NETAPI Revision: 01.00.00.10"
+#define NETAPI_VERSION_STR "NETAPI Revision: 01.00.00.11"
/**
* @ingroup netapi_gen_functions
* @pre @ref netapi_init
*/
static inline char * netapi_getVersionString(void) { return NETAPI_VERSION_STR;}
+
+
+
+#ifdef __cplusplus
+}
+#endif
#endif
index cd4bb2d9142228348aef0dc27645afacb5116991..09adecc601c809f7f42d102cfd6cbabd40a5ffe3 100755 (executable)
#ifndef __NETCP_CFG__H
#define __NETCP_CFG__H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "netapi.h"
/**
NETCP_CFG_ROUTE_HANDLE_T p_route);
+#ifdef __cplusplus
+}
+#endif
#endif
index 7bab14fc1e931a49ff685ee24b7070bdd98678eb..133cf3c1afe351cbf1a1323f9b6ded444fd72b70 100755 (executable)
#ifndef NETAPI_SYNC_H
#define NETAPI_SYNCH_H
+#ifdef __cplusplus
+extern "C" {
+#endif
#include "hplib_sync.h"
/*--------------------------*/
#define netapi_wmb hplib_mWriteMemBarrier
+#ifdef __cplusplus
+}
+#endif
#endif
index 7f2e6e19dc89bb553f2753c62197969846ce949d..c0d6250f932ca894b3e54e55c6c44d7820e13ee3 100755 (executable)
#ifndef __PKTIO__H
#define __PKTIO__H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#include "netapi.h"
#include "ti/drv/nwal/nwal.h"
#include "ti/drv/nwal/nwal_util.h"
return h->nwalInstanceHandle;
}
+#ifdef __cplusplus
+}
+#endif
#endif
index e20a647b2298e80440531a8b68b0638af66b2d7e..9aeabaafc04de05315cebde49057eec0b5f8bb38 100755 (executable)
#ifndef __NETAPI_LOC__H
#define __NETAPI_LOC__H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+
#include "ti/drv/nwal/nwal_util.h"
#include "ti/runtime/netapi/pktio.h"
#include "ti/drv/nwal/nwal.h"
//database utilities
void netapip_netcpCfgDeleteSa(NETAPI_NWAL_GLOBAL_CONTEXT_T *p,int sa_slot);
+
void netapip_netcpCfgInsertSa(NETAPI_NWAL_GLOBAL_CONTEXT_T *p,
int sa_slot, //we 'reserved it already'
int dir,
void * temp2,
void * handle_inflow,
void * handle_sideband,
- nwalTxDmPSCmdInfo_t *dmPSCmdInfo;);
+ nwalTxDmPSCmdInfo_t *dmPSCmdInfo,
+ uint32_t swInfo0,
+ uint32_t swInfo1,
+ void* user_data);
+
void *netapip_netcpCfgGetSaHandles( NETAPI_NWAL_GLOBAL_CONTEXT_T *p,
int sa_slot, void ** p_sideband);
void* netapip_netcpCfgGetMacHandle(NETAPI_NWAL_GLOBAL_CONTEXT_T *p,int iface_no);
int netapip_systemInit(NETAPI_HANDLE_T *, Bool);
void netapip_cleanupAtStart(void);
+
+
+
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
index f4c456036a26d1e4798e59a4245643df2745a0c4..a077236f7a6f33cbcf302cb8241c93d430359587 100755 (executable)
tunnelId,
(sa_info->dir == NWAL_SA_DIR_INBOUND) ? TRUE: FALSE,
inflow_mode,
- &saInfo, &createParam,
+ &saInfo,
+ &createParam,
*p_inflow_mode_handle,
*p_data_mode_handle,
&dmPSCmdInfo,