UG_OPT_INDICATOR_LANDSCAPE_ONLY
// Disable indicator
UG_OPT_INDICATOR_DISABLE
+// current indicator status will be held
+UG_OPT_INDICATOR_MANUAL
@endcode
\note <b>struct ug_data</b> is a user defined private data structure describing base layout, own UI gadget handler, and whatever you need:
UG_KEY_EVENT_MAX
};
-#define UG_OPT_INDICATOR_MASK (0x03)
-#define UG_OPT_INDICATOR(opt) (opt & UG_OPT_INDICATOR_MASK)
-
/**
* UI gadget option
* - Indicator option: [1, 0] bits
UG_OPT_INDICATOR_DISABLE = 0x03,
/**< Indicator option:
Disable with both portrait and landscape view window */
+ UG_OPT_INDICATOR_MANUAL = 0x04,
+ /**< Indicator option:
+ Indicator will be handled manually */
UG_OPT_MAX
};
Name: ui-gadget-1
Summary: UI Gadget Library
-Version: 0.1.2
+Version: 0.1.3
Release: 1
Group: TO_BE/FILLED_IN
License: TO BE FILLED IN
return -1;
}
- switch (UG_OPT_INDICATOR(opt)) {
+ switch (opt) {
case UG_OPT_INDICATOR_ENABLE:
if (event == UG_EVENT_NONE)
enable = 1;
case UG_OPT_INDICATOR_DISABLE:
enable = 0;
break;
+ case UG_OPT_INDICATOR_MANUAL:
+ return 0;
default:
_ERR("ugman_indicator_update failed: Invalid opt\n");
return -1;
return -1;
/* Indicator Option */
if (ug->mode == UG_MODE_FULLVIEW)
- ugman_indicator_update(UG_OPT_INDICATOR(ug->opt), UG_EVENT_NONE);
+ ugman_indicator_update(ug->opt, UG_EVENT_NONE);
return 0;
}
g_idle_add(ugman_send_event_pre, (void *)event);
if (is_rotation && ug_man.fv_top)
- ugman_indicator_update(UG_OPT_INDICATOR(ug_man.fv_top->opt), event);
+ ugman_indicator_update(ug_man.fv_top->opt, event);
return 0;
}
struct ug_module *module;
char ug_file[PATH_MAX];
- char *pkg_name = NULL;
uid_t uid;
int (*module_init) (struct ug_module_ops *ops);
return NULL;
}
+#if 0
+ char *pkg_name = NULL;
pkg_name = getenv("PKG_NAME");
uid = geteuid();
+#endif
do {
+#if 0
if (pkg_name) {
snprintf(ug_file, PATH_MAX, "/usr/apps/%s/lib/libug-%s.so", pkg_name, name);
if (file_exist(ug_file))
if (file_exist(ug_file))
break;
}
+#endif
snprintf(ug_file, PATH_MAX, "/usr/ug/lib/libug-%s.so", name);
if (file_exist(ug_file))
break;
if (ug->service)
service_destroy(ug->service);
free(ug);
+ ug = NULL;
return 0;
}