instead of local definitions.
[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]
Change-Id: I489cc6e7a22658990a5971c8171754e03e976ee1
* limitations under the License.
*/
-enum dbox_type {
- DBOX_TYPE_NONE = 0x0,
- DBOX_TYPE_SCRIPT,
- DBOX_TYPE_FILE,
- DBOX_TYPE_TEXT,
- DBOX_TYPE_BUFFER
-};
-
-enum gbar_type {
- GBAR_TYPE_NONE = 0x0,
- GBAR_TYPE_SCRIPT,
- GBAR_TYPE_TEXT,
- GBAR_TYPE_BUFFER
-};
-
enum alter_type {
ALTER_CREATE,
ALTER_DESTROY
extern void package_set_pinup(struct pkg_info *info, int pinup);
extern void package_set_auto_launch(struct pkg_info *info, const char *auto_launch);
extern void package_set_size_list(struct pkg_info *info, unsigned int size_list);
-extern void package_set_dbox_type(struct pkg_info *info, enum dbox_type type);
-extern void package_set_gbar_type(struct pkg_info *info, enum gbar_type type);
+extern void package_set_dbox_type(struct pkg_info *info, enum dynamicbox_dbox_type type);
+extern void package_set_gbar_type(struct pkg_info *info, enum dynamicbox_gbar_type type);
extern int package_set_dbox_group(struct pkg_info *info, const char *group);
extern int package_set_dbox_path(struct pkg_info *info, const char *path);
extern int package_set_gbar_group(struct pkg_info *info, const char *group);
extern struct pkg_info * const package_unref(struct pkg_info *info);
extern const int const package_refcnt(const struct pkg_info *info);
-extern const enum gbar_type const package_gbar_type(const struct pkg_info *info);
-extern const enum dbox_type const package_dbox_type(const struct pkg_info *info);
+extern const enum dynamicbox_gbar_type const package_gbar_type(const struct pkg_info *info);
+extern const enum dynamicbox_dbox_type const package_dbox_type(const struct pkg_info *info);
extern int package_add_instance(struct pkg_info *info, struct inst_info *inst);
extern int package_del_instance(struct pkg_info *info, struct inst_info *inst);
xmlChar *icon;
};
-enum dbox_type {
- DBOX_TYPE_NONE = 0x0,
- DBOX_TYPE_SCRIPT,
- DBOX_TYPE_FILE,
- DBOX_TYPE_TEXT,
- DBOX_TYPE_BUFFER,
- DBOX_TYPE_ELEMENTARY
-};
-
-enum gbar_type {
- GBAR_TYPE_NONE = 0x0,
- GBAR_TYPE_SCRIPT,
- GBAR_TYPE_TEXT,
- GBAR_TYPE_BUFFER,
- GBAR_TYPE_ELEMENTARY
-};
-
struct dynamicbox {
xmlChar *pkgid;
int secured;
int default_touch_effect;
int default_need_frame;
- enum dbox_type dbox_type;
+ enum dynamicbox_dbox_type dbox_type;
xmlChar *dbox_src;
xmlChar *dbox_group;
int size_list; /* 1x1, 2x1, 2x2, 4x1, 4x2, 4x3, 4x4 */
int need_frame[DBOX_NR_OF_SIZE_LIST]; /* Box needs frame which should be cared by viewer */
int mouse_event[DBOX_NR_OF_SIZE_LIST];
- enum gbar_type gbar_type;
+ enum dynamicbox_gbar_type gbar_type;
xmlChar *gbar_src;
xmlChar *gbar_group;
xmlChar *gbar_size; /* Default PD size */
} else if (!xmlStrcasecmp(type, (const xmlChar *)"script")) {
dynamicbox->dbox_type = DBOX_TYPE_SCRIPT;
} else if (!xmlStrcasecmp(type, (const xmlChar *)"elm")) {
- dynamicbox->dbox_type = DBOX_TYPE_ELEMENTARY;
+ dynamicbox->dbox_type = DBOX_TYPE_UIFW;
} else { /* Default */
dynamicbox->dbox_type = DBOX_TYPE_FILE;
}
} else if (!xmlStrcasecmp(type, (const xmlChar *)"buffer")) {
dynamicbox->gbar_type = GBAR_TYPE_BUFFER;
} else if (!xmlStrcasecmp(type, (const xmlChar *)"elm")) {
- dynamicbox->gbar_type = GBAR_TYPE_ELEMENTARY;
+ dynamicbox->gbar_type = GBAR_TYPE_UIFW;
} else {
dynamicbox->gbar_type = GBAR_TYPE_SCRIPT;
}
#include <packet.h>
#include <dynamicbox_errno.h>
#include <dynamicbox_buffer.h>
+#include <dynamicbox_service.h>
#include "debug.h"
#include "conf.h"
static inline void instance_send_resized_event(struct inst_info *inst, int is_gbar, int w, int h, int status)
{
struct packet *packet;
- enum dbox_type dbox_type;
+ enum dynamicbox_dbox_type dbox_type;
const char *pkgname;
const char *id;
unsigned int cmd = CMD_SIZE_CHANGED;
HAPI int instance_unicast_created_event(struct inst_info *inst, struct client_node *client)
{
struct packet *packet;
- enum dbox_type dbox_type;
- enum gbar_type gbar_type;
+ enum dynamicbox_dbox_type dbox_type;
+ enum dynamicbox_gbar_type gbar_type;
const char *dbox_file;
const char *gbar_file;
unsigned int cmd = CMD_CREATED;
static int instance_broadcast_created_event(struct inst_info *inst)
{
struct packet *packet;
- enum dbox_type dbox_type;
- enum gbar_type gbar_type;
+ enum dynamicbox_dbox_type dbox_type;
+ enum dynamicbox_gbar_type gbar_type;
const char *dbox_file;
const char *gbar_file;
unsigned int cmd = CMD_CREATED;
static inline void destroy_instance(struct inst_info *inst)
{
struct pkg_info *pkg;
- enum dbox_type dbox_type;
- enum gbar_type gbar_type;
+ enum dynamicbox_dbox_type dbox_type;
+ enum dynamicbox_gbar_type gbar_type;
struct slave_node *slave;
struct event_item *item;
struct tag_item *tag_item;
static void reactivate_cb(struct slave_node *slave, const struct packet *packet, void *data)
{
struct inst_info *inst = data;
- enum dbox_type dbox_type;
- enum gbar_type gbar_type;
+ enum dynamicbox_dbox_type dbox_type;
+ enum dynamicbox_gbar_type gbar_type;
int ret;
const char *content;
const char *title;
HAPI int instance_state_reset(struct inst_info *inst)
{
- enum dbox_type dbox_type;
- enum gbar_type gbar_type;
+ enum dynamicbox_dbox_type dbox_type;
+ enum dynamicbox_gbar_type gbar_type;
if (!inst) {
ErrPrint("Invalid instance handle\n");
{
struct packet *packet;
const char *id = NULL;
- enum dbox_type dbox_type;
+ enum dynamicbox_dbox_type dbox_type;
unsigned int cmd = CMD_DBOX_UPDATED;
if (inst->client && inst->visible != DBOX_SHOW) {
#include <sqlite3.h>
#include <db-util.h>
#include <dynamicbox_errno.h>
+#include <dynamicbox_service.h>
#include "debug.h"
#include "conf.h"
#include <dlog.h>
#if defined(HAVE_LIVEBOX)
+
+#include <dynamicbox_service.h>
+
#include "slave_life.h"
#include "slave_rpc.h"
#include "client_life.h"
char *dbox_id;
struct {
- enum dbox_type type;
+ enum dynamicbox_dbox_type type;
union {
struct {
} dbox;
struct {
- enum gbar_type type;
+ enum dynamicbox_gbar_type type;
union {
struct {
return info->refcnt;
}
-HAPI const enum dbox_type package_dbox_type(const struct pkg_info *info)
+HAPI const enum dynamicbox_dbox_type package_dbox_type(const struct pkg_info *info)
{
return info ? info->dbox.type : DBOX_TYPE_NONE;
}
-HAPI void package_set_dbox_type(struct pkg_info *info, enum dbox_type type)
+HAPI void package_set_dbox_type(struct pkg_info *info, enum dynamicbox_dbox_type type)
{
info->dbox.type = type;
}
info->network = network;
}
-HAPI const enum gbar_type const package_gbar_type(const struct pkg_info *info)
+HAPI const enum dynamicbox_gbar_type const package_gbar_type(const struct pkg_info *info)
{
return info ? info->gbar.type : GBAR_TYPE_NONE;
}
-HAPI void package_set_gbar_type(struct pkg_info *info, enum gbar_type type)
+HAPI void package_set_gbar_type(struct pkg_info *info, enum dynamicbox_gbar_type type)
{
info->gbar.type = type;
}
#include <dlog.h>
#include <packet.h>
#include <dynamicbox_errno.h>
+#include <dynamicbox_service.h>
#include "slave_life.h"
#include "slave_rpc.h"
#include <packet.h>
#include <com-core_packet.h>
#include <dynamicbox_errno.h>
+#include <dynamicbox_service.h>
#include <dynamicbox_cmd_list.h>
#include "debug.h"