mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
Initial host/port on command line
This commit is contained in:
@@ -53,13 +53,13 @@ void guac_free_png_buffer(png_byte** png_buffer, int h) {
|
||||
|
||||
}
|
||||
|
||||
guac_client* guac_get_client(int client_fd, void (*client_init)(guac_client* client)) {
|
||||
guac_client* guac_get_client(int client_fd, void (*client_init)(guac_client* client, const char* hostname, int port), const char* hostname, int port) {
|
||||
|
||||
guac_client* client = malloc(sizeof(guac_client));
|
||||
|
||||
client->io = guac_open(client_fd);
|
||||
|
||||
client_init(client);
|
||||
client_init(client, hostname, port);
|
||||
|
||||
return client;
|
||||
|
||||
|
Reference in New Issue
Block a user