mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2375 from geky/expose-nsapi
Expose the network-socket API through mbed.hpull/2342/head
commit
150fd079ef
|
|
@ -27,6 +27,7 @@
|
|||
#include "eventOS_scheduler.h"
|
||||
|
||||
#include "mbed-trace/mbed_trace.h"
|
||||
#include "mbed.h"
|
||||
|
||||
#define TRACE_GROUP "mClt"
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
|
||||
#include "Socket.h"
|
||||
#include "mbed.h"
|
||||
|
||||
Socket::Socket()
|
||||
: _stack(0)
|
||||
|
|
|
|||
|
|
@ -22,10 +22,6 @@
|
|||
#include "rtos/Mutex.h"
|
||||
#include "Callback.h"
|
||||
|
||||
#ifndef NSAPI_NO_INCLUDE_MBED
|
||||
#include "mbed.h" // needed for backwards compatability
|
||||
#endif
|
||||
|
||||
|
||||
/** Abstract socket class
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
#include "TCPServer.h"
|
||||
#include "Timer.h"
|
||||
#include "mbed.h"
|
||||
|
||||
TCPServer::TCPServer()
|
||||
: _pending(0), _accept_sem(0)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"name": "nsapi",
|
||||
"config": {
|
||||
"present": 1
|
||||
}
|
||||
}
|
||||
|
|
@ -21,9 +21,6 @@
|
|||
// entry point for nsapi types
|
||||
#include "nsapi_types.h"
|
||||
|
||||
// disable bug-compatible mbed inclusion
|
||||
#define NSAPI_NO_INCLUDE_MBED
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
// entry point for C++ api
|
||||
|
|
|
|||
|
|
@ -22,6 +22,10 @@
|
|||
#include "rtos/rtos.h"
|
||||
#endif
|
||||
|
||||
#if MBED_CONF_NSAPI_PRESENT
|
||||
#include "network-socket/nsapi.h"
|
||||
#endif
|
||||
|
||||
#include "toolchain.h"
|
||||
#include "platform.h"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue