livebox-service
edje
evas
+ livebox
)
SET(PACKAGE "${PROJECT_NAME}")
src/update_monitor.c
src/conf.c
src/util.c
- src/livebox.c
+ src/lb.c
src/client.c
src/critical_log.c
)
extern int client_init(const char *name);
-extern int client_fd(void);
extern int client_fini(void);
/* End of a file */
#define MAX_LOG_FILE 3
//#define DLAPI __attribute__((visibility("default")))
+#define HAPI __attribute__((visibility("hidden")))
+
/* End of a file */
--- /dev/null
+extern int lb_init(void);
+extern int lb_fini(void);
+
+extern int lb_create(const char *pkgname, const char *id, const char *content_info, int timeout, int has_livebox_script, double period, const char *cluster, const char *category, int *w, int *h, double *priority, int skip_need_to_create, const char *abi, char **out_content, char **out_title);
+extern int lb_destroy(const char *pkgname, const char *id);
+
+extern int lb_resize(const char *pkgname, const char *id, int w, int h);
+extern int lb_clicked(const char *pkgname, const char *id, const char *event, double timestamp, double x, double y);
+
+extern int lb_script_event(const char *pkgname, const char *id, const char *emission, const char *source, struct event_info *event_info);
+extern int lb_change_group(const char *pkgname, const char *id, const char *cluster, const char *category);
+
+extern int lb_update_all(const char *pkgname, const char *cluster, const char *category);
+extern void lb_pause_all(void);
+extern void lb_resume_all(void);
+extern int lb_set_period(const char *pkgname, const char *id, double period);
+extern char *lb_pinup(const char *pkgname, const char *id, int pinup);
+extern int lb_system_event(const char *pkgname, const char *id, int event);
+extern int lb_system_event_all(int event);
+
+extern int lb_open_pd(const char *pkgname);
+extern int lb_close_pd(const char *pkgname);
+
+extern int lb_pause(const char *pkgname, const char *id);
+extern int lb_resume(const char *pkgname, const char *id);
+
+extern int lb_is_pinned_up(const char *pkgname, const char *id);
+
+/*!
+ * Exported API for each liveboxes
+ */
+extern const char *livebox_find_pkgname(const char *filename);
+
+/* End of a file */
+++ /dev/null
-extern int livebox_init(void);
-extern int livebox_fini(void);
-
-extern int livebox_create(const char *pkgname, const char *id, const char *content_info, int timeout, int has_livebox_script, double period, const char *cluster, const char *category, int *w, int *h, double *priority, int skip_need_to_create, const char *abi, char **out_content, char **out_title);
-extern int livebox_destroy(const char *pkgname, const char *id);
-
-extern int livebox_resize(const char *pkgname, const char *id, int w, int h);
-extern int livebox_clicked(const char *pkgname, const char *id, const char *event, double timestamp, double x, double y);
-
-extern int livebox_script_event(const char *pkgname, const char *id, const char *emission, const char *source, struct event_info *event_info);
-extern int livebox_change_group(const char *pkgname, const char *id, const char *cluster, const char *category);
-
-extern int livebox_update_all(const char *pkgname, const char *cluster, const char *category);
-extern void livebox_pause_all(void);
-extern void livebox_resume_all(void);
-extern int livebox_set_period(const char *pkgname, const char *id, double period);
-extern char *livebox_pinup(const char *pkgname, const char *id, int pinup);
-extern int livebox_system_event(const char *pkgname, const char *id, int event);
-extern int livebox_system_event_all(int event);
-
-extern int livebox_open_pd(const char *pkgname);
-extern int livebox_close_pd(const char *pkgname);
-
-extern int livebox_pause(const char *pkgname, const char *id);
-extern int livebox_resume(const char *pkgname, const char *id);
-
-extern int livebox_is_pinned_up(const char *pkgname, const char *id);
-
-extern const char *livebox_find_pkgname(const char *filename);
-/* End of a file */
typedef int (*adaptor_is_pinned_up_t)(const char *pkgname, const char *filename);
typedef int (*adaptor_system_event_t)(const char *pkgname, const char *filename, int type);
-extern const int DONE;
-extern const int NEED_TO_SCHEDULE;
-extern const int OUTPUT_UPDATED;
-extern const int NEED_TO_CREATE;
-extern const int NEED_TO_DESTROY;
-
-extern const int LB_SYS_EVENT_FONT_CHANGED;
-extern const int LB_SYS_EVENT_LANG_CHANGED;
-
struct instance {
struct so_item *item;
char *id;
Name: com.samsung.data-provider-slave
Summary: Slave data provider
-Version: 0.7.3
+Version: 0.7.5
Release: 1
Group: main/app
License: Samsung Proprietary License
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(evas)
+BuildRequires: pkgconfig(livebox)
%description
Loading livebox and managing their life-cycle to generate contents properly.
#include "debug.h"
#include "client.h"
#include "so_handler.h"
-#include "livebox.h"
+#include "lb.h"
#include "util.h"
static struct info {
arg->info.lb_create.skip_need_to_create,
arg->info.lb_create.abi);
- ret = livebox_create(arg->pkgname, arg->id,
+ ret = lb_create(arg->pkgname, arg->id,
arg->info.lb_create.content,
arg->info.lb_create.timeout,
arg->info.lb_create.has_script,
if (arg->info.lb_create.width > 0 && arg->info.lb_create.height > 0) {
if (*width != arg->info.lb_create.width || *height != arg->info.lb_create.height) {
int tmp;
- tmp = livebox_resize(arg->pkgname, arg->id, arg->info.lb_create.width, arg->info.lb_create.height);
+ tmp = lb_resize(arg->pkgname, arg->id, arg->info.lb_create.width, arg->info.lb_create.height);
DbgPrint("Resize[%dx%d] returns: %d\n", arg->info.lb_create.width, arg->info.lb_create.height, tmp);
}
}
- arg->info.lb_create.out_is_pinned_up = (livebox_is_pinned_up(arg->pkgname, arg->id) == 1);
+ arg->info.lb_create.out_is_pinned_up = (lb_is_pinned_up(arg->pkgname, arg->id) == 1);
}
return ret;
arg->info.lb_recreate.category,
arg->info.lb_recreate.abi);
- ret = livebox_create(arg->pkgname, arg->id,
+ ret = lb_create(arg->pkgname, arg->id,
arg->info.lb_recreate.content,
arg->info.lb_recreate.timeout,
arg->info.lb_recreate.has_script,
if (ret == 0) {
if (w != arg->info.lb_recreate.width || h != arg->info.lb_recreate.height) {
int tmp;
- tmp = livebox_resize(arg->pkgname, arg->id, arg->info.lb_recreate.width, arg->info.lb_recreate.height);
+ tmp = lb_resize(arg->pkgname, arg->id, arg->info.lb_recreate.width, arg->info.lb_recreate.height);
DbgPrint("Resize[%dx%d] returns: %d\n", arg->info.lb_recreate.width, arg->info.lb_recreate.height, tmp);
} else {
DbgPrint("No need to change the size: %dx%d\n", w, h);
}
- arg->info.lb_recreate.out_is_pinned_up = (livebox_is_pinned_up(arg->pkgname, arg->id) == 1);
+ arg->info.lb_recreate.out_is_pinned_up = (lb_is_pinned_up(arg->pkgname, arg->id) == 1);
}
return ret;
{
int ret;
DbgPrint("pkgname[%s] id[%s]\n", arg->pkgname, arg->id);
- ret = livebox_destroy(arg->pkgname, arg->id);
+ ret = lb_destroy(arg->pkgname, arg->id);
return ret;
}
info = arg->info.content_event.info;
DbgPrint("pkgname[%s] id[%s] emission[%s] source[%s]\n", arg->pkgname, arg->id, arg->info.content_event.emission, arg->info.content_event.source);
- ret = livebox_script_event(arg->pkgname, arg->id,
+ ret = lb_script_event(arg->pkgname, arg->id,
arg->info.content_event.emission, arg->info.content_event.source,
&info);
return ret;
arg->pkgname, arg->id,
arg->info.clicked.event, arg->info.clicked.timestamp,
arg->info.clicked.x, arg->info.clicked.y);
- ret = livebox_clicked(arg->pkgname, arg->id,
+ ret = lb_clicked(arg->pkgname, arg->id,
arg->info.clicked.event,
arg->info.clicked.timestamp, arg->info.clicked.x, arg->info.clicked.y);
info = arg->info.text_signal.info;
DbgPrint("pkgname[%s] id[%s] emission[%s] source[%s]\n", arg->pkgname, arg->id, arg->info.text_signal.emission, arg->info.text_signal.source);
- ret = livebox_script_event(arg->pkgname, arg->id,
+ ret = lb_script_event(arg->pkgname, arg->id,
arg->info.text_signal.emission, arg->info.text_signal.source,
&info);
int ret;
DbgPrint("pkgname[%s] id[%s] w[%d] h[%d]\n", arg->pkgname, arg->id, arg->info.resize.w, arg->info.resize.h);
- ret = livebox_resize(arg->pkgname, arg->id, arg->info.resize.w, arg->info.resize.h);
+ ret = lb_resize(arg->pkgname, arg->id, arg->info.resize.w, arg->info.resize.h);
return ret;
}
{
int ret;
DbgPrint("pkgname[%s] id[%s] period[%lf]\n", arg->pkgname, arg->id, arg->info.set_period.period);
- ret = livebox_set_period(arg->pkgname, arg->id, arg->info.set_period.period);
+ ret = lb_set_period(arg->pkgname, arg->id, arg->info.set_period.period);
return ret;
}
{
int ret;
DbgPrint("pkgname[%s] id[%s] cluster[%s] category[%s]\n", arg->pkgname, arg->id, arg->info.change_group.cluster, arg->info.change_group.category);
- ret = livebox_change_group(arg->pkgname, arg->id, arg->info.change_group.cluster, arg->info.change_group.category);
+ ret = lb_change_group(arg->pkgname, arg->id, arg->info.change_group.cluster, arg->info.change_group.category);
return ret;
}
static int method_pinup(struct event_arg *arg, void *data)
{
DbgPrint("pkgname[%s] id[%s] state[%d]\n", arg->pkgname, arg->id, arg->info.pinup.state);
- arg->info.pinup.content_info = livebox_pinup(arg->pkgname, arg->id, arg->info.pinup.state);
+ arg->info.pinup.content_info = lb_pinup(arg->pkgname, arg->id, arg->info.pinup.state);
return arg->info.pinup.content_info ? 0 : -ENOTSUP;
}
{
int ret;
DbgPrint("pkgname[%s] cluster[%s] category[%s]\n", arg->pkgname, arg->info.update_content.cluster, arg->info.update_content.category);
- ret = livebox_update_all(arg->pkgname, arg->info.update_content.cluster, arg->info.update_content.category);
+ ret = lb_update_all(arg->pkgname, arg->info.update_content.cluster, arg->info.update_content.category);
return ret;
}
static int method_pause(struct event_arg *arg, void *data)
{
- livebox_pause_all();
+ lb_pause_all();
if (s_info.ping_timer)
ecore_timer_freeze(s_info.ping_timer);
static int method_resume(struct event_arg *arg, void *data)
{
- livebox_resume_all();
+ lb_resume_all();
if (s_info.ping_timer)
ecore_timer_thaw(s_info.ping_timer);
return 0;
{
int ret;
- ret = livebox_open_pd(arg->pkgname);
+ ret = lb_open_pd(arg->pkgname);
DbgPrint("%s Open PD: %d\n", arg->pkgname, ret);
return 0;
{
int ret;
- ret = livebox_close_pd(arg->pkgname);
+ ret = lb_close_pd(arg->pkgname);
DbgPrint("%s Close PD: %d\n", arg->pkgname, ret);
return 0;
static int method_lb_pause(struct event_arg *arg, void *data)
{
- return livebox_pause(arg->pkgname, arg->id);
+ return lb_pause(arg->pkgname, arg->id);
}
static int method_lb_resume(struct event_arg *arg, void *data)
{
- return livebox_resume(arg->pkgname, arg->id);
+ return lb_resume(arg->pkgname, arg->id);
}
-int client_init(const char *name)
+HAPI int client_init(const char *name)
{
struct event_handler table = {
.lb_create = method_new,
return 0;
}
-int client_fini(void)
+HAPI int client_fini(void)
{
provider_fini();
return 0;
#include "conf.h"
-struct conf g_conf = {
+HAPI struct conf g_conf = {
.width = 0,
.height = 0,
.ping_time = 120.0f,
};
-int conf_init(void)
+HAPI int conf_init(void)
{
ecore_x_window_size_get(0, &g_conf.width, &g_conf.height);
return 0;
-int critical_log(const char *func, int line, const char *fmt, ...)
+HAPI int critical_log(const char *func, int line, const char *fmt, ...)
{
va_list ap;
int ret;
-int critical_log_init(const char *name)
+HAPI int critical_log_init(const char *name)
{
int namelen;
char *filename;
-int critical_log_fini(void)
+HAPI int critical_log_fini(void)
{
if (s_info.filename) {
free(s_info.filename);
return;
}
-int fault_init(void)
+HAPI int fault_init(void)
{
struct sigaction act;
return 0;
}
-int fault_fini(void)
+HAPI int fault_fini(void)
{
/*!
* \todo
return 0;
}
-int fault_mark_call(const char *pkgname, const char *filename, const char *funcname, int noalarm, int life_time)
+HAPI int fault_mark_call(const char *pkgname, const char *filename, const char *funcname, int noalarm, int life_time)
{
provider_send_call(pkgname, filename, funcname);
/*!
return 0;
}
-int fault_unmark_call(const char *pkgname, const char *filename, const char *funcname, int noalarm)
+HAPI int fault_unmark_call(const char *pkgname, const char *filename, const char *funcname, int noalarm)
{
if (!noalarm) {
/*!
#include <dlog.h>
#include <provider.h>
+#include <livebox.h>
#include "critical_log.h"
#include "debug.h"
#include "conf.h"
#include "so_handler.h"
-#include "livebox.h"
+#include "lb.h"
#include "update_monitor.h"
#include "fault.h"
#include "util.h"
if (so_is_updated(item->inst) <= 0) {
if (so_need_to_destroy(item->inst) == NEED_TO_DESTROY) {
provider_send_deleted(item->inst->item->pkgname, item->inst->id);
- livebox_destroy(item->inst->item->pkgname, item->inst->id);
+ lb_destroy(item->inst->item->pkgname, item->inst->id);
return ECORE_CALLBACK_CANCEL;
}
return 0;
}
-int livebox_init(void)
+HAPI int lb_init(void)
{
return 0;
}
-int livebox_fini(void)
+HAPI int lb_fini(void)
{
Eina_List *l;
Eina_List *n;
EINA_LIST_FOREACH_SAFE(s_info.item_list, l, n, item) {
provider_send_deleted(item->inst->item->pkgname, item->inst->id);
- livebox_destroy(item->inst->item->pkgname, item->inst->id);
+ lb_destroy(item->inst->item->pkgname, item->inst->id);
}
if (s_info.pending_timer) {
return 0;
}
+/*!
+ * \note
+ * Exported API for each liveboxes.
+ */
const char *livebox_find_pkgname(const char *filename)
{
Eina_List *l;
return NULL;
}
-int livebox_open_pd(const char *pkgname)
+HAPI int lb_open_pd(const char *pkgname)
{
Eina_List *l;
char *tmp;
return 0;
}
-int livebox_close_pd(const char *pkgname)
+HAPI int lb_close_pd(const char *pkgname)
{
Eina_List *l;
Eina_List *n;
return -ENOENT;
}
-int livebox_create(const char *pkgname, const char *id, const char *content_info, int timeout, int has_livebox_script, double period, const char *cluster, const char *category, int *w, int *h, double *priority, int skip_need_to_create, const char *abi, char **out_content, char **out_title)
+HAPI int lb_create(const char *pkgname, const char *id, const char *content_info, int timeout, int has_livebox_script, double period, const char *cluster, const char *category, int *w, int *h, double *priority, int skip_need_to_create, const char *abi, char **out_content, char **out_title)
{
struct instance *inst;
struct item *item;
return need_to_create;
}
-int livebox_destroy(const char *pkgname, const char *id)
+HAPI int lb_destroy(const char *pkgname, const char *id)
{
Eina_List *l;
struct instance *inst;
return 0;
}
-int livebox_resize(const char *pkgname, const char *id, int w, int h)
+HAPI int lb_resize(const char *pkgname, const char *id, int w, int h)
{
Eina_List *l;
struct instance *inst;
return 0;
}
-char *livebox_pinup(const char *pkgname, const char *id, int pinup)
+HAPI char *lb_pinup(const char *pkgname, const char *id, int pinup)
{
struct instance *inst;
char *ret;
return ret;
}
-int livebox_set_period(const char *pkgname, const char *id, double period)
+HAPI int lb_set_period(const char *pkgname, const char *id, double period)
{
Eina_List *l;
struct instance *inst;
return 0;
}
-int livebox_clicked(const char *pkgname, const char *id, const char *event, double timestamp, double x, double y)
+HAPI int lb_clicked(const char *pkgname, const char *id, const char *event, double timestamp, double x, double y)
{
Eina_List *l;
struct instance *inst;
return 0;
}
-int livebox_script_event(const char *pkgname, const char *id, const char *emission, const char *source, struct event_info *event_info)
+HAPI int lb_script_event(const char *pkgname, const char *id, const char *emission, const char *source, struct event_info *event_info)
{
Eina_List *l;
struct instance *inst;
return 0;
}
-int livebox_is_pinned_up(const char *pkgname, const char *id)
+HAPI int lb_is_pinned_up(const char *pkgname, const char *id)
{
Eina_List *l;
struct instance *inst;
return ret;
}
-int livebox_change_group(const char *pkgname, const char *id, const char *cluster, const char *category)
+HAPI int lb_change_group(const char *pkgname, const char *id, const char *cluster, const char *category)
{
Eina_List *l;
struct instance *inst;
return 0;
}
-int livebox_system_event(const char *pkgname, const char *id, int event)
+HAPI int lb_system_event(const char *pkgname, const char *id, int event)
{
Eina_List *l;
struct instance *inst;
return 0;
}
-int livebox_update_all(const char *pkgname, const char *cluster, const char *category)
+HAPI int lb_update_all(const char *pkgname, const char *cluster, const char *category)
{
Eina_List *l;
Eina_List *n;
return 0;
}
-int livebox_system_event_all(int event)
+HAPI int lb_system_event_all(int event)
{
Eina_List *l;
Eina_List *n;
continue;
DbgPrint("System event for %s (%d)\n", item->inst->id, event);
- livebox_system_event(item->inst->item->pkgname, item->inst->id, event);
+ lb_system_event(item->inst->item->pkgname, item->inst->id, event);
}
return 0;
}
-void livebox_pause_all(void)
+HAPI void lb_pause_all(void)
{
Eina_List *l;
struct item *item;
}
}
-void livebox_resume_all(void)
+HAPI void lb_resume_all(void)
{
Eina_List *l;
struct item *item;
}
}
-int livebox_pause(const char *pkgname, const char *id)
+HAPI int lb_pause(const char *pkgname, const char *id)
{
struct instance *inst;
Eina_List *l;
return 0;
}
-int livebox_resume(const char *pkgname, const char *id)
+HAPI int lb_resume(const char *pkgname, const char *id)
{
struct instance *inst;
Eina_List *l;
#include <livebox-service.h>
#include <provider.h>
#include <vconf.h>
+#include <livebox.h>
#include <context_subscribe.h>
#include "client.h"
#include "util.h"
#include "so_handler.h"
-#include "livebox.h"
+#include "lb.h"
/*!
* \NOTE
* \NOTE
* Try to update all liveboxes
*/
- livebox_system_event_all(LB_SYS_EVENT_FONT_CHANGED);
+ lb_system_event_all(LB_SYS_EVENT_FONT_CHANGED);
}
return ECORE_CALLBACK_PASS_ON;
static void app_language_changed(void *data)
{
- livebox_system_event_all(LB_SYS_EVENT_LANG_CHANGED);
+ lb_system_event_all(LB_SYS_EVENT_LANG_CHANGED);
}
static void app_service(service_h service, void *data)
int errno;
-const int LB_SYS_EVENT_FONT_CHANGED = 0x01;
-const int LB_SYS_EVENT_LANG_CHANGED = 0x02;
-
-const int DONE = 0x00;
-const int NEED_TO_SCHEDULE = 0x01;
-const int OUTPUT_UPDATED = 0x02;
-const int NEED_TO_CREATE = 0x01;
-const int NEED_TO_DESTROY = 0x01;
-
static struct info {
Eina_List *livebox_list;
} s_info = {
return NULL;
}
-struct instance *so_find_instance(const char *pkgname, const char *id)
+HAPI struct instance *so_find_instance(const char *pkgname, const char *id)
{
struct so_item *item;
return find_instance(item, id);
}
-int so_create(const char *pkgname, const char *id, const char *content_info, int timeout, int has_livebox_script, const char *cluster, const char *category, const char *abi, struct instance **out)
+HAPI int so_create(const char *pkgname, const char *id, const char *content_info, int timeout, int has_livebox_script, const char *cluster, const char *category, const char *abi, struct instance **out)
{
struct so_item *item;
struct instance *inst;
return ret;
}
-int so_destroy(struct instance *inst)
+HAPI int so_destroy(struct instance *inst)
{
struct so_item *item;
int ret;
return ret;
}
-char *so_pinup(struct instance *inst, int pinup)
+HAPI char *so_pinup(struct instance *inst, int pinup)
{
struct so_item *item;
char *ret;
return ret;
}
-int so_is_pinned_up(struct instance *inst)
+HAPI int so_is_pinned_up(struct instance *inst)
{
struct so_item *item;
int ret;
return ret;
}
-int so_is_updated(struct instance *inst)
+HAPI int so_is_updated(struct instance *inst)
{
struct so_item *item;
int ret;
return ret;
}
-int so_need_to_destroy(struct instance *inst)
+HAPI int so_need_to_destroy(struct instance *inst)
{
struct so_item *item;
int ret;
return ret;
}
-int so_update(struct instance *inst)
+HAPI int so_update(struct instance *inst)
{
struct so_item *item;
int ret;
return ret;
}
-int so_clicked(struct instance *inst, const char *event, double timestamp, double x, double y)
+HAPI int so_clicked(struct instance *inst, const char *event, double timestamp, double x, double y)
{
struct so_item *item;
int ret;
return ret;
}
-int so_script_event(struct instance *inst, const char *emission, const char *source, struct event_info *event_info)
+HAPI int so_script_event(struct instance *inst, const char *emission, const char *source, struct event_info *event_info)
{
struct so_item *item;
int ret;
return ret;
}
-int so_resize(struct instance *inst, int w, int h)
+HAPI int so_resize(struct instance *inst, int w, int h)
{
struct so_item *item;
int ret;
return ret;
}
-int so_create_needed(const char *pkgname, const char *cluster, const char *category, const char *abi)
+HAPI int so_create_needed(const char *pkgname, const char *cluster, const char *category, const char *abi)
{
struct so_item *item;
int ret;
return ret;
}
-int so_change_group(struct instance *inst, const char *cluster, const char *category)
+HAPI int so_change_group(struct instance *inst, const char *cluster, const char *category)
{
struct so_item *item;
int ret;
return ret;
}
-int so_get_output_info(struct instance *inst, int *w, int *h, double *priority, char **content, char **title)
+HAPI int so_get_output_info(struct instance *inst, int *w, int *h, double *priority, char **content, char **title)
{
struct so_item *item;
int ret;
return ret;
}
-int so_sys_event(struct instance *inst, int event)
+HAPI int so_sys_event(struct instance *inst, int event)
{
struct so_item *item;
int ret;
return ECORE_CALLBACK_RENEW;
}
-int update_monitor_init(void)
+HAPI int update_monitor_init(void)
{
s_info.ifd = inotify_init();
if (s_info.ifd < 0) {
return 0;
}
-int update_monitor_fini(void)
+HAPI int update_monitor_fini(void)
{
if (!s_info.handler) {
ErrPrint("Invalid fd handler\n");
return 0;
}
-int update_monitor_add_update_cb(const char *filename,
+HAPI int update_monitor_add_update_cb(const char *filename,
int (*cb)(const char *filename, void *data, int over), void *data)
{
struct cb_item *item;
return 0;
}
-int update_monitor_add_delete_cb(const char *filename,
+HAPI int update_monitor_add_delete_cb(const char *filename,
int (*cb)(const char *filename, void *data, int over), void *data)
{
struct cb_item *item;
return 0;
}
-void *update_monitor_del_update_cb(const char *filename,
+HAPI void *update_monitor_del_update_cb(const char *filename,
int (*cb)(const char *filename, void *data, int over))
{
Eina_List *l;
return NULL;
}
-void *update_monitor_del_delete_cb(const char *filename,
+HAPI void *update_monitor_del_delete_cb(const char *filename,
int (*cb)(const char *filename, void *data, int over))
{
Eina_List *l;
#include "conf.h"
#include "debug.h"
-int util_check_ext(const char *icon, const char *ext)
+HAPI int util_check_ext(const char *icon, const char *ext)
{
int len;
return *ext ? 0 : 1;
}
-double util_get_timestamp(void)
+HAPI double util_get_timestamp(void)
{
struct timeval tv;
return (double)tv.tv_sec + (double)tv.tv_usec / 1000000.0f;
}
-const char *util_basename(const char *name)
+HAPI const char *util_basename(const char *name)
{
int length;
* Just trying to find the nearest module.
* It could be wrong.
*/
-char *util_get_current_module(char **symbol)
+HAPI char *util_get_current_module(char **symbol)
{
int *stack;
Dl_info dinfo;
return ret;
}
-const char *util_uri_to_path(const char *uri)
+HAPI const char *util_uri_to_path(const char *uri)
{
int len;