Change the policy of updating period info of instances for upgrading packages.
If the package is upgraded, its period should be changed for all instances.
but some instances which have changed their period by manually, is not affected by
upgraded information of a package.
Change-Id: Ibca629b92041233c90cddb677539c11275de292b
badge-service
libsmack
shortcut
+ libtzplatform-config
)
IF (X11_SUPPORT)
ADD_DEFINITIONS("-DPACKAGE=\"${PACKAGE}\"")
ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALEDIR}\"")
-ADD_DEFINITIONS("-DINFO_SOCKET=\"/opt/usr/share/live_magazine/.live.socket\"")
-ADD_DEFINITIONS("-DCLIENT_SOCKET=\"/opt/usr/share/live_magazine/.client.socket\"")
-ADD_DEFINITIONS("-DSLAVE_SOCKET=\"/opt/usr/share/live_magazine/.slave.socket\"")
-ADD_DEFINITIONS("-DSERVICE_SOCKET=\"/opt/usr/share/live_magazine/.service.socket\"")
-
ADD_DEFINITIONS("-DCLIENT_PORT=\"8208\"")
ADD_DEFINITIONS("-DBADGE_SOCKET=\"/tmp/.badge.service\"")
extern void *instance_del_data(struct inst_info *inst, const char *tag);
extern void *instance_get_data(struct inst_info *inst, const char *tag);
+extern void instance_reload_period(struct inst_info *inst, double period);
/* End of a file */
Name: data-provider-master
Summary: Master service provider for liveboxes
-Version: 0.41.0
+Version: 0.41.1
Release: 1
Group: HomeTF/Livebox
License: Flora
BuildRequires: pkgconfig(badge-service)
BuildRequires: pkgconfig(shortcut)
BuildRequires: pkgconfig(security-server)
+BuildRequires: pkgconfig(libtzplatform-config)
+Requires: libtzplatform-config
Requires(post): sys-assert
Requires(post): dbus
return ECORE_CALLBACK_CANCEL;
}
+HAPI void instance_reload_period(struct inst_info *inst, double period)
+{
+ inst->lb.period = period;
+}
+
HAPI int instance_set_period(struct inst_info *inst, double period)
{
struct packet *packet;
unsigned int size_type;
int width;
int height;
+ double old_period;
DbgPrint("Already exists, try to update it\n");
+ old_period = info->lb.period;
+
group_del_livebox(info->lbid);
package_clear_fault(info);
height = instance_lb_height(inst);
size_type = livebox_service_size_type(width, height);
if (info->lb.size_list & size_type) {
+ if (instance_period(inst) == old_period) {
+ instance_reload_period(inst, package_period(info));
+ }
instance_reload(inst, INSTANCE_DESTROY_UPGRADE);
} else {
instance_destroy(inst, INSTANCE_DESTROY_UNINSTALL);
#include <livebox-errno.h>
#include <livebox-service.h>
+#include <tzplatform_config.h>
+
#include "critical_log.h"
#include "conf.h"
#include "debug.h"
#define LAZY_PD_OPEN_TAG "lazy,pd,open"
#define LAZY_PD_CLOSE_TAG "lazy,pd,close"
+#define INFO_SOCKET tzplatform_mkpath(TZ_USER_SHARE,"live_magazine/.live.socket")
+#define CLIENT_SOCKET tzplatform_mkpath(TZ_USER_SHARE,"live_magazine/.client.socket")
+#define SLAVE_SOCKET tzplatform_mkpath(TZ_USER_SHARE,"live_magazine/.slave.socket")
+#define SERVICE_SOCKET tzplatform_mkpath(TZ_USER_SHARE,"live_magazine/.service.socket")
+
static struct info {
int info_fd;
int client_fd;