Update common-c submodule with const char * change

This commit is contained in:
Cameron Gutman
2016-07-31 17:10:32 -07:00
parent 91dcb505de
commit b0c2978405
4 changed files with 16 additions and 16 deletions

View File

@@ -14,12 +14,12 @@
- (void) connectionStarted;
- (void) connectionTerminated:(long)errorCode;
- (void) stageStarting:(char*)stageName;
- (void) stageComplete:(char*)stageName;
- (void) stageFailed:(char*)stageName withError:(long)errorCode;
- (void) stageStarting:(const char*)stageName;
- (void) stageComplete:(const char*)stageName;
- (void) stageFailed:(const char*)stageName withError:(long)errorCode;
- (void) launchFailed:(NSString*)message;
- (void) displayMessage:(char*)message;
- (void) displayTransientMessage:(char*)message;
- (void) displayMessage:(const char*)message;
- (void) displayTransientMessage:(const char*)message;
@end

View File

@@ -229,17 +229,17 @@ void ArDecodeAndPlaySample(char* sampleData, int sampleLength)
void ClStageStarting(int stage)
{
[_callbacks stageStarting:(char*)LiGetStageName(stage)];
[_callbacks stageStarting:LiGetStageName(stage)];
}
void ClStageComplete(int stage)
{
[_callbacks stageComplete:(char*)LiGetStageName(stage)];
[_callbacks stageComplete:LiGetStageName(stage)];
}
void ClStageFailed(int stage, long errorCode)
{
[_callbacks stageFailed:(char*)LiGetStageName(stage) withError:errorCode];
[_callbacks stageFailed:LiGetStageName(stage) withError:errorCode];
}
void ClConnectionStarted(void)
@@ -252,12 +252,12 @@ void ClConnectionTerminated(long errorCode)
[_callbacks connectionTerminated: errorCode];
}
void ClDisplayMessage(char* message)
void ClDisplayMessage(const char* message)
{
[_callbacks displayMessage: message];
}
void ClDisplayTransientMessage(char* message)
void ClDisplayTransientMessage(const char* message)
{
[_callbacks displayTransientMessage: message];
}

View File

@@ -87,7 +87,7 @@
[_streamMan stopStream];
}
- (void) stageStarting:(char*)stageName {
- (void) stageStarting:(const char*)stageName {
Log(LOG_I, @"Starting %s", stageName);
dispatch_async(dispatch_get_main_queue(), ^{
NSString* lowerCase = [NSString stringWithFormat:@"%s in progress...", stageName];
@@ -98,10 +98,10 @@
});
}
- (void) stageComplete:(char*)stageName {
- (void) stageComplete:(const char*)stageName {
}
- (void) stageFailed:(char*)stageName withError:(long)errorCode {
- (void) stageFailed:(const char*)stageName withError:(long)errorCode {
Log(LOG_I, @"Stage %s failed: %ld", stageName, errorCode);
dispatch_async(dispatch_get_main_queue(), ^{
@@ -132,11 +132,11 @@
});
}
- (void) displayMessage:(char*)message {
- (void) displayMessage:(const char*)message {
Log(LOG_I, @"Display message: %s", message);
}
- (void) displayTransientMessage:(char*)message {
- (void) displayTransientMessage:(const char*)message {
Log(LOG_I, @"Display transient message: %s", message);
}