mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Change message API to use const char *
This commit is contained in:
parent
2103b62386
commit
86ade5204e
@ -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,
|
||||||
@ -97,4 +97,4 @@ void fixupMissingCallbacks(PDECODER_RENDERER_CALLBACKS* drCallbacks, PAUDIO_REND
|
|||||||
(*clCallbacks)->displayTransientMessage = fakeClDisplayTransientMessage;
|
(*clCallbacks)->displayTransientMessage = fakeClDisplayTransientMessage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user