diff options
Diffstat (limited to 'inc')
-rwxr-xr-x | inc/log.h | 3 | ||||
-rwxr-xr-x | inc/main.h | 22 |
2 files changed, 14 insertions, 11 deletions
@@ -21,6 +21,7 @@ #include <unistd.h> #include <dlog.h> +/* color defines */ #define FONT_COLOR_RESET "\033[0m" #define FONT_COLOR_RED "\033[31m" #define FONT_COLOR_GREEN "\033[32m" @@ -43,6 +44,8 @@ #undef LOG_TAG #define LOG_TAG "TIMER" + +/* output log functions define*/ #if !defined(_D) #define _D(fmt, arg...) dlog_print(DLOG_DEBUG, \ LOG_TAG, "%s: %s(%d) > " WCOLOR_GREEN fmt WCOLOR_END, MODULE_INFO, \ @@ -33,7 +33,6 @@ #define GRP_MAIN "main" #define CONTROL_DOT "/time_picker_control_dot.png" #define MAX_PATH_LEN 1024 -#define GRP_MAIN_GEAR3 "main,gear3" #define GRP_MAIN_GEAR3_NEW "main,gear3_new" #define BUF_SIZE 32 #define BUF_SIZE_256 256 @@ -56,7 +55,9 @@ #endif #define UPTIME_FILE "/proc/uptime" - +/* + * @brief:enum to mark current or expected state of app + */ typedef enum { TMR_STATE_TYPE_RESET = 0, TMR_STATE_TYPE_START, @@ -65,12 +66,18 @@ typedef enum { TMR_STATE_TYPE_MAX, } TMR_STATE_TYPE; +/* + * @brief:enum to mark current or expected time type + */ typedef enum { TMR_TIME_TYPE_HOUR, TMR_TIME_TYPE_MIN, TMR_TIME_TYPE_SEC, } TMR_TIME_TYPE; +/* + * @brief:enum to mark current or expected state of system type + */ typedef enum { TMR_SYSTIME_TYPE_USEC, TMR_SYSTIME_TYPE_SEC, @@ -86,14 +93,7 @@ struct lap_data { char interval_data[20]; // to record the intarval time on the time pannel }; -typedef enum { - SAMPLE_APP_ERROR_OK = 0, - SAMPLE_APP_ERROR_FAIL = -1, - SAMPLE_APP_ERROR_INVALID_PARAMETER = -2, - SAMPLE_APP_ERROR_OUT_OF_MEMORY = -3, - SAMPLE_APP_ERROR_NO_DATA = -4, -} sample_app_error_e; - +// define data structure for screenreader api with every readable object typedef struct screenreader_data { Evas_Object* timer_title; Evas_Object* hour_spinner; @@ -157,7 +157,7 @@ typedef struct appdata { Eina_Bool restart_flag; Eina_Bool start_delaying; Eina_Bool reset_delaying; - char timer_edj_path[MAX_PATH_LEN]; + char timer_edj_path[MAX_PATH_LEN]; //path to char timer_control_dot_path[MAX_PATH_LEN]; char edje_radio_theme_path[MAX_PATH_LEN]; Elm_Theme *theme; |