mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-04 08:46:24 +08:00

1. Refactor test cpp files to c. 2. Update test license to Apache-2.0 OR MIT. Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: I02f3e23ddae8435ca851a5f0164f04ef5f51ccc2
31 lines
606 B
C
31 lines
606 B
C
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
|
|
/*
|
|
* Copyright (c) 2017 Rockchip Electronics Co., Ltd.
|
|
*/
|
|
|
|
#ifndef __MPP_EVENT_TRIGGER_H__
|
|
#define __MPP_EVENT_TRIGGER_H__
|
|
|
|
typedef void (*event_trigger)(void *parent, void *event);
|
|
|
|
struct ievent {
|
|
int idx;
|
|
void *event;
|
|
};
|
|
|
|
struct event_packet {
|
|
int cnt;
|
|
int loop;
|
|
struct ievent e[128];
|
|
};
|
|
|
|
struct event_ctx {
|
|
int (*notify)(void *param);
|
|
};
|
|
|
|
struct event_ctx* event_ctx_create(struct event_packet *e,
|
|
event_trigger trigger, void *parent);
|
|
void event_ctx_release(struct event_ctx *ictx);
|
|
|
|
#endif
|