1 #ifndef _CHRE_SLPI_H 2 #define _CHRE_SLPI_H 3 /** 4 * Defines the FastRPC interface between CHRE running on the SLPI and the host 5 * daemon running on the AP. 6 * 7 * Note that the interface name gets prefixed to the function names in the 8 * generated sources, with an underscore separating them. 9 * 10 * Refer to the implementations of these functions in the CHRE code that runs on 11 * the SLPI for documentation covering the parameters, return values, etc. 12 */ 13 #include <AEEStdDef.h> 14 #ifndef __QAIC_HEADER 15 #define __QAIC_HEADER(ff) ff 16 #endif //__QAIC_HEADER 17 18 #ifndef __QAIC_HEADER_EXPORT 19 #define __QAIC_HEADER_EXPORT 20 #endif // __QAIC_HEADER_EXPORT 21 22 #ifndef __QAIC_HEADER_ATTRIBUTE 23 #define __QAIC_HEADER_ATTRIBUTE 24 #endif // __QAIC_HEADER_ATTRIBUTE 25 26 #ifndef __QAIC_IMPL 27 #define __QAIC_IMPL(ff) ff 28 #endif //__QAIC_IMPL 29 30 #ifndef __QAIC_IMPL_EXPORT 31 #define __QAIC_IMPL_EXPORT 32 #endif // __QAIC_IMPL_EXPORT 33 34 #ifndef __QAIC_IMPL_ATTRIBUTE 35 #define __QAIC_IMPL_ATTRIBUTE 36 #endif // __QAIC_IMPL_ATTRIBUTE 37 #ifdef __cplusplus 38 extern "C" { 39 #endif 40 __QAIC_HEADER_EXPORT int __QAIC_HEADER(chre_slpi_start_thread)(void) __QAIC_HEADER_ATTRIBUTE; 41 __QAIC_HEADER_EXPORT int __QAIC_HEADER(chre_slpi_wait_on_thread_exit)(void) __QAIC_HEADER_ATTRIBUTE; 42 __QAIC_HEADER_EXPORT int __QAIC_HEADER(chre_slpi_initialize_reverse_monitor)(void) __QAIC_HEADER_ATTRIBUTE; 43 __QAIC_HEADER_EXPORT int __QAIC_HEADER(chre_slpi_stop_thread)(void) __QAIC_HEADER_ATTRIBUTE; 44 __QAIC_HEADER_EXPORT int __QAIC_HEADER(chre_slpi_get_message_to_host)(unsigned char* buffer, int bufferLen, unsigned int* messageLen) __QAIC_HEADER_ATTRIBUTE; 45 __QAIC_HEADER_EXPORT int __QAIC_HEADER(chre_slpi_deliver_message_from_host)(const unsigned char* message, int messageLen) __QAIC_HEADER_ATTRIBUTE; 46 #ifdef __cplusplus 47 } 48 #endif 49 #endif //_CHRE_SLPI_H 50