From f23a7c0a595338a8d0d6503953394c8a1c7f5071 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Thu, 9 Aug 2018 19:33:39 +0900 Subject: Move the old APIs using json_object* to deprecatid code To be easy to use, these APIs will be deprecated on GG. Change-Id: Ie550415247ef185f53e0429edb79cf5577a22755 Signed-off-by: Kazumasa Mitsunari --- src/libwindowmanager.h | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/libwindowmanager.h b/src/libwindowmanager.h index 5070cf5..d3c9a39 100644 --- a/src/libwindowmanager.h +++ b/src/libwindowmanager.h @@ -117,22 +117,18 @@ public: void setFlushDrawHandler (flush_draw_handler f); void setScreenUpdatedHandler(screen_updated_handler f); void setErrorHandler (error_handler f); - - // Backward Compatible API - int requestSurface(json_object *object); - int requestSurfaceXDG(json_object *object); - int activateWindow(json_object *object); - int deactivateWindow(json_object *object); - int endDraw(json_object *object); - int getDisplayInfo(json_object *object); - int getAreaInfo(json_object *in_obj, json_object *out_obj); - - int getAreaInfo(const char *label, json_object *out_obj); - void set_event_handler(enum EventType et, handler_fun f); - + // Backward Compatible API // These APIs are deprecated, please use new API + THIS_FUNCTION_IS_DEPRECATED(int requestSurface(json_object *object)); + THIS_FUNCTION_IS_DEPRECATED(int requestSurfaceXDG(json_object *object)); + THIS_FUNCTION_IS_DEPRECATED(int activateWindow(json_object *object)); + THIS_FUNCTION_IS_DEPRECATED(int deactivateWindow(json_object *object)); + THIS_FUNCTION_IS_DEPRECATED(int endDraw(json_object *object)); + THIS_FUNCTION_IS_DEPRECATED(int getDisplayInfo(json_object *object)); + THIS_FUNCTION_IS_DEPRECATED(int getAreaInfo(json_object *in_obj, json_object *out_obj)); + THIS_FUNCTION_IS_DEPRECATED(int getAreaInfo(const char *label, json_object *out_obj)); THIS_FUNCTION_IS_DEPRECATED(int activateSurface(json_object *object)); THIS_FUNCTION_IS_DEPRECATED(int deactivateSurface(json_object *object)); class Impl; @@ -140,4 +136,5 @@ public: private: Impl *const d; }; + #endif // LIBWINDOWMANAGER_H -- cgit 1.2.3-korg