mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-18 14:51:30 +00:00
Change message API to use const char *
This commit is contained in:
+2
-2
@@ -25,8 +25,8 @@ static void fakeClStageComplete(int stage) {}
|
|||||||
static void fakeClStageFailed(int stage, long errorCode) {}
|
static void fakeClStageFailed(int stage, long errorCode) {}
|
||||||
static void fakeClConnectionStarted(void) {}
|
static void fakeClConnectionStarted(void) {}
|
||||||
static void fakeClConnectionTerminated(long errorCode) {}
|
static void fakeClConnectionTerminated(long errorCode) {}
|
||||||
static void fakeClDisplayMessage(char* message) {}
|
static void fakeClDisplayMessage(const char* message) {}
|
||||||
static void fakeClDisplayTransientMessage(char* message) {}
|
static void fakeClDisplayTransientMessage(const char* message) {}
|
||||||
|
|
||||||
static CONNECTION_LISTENER_CALLBACKS fakeClCallbacks = {
|
static CONNECTION_LISTENER_CALLBACKS fakeClCallbacks = {
|
||||||
.stageStarting = fakeClStageStarting,
|
.stageStarting = fakeClStageStarting,
|
||||||
|
|||||||
+2
-2
@@ -195,11 +195,11 @@ typedef void(*ConnListenerConnectionStarted)(void);
|
|||||||
typedef void(*ConnListenerConnectionTerminated)(long errorCode);
|
typedef void(*ConnListenerConnectionTerminated)(long errorCode);
|
||||||
|
|
||||||
// This callback is invoked to display a dialog-type message to the user
|
// This callback is invoked to display a dialog-type message to the user
|
||||||
typedef void(*ConnListenerDisplayMessage)(char* message);
|
typedef void(*ConnListenerDisplayMessage)(const char* message);
|
||||||
|
|
||||||
// This callback is invoked to display a transient message for the user
|
// This callback is invoked to display a transient message for the user
|
||||||
// while streaming
|
// while streaming
|
||||||
typedef void(*ConnListenerDisplayTransientMessage)(char* message);
|
typedef void(*ConnListenerDisplayTransientMessage)(const char* message);
|
||||||
|
|
||||||
typedef struct _CONNECTION_LISTENER_CALLBACKS {
|
typedef struct _CONNECTION_LISTENER_CALLBACKS {
|
||||||
ConnListenerStageStarting stageStarting;
|
ConnListenerStageStarting stageStarting;
|
||||||
|
|||||||
Reference in New Issue
Block a user