Change message API to use const char *

This commit is contained in:
Cameron Gutman 2016-06-09 12:17:48 -05:00
parent 2103b62386
commit 86ade5204e
2 changed files with 5 additions and 5 deletions

View File

@ -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;
} }
} }
} }

View File

@ -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;