Added layer to set instruction.
This commit is contained in:
parent
e3c3eea764
commit
fa27d7b11e
@ -344,12 +344,13 @@ int guac_protocol_send_error(guac_socket* socket, const char* error);
|
||||
* returned, and guac_error is set appropriately.
|
||||
*
|
||||
* @param socket The guac_socket connection to use.
|
||||
* @param layer The layer to set the parameter of.
|
||||
* @param name The name of the parameter to set.
|
||||
* @param value The value to set the parameter to.
|
||||
* @return Zero on success, non-zero on error.
|
||||
*/
|
||||
int guac_protocol_send_set(guac_socket* socket, const char* name,
|
||||
const char* value);
|
||||
int guac_protocol_send_set(guac_socket* socket, const guac_layer* layer,
|
||||
const char* name, const char* value);
|
||||
|
||||
/**
|
||||
* Sends a select instruction over the given guac_socket connection.
|
||||
|
@ -888,11 +888,13 @@ int guac_protocol_send_reset(guac_socket* socket, const guac_layer* layer) {
|
||||
}
|
||||
|
||||
|
||||
int guac_protocol_send_set(guac_socket* socket, const char* name,
|
||||
const char* value) {
|
||||
int guac_protocol_send_set(guac_socket* socket, const guac_layer* layer,
|
||||
const char* name, const char* value) {
|
||||
|
||||
return
|
||||
guac_socket_write_string(socket, "3.set,")
|
||||
|| __guac_socket_write_length_int(socket, layer->index)
|
||||
|| guac_socket_write_string(socket, ",")
|
||||
|| __guac_socket_write_length_string(socket, name)
|
||||
|| guac_socket_write_string(socket, ",")
|
||||
|| __guac_socket_write_length_string(socket, value)
|
||||
|
Loading…
Reference in New Issue
Block a user