Added an error type to tpl_result_t to indicate display error. 31/231431/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Fri, 17 Apr 2020 06:56:10 +0000 (15:56 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Fri, 17 Apr 2020 06:56:13 +0000 (15:56 +0900)
 - new error type
  TPL_ERROR_INVALID_CONNECTION /* Invalid display connection */

 - When some error occurs in the wayland display,
  it will be used to distinguish the error.

Change-Id: I9f0813d64d10b522dae1224a0bf699328d479f27
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl.h

index aaf6998..7250315 100644 (file)
--- a/src/tpl.h
+++ b/src/tpl.h
@@ -209,7 +209,8 @@ typedef enum {
        TPL_ERROR_INVALID_PARAMETER, /* Invalid parmeter */
        TPL_ERROR_INVALID_OPERATION, /* Invalid operation */
        TPL_ERROR_OUT_OF_MEMORY, /* Out of memory */
-       TPL_ERROR_TIME_OUT /* Time out error */
+       TPL_ERROR_TIME_OUT, /* Time out error */
+       TPL_ERROR_INVALID_CONNECTION /* Invalid display connection */
 } tpl_result_t;
 
 /**