You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by st...@apache.org on 2016/12/18 21:56:57 UTC

[29/50] incubator-mynewt-core git commit: oic; remove oc_signal api.

oic; remove oc_signal api.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/bcc40505
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/bcc40505
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/bcc40505

Branch: refs/heads/sensors_branch
Commit: bcc40505f586096a841a5e59d2221b36776630f3
Parents: 98c08c0
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Dec 12 14:18:02 2016 -0800
Committer: Sterling Hughes <st...@apache.org>
Committed: Sun Dec 18 13:56:16 2016 -0800

----------------------------------------------------------------------
 net/oic/include/oic/oc_api.h | 30 ++----------------------------
 1 file changed, 2 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/bcc40505/net/oic/include/oic/oc_api.h
----------------------------------------------------------------------
diff --git a/net/oic/include/oic/oc_api.h b/net/oic/include/oic/oc_api.h
index f0c6346..ca512e4 100644
--- a/net/oic/include/oic/oc_api.h
+++ b/net/oic/include/oic/oc_api.h
@@ -19,7 +19,8 @@
 
 #include "../src/port/mynewt/config.h"
 #include "../src/messaging/coap/oc_coap.h"
-#include "oc_ri.h"
+#include "oic/oc_ri.h"
+#include "oic/oc_api.h"
 #include "../src/port/oc_signal_main_loop.h"
 #include "../src/port/oc_storage.h"
 
@@ -136,33 +137,6 @@ bool oc_do_observe(const char *uri, oc_server_handle_t *server,
 
 bool oc_stop_observe(const char *uri, oc_server_handle_t *server);
 
-/** Common operations */
-
-/** API for setting handlers for interrupts */
-
-#define oc_signal_interrupt_handler(name)                                      \
-  do {                                                                         \
-    oc_process_poll(&(name##_interrupt_x));                                    \
-    oc_signal_main_loop();                                                     \
-  } while (0)
-
-#define oc_activate_interrupt_handler(name)                                    \
-  (oc_process_start(&(name##_interrupt_x), 0))
-
-#define oc_define_interrupt_handler(name)                                      \
-  void name##_interrupt_x_handler(void);                                       \
-  OC_PROCESS(name##_interrupt_x, "");                                          \
-  OC_PROCESS_THREAD(name##_interrupt_x, ev, data)                              \
-  {                                                                            \
-    OC_PROCESS_POLLHANDLER(name##_interrupt_x_handler());                      \
-    OC_PROCESS_BEGIN();                                                        \
-    while (oc_process_is_running(&(name##_interrupt_x))) {                     \
-      OC_PROCESS_YIELD();                                                      \
-    }                                                                          \
-    OC_PROCESS_END();                                                          \
-  }                                                                            \
-  void name##_interrupt_x_handler(void)
-
 #ifdef __cplusplus
 }
 #endif