#include "util.h"
#include "keyrouter.h"
+#define TIZEN_KEYROUTER_VERSION 2
+
static void
keyrouter_bind(struct wl_client *client, void *data, uint32_t version,
uint32_t id);
}
keyrouter->global = wl_global_create(display, &tizen_keyrouter_interface,
- 2, keyrouter, keyrouter_bind);
+ TIZEN_KEYROUTER_VERSION, keyrouter, keyrouter_bind);
if (!keyrouter->global) {
keyrouter_grab_destroy(keyrouter->keyrouter_grab);
free(keyrouter);
keyrouter_client->keyrouter = keyrouter;
keyrouter_client->resource =
- wl_resource_create(client, &tizen_keyrouter_interface, MIN(version, 2), id);
+ wl_resource_create(client, &tizen_keyrouter_interface,
+ MIN(version, TIZEN_KEYROUTER_VERSION), id);
if (keyrouter_client->resource == NULL) {
ds_err("wl_resource_create() failed.(version :%d, id:%d)", version, id);
free(keyrouter_client);