return LB_STATUS_SUCCESS;
}
-EAPI int livebox_create(const char *pkgname, const char *id, const char *content, const char *cluster, const char *category)
+EAPI int livebox_create(const char *pkgname, const char *filename, const char *content, const char *cluster, const char *category)
{
CLiveBoxImpl *box;
CModule *module;
return LB_STATUS_ERROR_INVALID;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (box) {
return LB_STATUS_ERROR_NOT_EXIST;
}
- ret = module->Create(id, content, cluster, category);
+ ret = module->Create(filename, content, cluster, category);
return ret;
}
-EAPI int livebox_destroy(const char *pkgname, const char *id)
+EAPI int livebox_destroy(const char *pkgname, const char *filename)
{
CModule *module;
CLiveBoxImpl *box;
return LB_STATUS_ERROR_INVALID;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return LB_STATUS_ERROR_NOT_EXIST;
}
return ret;
}
-EAPI int livebox_need_to_update(const char *pkgname, const char *id)
+EAPI int livebox_need_to_update(const char *pkgname, const char *filename)
{
CLiveBoxImpl *box;
CModule *module;
return LB_STATUS_ERROR_INVALID;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return LB_STATUS_ERROR_NOT_EXIST;
}
return box->NeedToUpdate();
}
-EAPI int livebox_need_to_destroy(const char *pkgname, const char *id)
+EAPI int livebox_need_to_destroy(const char *pkgname, const char *filename)
{
CLiveBoxImpl *box;
CModule *module;
return LB_STATUS_ERROR_INVALID;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return LB_STATUS_ERROR_NOT_EXIST;
}
return box->NeedToDestroy();
}
-EAPI int livebox_update_content(const char *pkgname, const char *id)
+EAPI int livebox_update_content(const char *pkgname, const char *filename)
{
CLiveBoxImpl *box;
CModule *module;
return LB_STATUS_ERROR_INVALID;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return LB_STATUS_ERROR_NOT_EXIST;
}
return box->UpdateContent();
}
-EAPI int livebox_clicked(const char *pkgname, const char *id, const char *event, double timestamp, double x, double y)
+EAPI int livebox_clicked(const char *pkgname, const char *filename, const char *event, double timestamp, double x, double y)
{
CLiveBoxImpl *box;
CModule *module;
return LB_STATUS_ERROR_INVALID;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return LB_STATUS_ERROR_NOT_EXIST;
}
return box->Clicked(event, timestamp, x, y);
}
-EAPI int livebox_content_event(const char *pkgname, const char *id, const char *emission, const char *source, struct event_info *event_info)
+EAPI int livebox_content_event(const char *pkgname, const char *filename, const char *emission, const char *source, struct event_info *event_info)
{
CLiveBoxImpl *box;
CModule *module;
return LB_STATUS_ERROR_INVALID;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return LB_STATUS_ERROR_NOT_EXIST;
}
return box->ContentEvent(emission, source, event_info);
}
-EAPI int livebox_resize(const char *pkgname, const char *id, int type)
+EAPI int livebox_resize(const char *pkgname, const char *filename, int type)
{
CLiveBoxImpl *box;
CModule *module;
return LB_STATUS_ERROR_INVALID;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return LB_STATUS_ERROR_NOT_EXIST;
}
return box->Resize(type);
}
-EAPI int livebox_change_group(const char *pkgname, const char *id, const char *cluster, const char *category)
+EAPI int livebox_change_group(const char *pkgname, const char *filename, const char *cluster, const char *category)
{
CLiveBoxImpl *box;
CModule *module;
return LB_STATUS_ERROR_INVALID;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return LB_STATUS_ERROR_NOT_EXIST;
}
return box->ChangeGroup(cluster, category);
}
-EAPI int livebox_get_info(const char *pkgname, const char *id, int *w, int *h, double *priority, char **content, char **title)
+EAPI int livebox_get_info(const char *pkgname, const char *filename, int *w, int *h, double *priority, char **content, char **title)
{
CLiveBoxImpl *box;
CModule *module;
return LB_STATUS_ERROR_INVALID;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return LB_STATUS_ERROR_NOT_EXIST;
}
return module->NeedToCreate(cluster, category);
}
-EAPI char *livebox_pinup(const char *pkgname, const char *id, int pinup)
+EAPI char *livebox_pinup(const char *pkgname, const char *filename, int pinup)
{
CLiveBoxImpl *box;
CModule *module;
return NULL;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return NULL;
}
return box->PinUp(pinup);
}
-EAPI int livebox_is_pinned_up(const char *pkgname, const char *id)
+EAPI int livebox_is_pinned_up(const char *pkgname, const char *filename)
{
CLiveBoxImpl *box;
CModule *module;
return NULL;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return NULL;
}
return box->IsPinnedUp();
}
-EAPI int livebox_system_event(const char *pkgname, const char *id, int event)
+EAPI int livebox_system_event(const char *pkgname, const char *filename, int event)
{
CLiveBoxImpl *box;
CModule *module;
return NULL;
}
- box = module->FindLiveBox(id);
+ box = module->FindLiveBox(filename);
if (!box) {
return NULL;
}