1 /*
2  * Copyright (C) 2015-2018 Alibaba Group Holding Limited
3  */
4 #include "dev_bind_internal.h"
5 
6 extern int iotx_event_post(int event);
7 
8 #if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */
9 extern "C" {
10 #endif
11 
awss_event_post(int event)12 int awss_event_post(int event)
13 {
14     int ret = 0;
15     void *cb = NULL;
16 
17     ret = iotx_event_post(event);
18 
19     cb = (void *)iotx_event_callback(ITE_AWSS_STATUS);
20     if (cb) {
21         ret = ((int (*)(int))cb)(event);
22     }
23 
24     return ret;
25 }
26 
27 #if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */
28 }
29 #endif
30