mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
add emitter_forward
This commit is contained in:
parent
8b72d7c081
commit
69d43a1c89
@ -383,3 +383,8 @@ ret_t emitter_dispatch_simple_event(emitter_t* emitter, uint32_t type) {
|
||||
|
||||
return emitter_dispatch(emitter, &e);
|
||||
}
|
||||
|
||||
ret_t emitter_forward(void* ctx, event_t* e) {
|
||||
emitter_dispatch(EMITTER(ctx), e);
|
||||
}
|
||||
|
||||
|
@ -291,6 +291,8 @@ emitter_t* emitter_cast(emitter_t* emitter);
|
||||
ret_t emitter_remove_item(emitter_t* emitter, emitter_item_t* item);
|
||||
emitter_item_t* emitter_get_item(emitter_t* emitter, uint32_t index);
|
||||
|
||||
ret_t emitter_forward(void* ctx, event_t* e);
|
||||
|
||||
END_C_DECLS
|
||||
|
||||
#endif /*TK_EMITTER_H*/
|
||||
|
@ -358,4 +358,6 @@ typedef struct _event_source_manager_t event_source_manager_t;
|
||||
#define EAGAIN 11
|
||||
#endif /*EAGAIN*/
|
||||
|
||||
#define TK_SET_NULL(p) (p) = NULL
|
||||
|
||||
#endif /*TYPES_DEF_H*/
|
||||
|
Loading…
Reference in New Issue
Block a user