Jun Furutani / libMiMic

Fork of libMiMic by Ryo Iizuka

Revision:
19:33b9ba0859ee
Parent:
17:f29e1ca90e3d
Child:
45:63d6aa80e26d
diff -r 1970fec78229 -r 33b9ba0859ee mbed/Httpd.cpp
--- a/mbed/Httpd.cpp	Fri Apr 26 14:55:24 2013 +0000
+++ b/mbed/Httpd.cpp	Sat Apr 27 13:31:57 2013 +0000
@@ -2,6 +2,8 @@
 #include "HttpdConnection.h"
 namespace MiMic
 {
+    char Httpd::_shared_buf[SIZE_OF_HTTP_BUF];
+
     void Httpd::onRequestHandler(NyLPC_TcHttpdConnection_t* i_connection)
     {
         HttpdConnection c(i_connection);
@@ -21,4 +23,13 @@
     {
         NyLPC_cHttpd_loop((NyLPC_TcHttpd_t*)(&this->_inst));
     }
+    void Httpd::lock()
+    {
+        NyLPC_cHttpd_lock((NyLPC_TcHttpd_t*)(&this->_inst));
+    }
+    void Httpd::unlock()
+    {
+        NyLPC_cHttpd_unlock((NyLPC_TcHttpd_t*)(&this->_inst));
+    }
+    
 }
\ No newline at end of file