Change host parameter to const char* type

This commit is contained in:
Cameron Gutman 2015-06-19 22:11:38 -04:00
parent 0bb461ac85
commit f8b394c23d
2 changed files with 5 additions and 5 deletions

View File

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

View File

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