From f8b394c23dacea44c68658e6bf03ea2fb07b07ad Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 19 Jun 2015 22:11:38 -0400 Subject: [PATCH] Change host parameter to const char* type --- limelight-common/Connection.c | 6 +++--- limelight-common/Limelight.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/limelight-common/Connection.c b/limelight-common/Connection.c index 2ccec3d..0dee3c8 100644 --- a/limelight-common/Connection.c +++ b/limelight-common/Connection.c @@ -124,7 +124,7 @@ void LiCompleteThreadStart(void) PltRunThreadProc(); } -static int resolveHostName(char *host) +static int resolveHostName(const char *host) { struct addrinfo hints, *res; int err; @@ -151,7 +151,7 @@ static int resolveHostName(char *host) } /* Starts the connection to the streaming machine */ -int LiStartConnection(char* host, PSTREAM_CONFIGURATION streamConfig, PCONNECTION_LISTENER_CALLBACKS clCallbacks, +int LiStartConnection(const char* host, PSTREAM_CONFIGURATION streamConfig, PCONNECTION_LISTENER_CALLBACKS clCallbacks, PDECODER_RENDERER_CALLBACKS drCallbacks, PAUDIO_RENDERER_CALLBACKS arCallbacks, PPLATFORM_CALLBACKS plCallbacks, void* renderContext, int drFlags, int _serverMajorVersion) { int err; @@ -307,4 +307,4 @@ int LiStartConnection(char* host, PSTREAM_CONFIGURATION streamConfig, PCONNECTIO Cleanup: return err; -} \ No newline at end of file +} diff --git a/limelight-common/Limelight.h b/limelight-common/Limelight.h index e78cb5a..ab17c18 100644 --- a/limelight-common/Limelight.h +++ b/limelight-common/Limelight.h @@ -152,7 +152,7 @@ typedef struct _PLATFORM_CALLBACKS { // // _serverMajorVersion is the major version number of the 'appversion' tag in the /serverinfo request // -int LiStartConnection(char* host, PSTREAM_CONFIGURATION streamConfig, PCONNECTION_LISTENER_CALLBACKS clCallbacks, +int LiStartConnection(const char* host, PSTREAM_CONFIGURATION streamConfig, PCONNECTION_LISTENER_CALLBACKS clCallbacks, PDECODER_RENDERER_CALLBACKS drCallbacks, PAUDIO_RENDERER_CALLBACKS arCallbacks, PPLATFORM_CALLBACKS plCallbacks, void* renderContext, int drFlags, int _serverMajorVersion); @@ -221,4 +221,4 @@ int LiSendScrollEvent(char scrollClicks); #ifdef __cplusplus } -#endif \ No newline at end of file +#endif