make get_key() result const char *, so that it is not modified
This commit is contained in:
+3
-3
@@ -47,17 +47,17 @@ int input_init();
|
||||
int input_shutdown();
|
||||
/* Shut it down */
|
||||
|
||||
int input_reserve_key (char * key, bool exclusive, Client * client);
|
||||
int input_reserve_key (const char * key, bool exclusive, Client * client);
|
||||
/* Reserves a key for a client */
|
||||
/* Return -1 if reservation of key is not possible */
|
||||
|
||||
void input_release_key (char * key, Client * client);
|
||||
void input_release_key (const char * key, Client * client);
|
||||
/* Releases a key reservation */
|
||||
|
||||
void input_release_client_keys (Client * client);
|
||||
/* Releases all key reservations for a given client */
|
||||
|
||||
KeyReservation * input_find_key (char * key, Client * client);
|
||||
KeyReservation * input_find_key (const char * key, Client * client);
|
||||
/* Finds if a key reservation causes a 'hit'.
|
||||
* If the key was reserved exclusively, the client will be ignored.
|
||||
* If the key was reserved shared, the client must match.
|
||||
|
||||
Reference in New Issue
Block a user