+data-provider-slave (0.0.6) unstable; urgency=low
+
+ * Git: slp/pkgs/d/data-provider-slave
+ * Tag: data-provider-slave_0.0.6
+
+ -- Sung-jae Park <nicesj.park@samsung.com> Wed, 30 May 2012 20:34:23 +0900
+
data-provider-slave (0.0.5) unstable; urgency=low
* Git: slp/pkgs/d/data-provider-slave
#define DEFAULT_UPDATE_TIMEOUT 7
#define BASE_W 720
#define BASE_H 1280
-#define MINIMUM_UPDATE_INTERVAL 0.1f
+#define MINIMUM_UPDATE_INTERVAL 0.5f
#define CR 13
extern int util_get_pkgname(Ecore_X_Window win, char *pkgname, int size);
extern int util_check_ext(const char *icon, const char *ext);
-extern int util_unlink(const char *filename);
extern double util_get_timestamp(void);
/* End of a file */
Name: com.samsung.data-provider-slave
Summary: Slave data provider
-Version: 0.0.4
+Version: 0.0.6
Release: 1
Group: main/app
License: Samsung Proprietary License
g_variant_get(param, "(d)", ×tamp);
- DbgPrint("Pause at %lf\n", timestamp);
-
param = g_variant_new("(i)", 0);
g_dbus_method_invocation_return_value(inv, param);
g_variant_get(param, "(d)", ×tamp);
- DbgPrint("Resume at %lf\n", timestamp);
-
param = g_variant_new("(i)", 0);
g_dbus_method_invocation_return_value(inv, param);
/* TODO: timeout, livebox_script, period */
ret = livebox_create(pkgname, filename, content, timeout, has_livebox_script, period, cluster, category, &w, &h, &priority, pinup, skip_need_to_create, abi);
- DbgPrint("Recreate livebox: pkgname[%s], filename[%s], content[%s]" \
+ DbgPrint("Create livebox: pkgname[%s], filename[%s], content[%s]" \
", timeout[%d]" \
", has_livebox_script[%d]" \
", period[%lf]" \
* And handling this heavy updating from the
* file update callback.
*/
+ DbgPrint("Update interval: %lf\n", interval);
if (interval >= MINIMUM_UPDATE_INTERVAL)
item->monitor_cnt++;
else
DbgPrint("monitor_cnt: %d\n", item->monitor_cnt);
if (item->monitor_cnt == 0) {
+ fault_unmark_call(item->inst->item->pkgname, item->inst->filename, "update,crashed");
if (item->monitor) {
DbgPrint("Destroy monitor: %p\n", item->monitor);
ecore_timer_del(item->monitor);
if (s_info.update != item)
ErrPrint("Updating item is not matched\n");
+ fault_unmark_call(item->inst->item->pkgname, item->inst->filename, "update,crashed");
fault_mark_call(item->inst->item->pkgname, item->inst->filename, "update,timeout");
s_info.update = NULL;
item->monitor_cnt = 1;
s_info.update = item;
+
ret = so_update(item->inst);
+ /*!
+ * \note
+ * While waiting the Callback function call,
+ * Add this for finding the crash
+ */
+ fault_mark_call(item->inst->item->pkgname, item->inst->filename, "update,crashed");
if (ret < 0) {
item->monitor_cnt--;
return *ext ? 0 : 1;
}
-int util_unlink(const char *filename)
-{
- char *descfile;
- int desclen;
-
- desclen = strlen(filename) + 6; /* .desc */
- descfile = malloc(desclen);
- if (descfile) {
- int ret;
- ret = snprintf(descfile, desclen, "%s.desc", filename);
- if (ret < 0) {
- DbgPrint("Error: %s\n", strerror(errno));
- } else {
- ret = unlink(descfile);
- if (ret < 0)
- DbgPrint("Unlink: %s - %s\n",
- descfile, strerror(errno));
- }
- free(descfile);
- }
-
- if (unlink(filename) < 0)
- DbgPrint("Unlink: %s - %s\n", filename, strerror(errno));
-
- return 0;
-}
-
double util_get_timestamp(void)
{
struct timeval tv;