#ifndef ENCODER_API_H #define ENCODER_API_H #include #ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif struct encoder_class_ops { int32_t (*open)(void); int32_t (*close)(void); void (*register_report_event_cb)(void *callback); int32_t (*unregister_report_event_cb)(void); }; struct encoder_class_ops *tjd_driver_encoder_get_ops(void); #ifdef __cplusplus #if __cplusplus } #endif #endif #endif