| 1234567891011121314151617181920212223242526272829303132 |
- #ifndef __WAITRESULT_H__
- #define __WAITRESULT_H__
- #pragma once
- #include "config.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct waitresult_t waitresult_t;
- typedef void (*waitresult_on_trigger)(waitresult_t *result, void *user_data);
- TOOLKIT_API int waitresult_create(waitresult_t **p_result);
- TOOLKIT_API int waitresult_set_cb(waitresult_t *result, waitresult_on_trigger on_trigger, void *user_data);
- TOOLKIT_API void waitresult_destroy(waitresult_t *result);
- TOOLKIT_API HANDLE waitresult_native_handle(waitresult_t *result);
- TOOLKIT_API int waitresult_wait(waitresult_t *result, int timeout);
- TOOLKIT_API int waitresult_get_result(waitresult_t *result, int *p_msg, int *p_param1, int *p_param2);
- TOOLKIT_API int waitresult_signal(waitresult_t *result, int msg, int param1, int param2);
- TOOLKIT_API int waitresult_reset(waitresult_t *result);
- TOOLKIT_API int waitresult_inc_ref(waitresult_t *result);
- TOOLKIT_API int waitresult_dec_ref(waitresult_t *result);
- TOOLKIT_API int watiresult_ref_cnt(waitresult_t *result);
- #ifdef __cplusplus
- } // extern "C" {
- #endif
- #endif //__WAITRESULT_H__
|