diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-11-02 11:56:07 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-11-02 11:56:07 +0000 |
commit | bddb4823743f012b5905f553cbe4f3c6575361b4 (patch) | |
tree | 6d33787943262104fd4df86aa13e1c16b1b7babd /src/plugin.c | |
parent | 68379640644a6ba3870e2e230687d6a19946e008 (diff) |
merged plug-in update check and automatic update patch.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2707 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c index baead872..6a656f06 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -1080,6 +1080,22 @@ const gchar *syl_plugin_update_check_get_check_url(void) return SAFE_CALL_RET(func); } +void syl_plugin_update_check_set_download_url(const gchar *url) +{ + void (*func)(const gchar *); + + func = syl_plugin_lookup_symbol("update_check_set_download_url"); + SAFE_CALL_ARG1(func, url); +} + +const gchar *syl_plugin_update_check_get_download_url(void) +{ + const gchar * (*func)(void); + + func = syl_plugin_lookup_symbol("update_check_get_download_url"); + return SAFE_CALL_RET(func); +} + void syl_plugin_update_check_set_jump_url(const gchar *url) { void (*func)(const gchar *); @@ -1096,6 +1112,38 @@ const gchar *syl_plugin_update_check_get_jump_url(void) return SAFE_CALL_RET(func); } +void syl_plugin_update_check_set_check_plugin_url(const gchar *url) +{ + void (*func)(const gchar *); + + func = syl_plugin_lookup_symbol("update_check_set_check_plugin_url"); + SAFE_CALL_ARG1(func, url); +} + +const gchar *syl_plugin_update_check_get_check_plugin_url(void) +{ + const gchar * (*func)(void); + + func = syl_plugin_lookup_symbol("update_check_get_check_plugin_url"); + return SAFE_CALL_RET(func); +} + +void syl_plugin_update_check_set_jump_plugin_url(const gchar *url) +{ + void (*func)(const gchar *); + + func = syl_plugin_lookup_symbol("update_check_set_jump_plugin_url"); + SAFE_CALL_ARG1(func, url); +} + +const gchar *syl_plugin_update_check_get_jump_plugin_url(void) +{ + const gchar * (*func)(void); + + func = syl_plugin_lookup_symbol("update_check_get_jump_plugin_url"); + return SAFE_CALL_RET(func); +} + gint syl_plugin_alertpanel_full(const gchar *title, const gchar *message, gint type, gint default_value, gboolean can_disable, |