From 925238dcac4d7db7070214ebd526b14d5adaee54 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Wed, 22 Aug 2012 16:41:34 +0900 Subject: [PATCH] Add new API Change package name Change-Id: I93cd647c7b640cb9497625f10c84daaf4a3c5224 --- include/shortcut.h | 2 ++ packaging/{shortcut.spec => libshortcut.spec} | 2 +- src/main.c | 7 ++++++- 3 files changed, 9 insertions(+), 2 deletions(-) rename packaging/{shortcut.spec => libshortcut.spec} (97%) diff --git a/include/shortcut.h b/include/shortcut.h index f5264c4..b488faf 100644 --- a/include/shortcut.h +++ b/include/shortcut.h @@ -211,6 +211,8 @@ extern int shortcut_set_request_cb(request_cb_t request_cb, void *data); */ extern int shortcut_add_to_home(const char *pkgname, const char *name, int type, const char *content_info, const char *icon, result_cb_t result_cb, void *data); +extern int add_to_home_shortcut(const char *pkgname, const char *name, int type, const char *content_info, const char *icon, result_cb_t result_cb, void *data); + #ifdef __cplusplus } #endif diff --git a/packaging/shortcut.spec b/packaging/libshortcut.spec similarity index 97% rename from packaging/shortcut.spec rename to packaging/libshortcut.spec index 6214c75..6af15e5 100644 --- a/packaging/shortcut.spec +++ b/packaging/libshortcut.spec @@ -1,4 +1,4 @@ -Name: shortcut +Name: libshortcut Summary: Shortcut add feature supporting library Version: 0.0.5 Release: 0 diff --git a/src/main.c b/src/main.c index 50c151f..764a92e 100644 --- a/src/main.c +++ b/src/main.c @@ -701,7 +701,7 @@ EAPI int shortcut_set_request_cb(request_cb_t request_cb, void *data) -EAPI int shortcut_add_to_home(const char *pkgname, const char *name, int type, const char *content_info, const char *icon, result_cb_t result_cb, void *data) +EAPI int add_to_home_shortcut(const char *pkgname, const char *name, int type, const char *content_info, const char *icon, result_cb_t result_cb, void *data) { struct packet *packet; int pkgname_len; @@ -763,6 +763,11 @@ EAPI int shortcut_add_to_home(const char *pkgname, const char *name, int type, c return 0; } +EAPI int shortcut_add_to_home(const char *pkgname, const char *name, int type, const char *content_info, const char *icon, result_cb_t result_cb, void *data) +{ + return add_to_home_shortcut(pkgname, name, type, content_info, icon, result_cb, data); +} + /* End of a file */ -- 2.7.4