Change message API to use const char *
This commit is contained in:
parent
2103b62386
commit
86ade5204e
2 changed files with 5 additions and 5 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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…
Add table
Add a link
Reference in a new issue