diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-08-09 19:33:39 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-08-09 19:33:39 +0900 |
commit | f23a7c0a595338a8d0d6503953394c8a1c7f5071 (patch) | |
tree | e6f96fc399303e03de7310939ad477bf097cd031 | |
parent | 8b330eff9712da611f99f0dc171e544c5d894a80 (diff) |
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 <knimitz@witz-inc.co.jp>
-rw-r--r-- | src/libwindowmanager.h | 23 |
1 files 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 |