Move callbackFunction type declaration into the class to avoid a name clash with future code.
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
struct callback_info {
|
struct callback_info {
|
||||||
uint32 token;
|
uint32 token;
|
||||||
CallbackFunction callback;
|
RemoteHWInterface::CallbackFunction callback;
|
||||||
void* cookie;
|
void* cookie;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,6 @@ class RemoteMessage;
|
|||||||
|
|
||||||
struct callback_info;
|
struct callback_info;
|
||||||
|
|
||||||
typedef bool (*CallbackFunction)(void* cookie, RemoteMessage& message);
|
|
||||||
|
|
||||||
|
|
||||||
class RemoteHWInterface : public HWInterface {
|
class RemoteHWInterface : public HWInterface {
|
||||||
public:
|
public:
|
||||||
@@ -81,6 +79,8 @@ virtual status_t CopyBackToFront(const BRect& frame);
|
|||||||
StreamingRingBuffer* ReceiveBuffer() { return fReceiveBuffer; }
|
StreamingRingBuffer* ReceiveBuffer() { return fReceiveBuffer; }
|
||||||
StreamingRingBuffer* SendBuffer() { return fSendBuffer; }
|
StreamingRingBuffer* SendBuffer() { return fSendBuffer; }
|
||||||
|
|
||||||
|
typedef bool (*CallbackFunction)(void* cookie, RemoteMessage& message);
|
||||||
|
|
||||||
status_t AddCallback(uint32 token,
|
status_t AddCallback(uint32 token,
|
||||||
CallbackFunction callback,
|
CallbackFunction callback,
|
||||||
void* cookie);
|
void* cookie);
|
||||||
|
|||||||
Reference in New Issue
Block a user