pepper: Expose seat/input functions as APIs
authorJaehoon Jeong <jh01.j@samsung.com>
Wed, 19 Aug 2015 05:12:57 +0000 (14:12 +0900)
committerGerrit Code Review <root@ap3>
Thu, 20 Aug 2015 05:37:39 +0000 (14:37 +0900)
    - pepper_input_device_get_property()
    - pepper_seat_get_name()

Change-Id: I2af7b5f928873dc0a77362375fcd59322668a186

src/lib/pepper/input.c
src/lib/pepper/pepper-input-backend.h
src/lib/pepper/pepper.h

index b3c8d46..323d827 100644 (file)
@@ -207,6 +207,12 @@ pepper_seat_get_touch(pepper_seat_t *seat)
     return NULL;
 }
 
+PEPPER_API const char *
+pepper_seat_get_name(pepper_seat_t *seat)
+{
+    return seat->name;
+}
+
 static void
 seat_update_pointer_cap(pepper_seat_t *seat)
 {
index cd9a92a..82806c0 100644 (file)
@@ -21,9 +21,6 @@ pepper_input_device_create(pepper_compositor_t *compositor, uint32_t caps,
 PEPPER_API void
 pepper_input_device_destroy(pepper_input_device_t *device);
 
-PEPPER_API const char *
-pepper_input_device_get_property(pepper_input_device_t *device, const char *key);
-
 PEPPER_API uint32_t
 pepper_input_device_get_caps(pepper_input_device_t *device);
 
index 1d8fe59..27fa76e 100644 (file)
@@ -293,6 +293,9 @@ pepper_compositor_add_seat(pepper_compositor_t *compositor,
 PEPPER_API void
 pepper_seat_destroy(pepper_seat_t *seat);
 
+PEPPER_API const char *
+pepper_seat_get_name(pepper_seat_t *seat);
+
 PEPPER_API pepper_pointer_t *
 pepper_seat_get_pointer(pepper_seat_t *seat);
 
@@ -308,6 +311,10 @@ pepper_seat_add_input_device(pepper_seat_t *seat, pepper_input_device_t *device)
 PEPPER_API void
 pepper_seat_remove_input_device(pepper_seat_t *seat, pepper_input_device_t *device);
 
+PEPPER_API const char *
+pepper_input_device_get_property(pepper_input_device_t *device, const char *key);
+
+
 /* Surface. */
 PEPPER_API const char *
 pepper_surface_get_role(pepper_surface_t *surface);