You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/10/07 20:40:15 UTC

[5/7] incubator-mynewt-core git commit: os; add function typedef to use with OS_EVENT_T_CB.

os; add function typedef to use with OS_EVENT_T_CB.


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/1b2429d6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/1b2429d6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/1b2429d6

Branch: refs/heads/develop
Commit: 1b2429d6ebb6c744bea8c5145c37d68840c6f611
Parents: c24d16d
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Oct 7 13:37:27 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Oct 7 13:37:27 2016 -0700

----------------------------------------------------------------------
 kernel/os/include/os/os_eventq.h | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1b2429d6/kernel/os/include/os/os_eventq.h
----------------------------------------------------------------------
diff --git a/kernel/os/include/os/os_eventq.h b/kernel/os/include/os/os_eventq.h
index 6e862b3..25c5a0b 100644
--- a/kernel/os/include/os/os_eventq.h
+++ b/kernel/os/include/os/os_eventq.h
@@ -35,6 +35,12 @@ struct os_event {
     STAILQ_ENTRY(os_event) ev_next;
 };
 
+/*
+ * If event type is OS_EVENT_T_CB, then this function pointer will be
+ * in ev_arg.
+ */
+typedef void (*os_event_cb_func)(struct os_event *);
+
 #define OS_EVENT_QUEUED(__ev) ((__ev)->ev_queued)
 
 #define OS_EVENT_T_TIMER        (1)