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 {
|
||||
uint32 token;
|
||||
CallbackFunction callback;
|
||||
RemoteHWInterface::CallbackFunction callback;
|
||||
void* cookie;
|
||||
};
|
||||
|
||||
|
||||
@@ -22,8 +22,6 @@ class RemoteMessage;
|
||||
|
||||
struct callback_info;
|
||||
|
||||
typedef bool (*CallbackFunction)(void* cookie, RemoteMessage& message);
|
||||
|
||||
|
||||
class RemoteHWInterface : public HWInterface {
|
||||
public:
|
||||
@@ -81,6 +79,8 @@ virtual status_t CopyBackToFront(const BRect& frame);
|
||||
StreamingRingBuffer* ReceiveBuffer() { return fReceiveBuffer; }
|
||||
StreamingRingBuffer* SendBuffer() { return fSendBuffer; }
|
||||
|
||||
typedef bool (*CallbackFunction)(void* cookie, RemoteMessage& message);
|
||||
|
||||
status_t AddCallback(uint32 token,
|
||||
CallbackFunction callback,
|
||||
void* cookie);
|
||||
|
||||
Reference in New Issue
Block a user