diff options
-rw-r--r-- | include/shortcut.h | 2 | ||||
-rw-r--r-- | packaging/libshortcut.spec (renamed from packaging/shortcut.spec) | 2 | ||||
-rw-r--r-- | src/main.c | 7 |
3 files changed, 9 insertions, 2 deletions
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 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 @@ -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 */ |