Linux/gcc tweak for normSocket code
parent
88e600cedb
commit
2c34e3bf26
|
|
@ -114,7 +114,9 @@ typedef enum NormSocketEventType
|
||||||
NORM_SOCKET_CLOSING, // indicates remote endpoint is closing socket (only read data at this point)
|
NORM_SOCKET_CLOSING, // indicates remote endpoint is closing socket (only read data at this point)
|
||||||
NORM_SOCKET_CLOSE // indicates socket is now closed (invalid for further operations)
|
NORM_SOCKET_CLOSE // indicates socket is now closed (invalid for further operations)
|
||||||
} NormSocketEventType;
|
} NormSocketEventType;
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
NormSocketEventType type;
|
NormSocketEventType type;
|
||||||
|
|
@ -134,6 +136,7 @@ typedef struct
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} NormSocketEvent;
|
} NormSocketEvent;
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
bool NormGetSocketEvent(NormInstanceHandle normInstance, NormSocketEvent* event, bool waitForEvent = true);
|
bool NormGetSocketEvent(NormInstanceHandle normInstance, NormSocketEvent* event, bool waitForEvent = true);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ class NormController
|
||||||
SEND_ERROR,
|
SEND_ERROR,
|
||||||
USER_TIMEOUT,
|
USER_TIMEOUT,
|
||||||
// The ones below here are not exposed via the NORM API
|
// The ones below here are not exposed via the NORM API
|
||||||
SEND_OK,
|
SEND_OK
|
||||||
};
|
};
|
||||||
|
|
||||||
virtual void Notify(NormController::Event event,
|
virtual void Notify(NormController::Event event,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue