You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1005 B

/*
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2012-2019. All rights reserved.
* Description:
* Author:
* Create:
*/
#ifndef ITVCLIENT_H
#define ITVCLIENT_H
#include <utils/RefBase.h>
#include <binder/IInterface.h>
#include <binder/Parcel.h>
#include <Thread.h>
namespace android {
#ifndef TD_UNUSED
#define TD_UNUSED(x) ((void)x)
#endif
class ITVClient : public IInterface {
public:
DECLARE_META_INTERFACE(TVClient);
virtual void notify(unsigned int type, const void *data, unsigned int len, const void *prev) = 0;
};
// ----------------------------------------------------------------------------
class BnTVClient : public BnInterface<ITVClient> {
public:
~BnTVClient() override;
status_t onTransact(uint32_t code,
const Parcel &request,
Parcel *reply,
uint32_t flags = 0) override;
private:
static Mutex mNotifyLock;
};
}; // namespace android
#endif // __ITVCLIENT_H__