mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +00:00
Change host parameter to const char* type
This commit is contained in:
parent
0bb461ac85
commit
f8b394c23d
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user