X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcectypes.h;h=3b81bdce41444c62a2b8280da875856e88e1b779;hb=fa4798bd538f6114390884ad6f2f9c44c9f77e09;hp=10f8a566862c4dfa1e6de4efa67337140b9b1984;hpb=7b494bea6f0eefd2d10306492d5c191ab378e8a7;p=deb_libcec.git diff --git a/include/cectypes.h b/include/cectypes.h index 10f8a56..3b81bdc 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -866,6 +866,30 @@ typedef struct cec_logical_addresses #endif } cec_logical_addresses; +struct ICECCallbacks +{ + /*! + * @brief Transfer a log message from libCEC to the client. + * @param message The message to transfer. + * @return 1 when ok, 0 otherwise. + */ + int (*CecLogMessage)(const cec_log_message &message); + + /*! + * @brief Transfer a keypress from libCEC to the client. + * @param key The keypress to transfer. + * @return 1 when ok, 0 otherwise. + */ + int (*CecKeyPress)(const cec_keypress &key); + + /*! + * @brief Transfer a CEC command from libCEC to the client. + * @param command The command to transfer. + * @return 1 when ok, 0 otherwise. + */ + int (*CecCommand)(const cec_command &command); +}; + #ifdef UNUSED #elif defined(__GNUC__) #define UNUSED(x) UNUSED_ ## x __attribute__((unused))