mirror of
https://github.com/niellun/FastCarPlay.git
synced 2026-06-07 09:38:25 +02:00
17 lines
391 B
C++
17 lines
391 B
C++
#ifndef SRC_PROTOCOL_ISENDER
|
|
#define SRC_PROTOCOL_ISENDER
|
|
|
|
#include <cstdint>
|
|
#include <functional>
|
|
|
|
using StatusCallback = void (*)(const char* status);
|
|
|
|
class IProtocol
|
|
{
|
|
public:
|
|
virtual void onData(uint32_t cmd, uint32_t length, uint8_t* data) = 0;
|
|
virtual void onStatus(const char* status) = 0;
|
|
virtual void onDevice(bool connected) = 0;
|
|
};
|
|
#endif /* SRC_PROTOCOL_ISENDER */
|