svnno****@sourc*****
svnno****@sourc*****
Thu Mar 22 13:00:15 JST 2007
Revision: 2947 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=2947 Author: ikezoe Date: 2007-03-22 13:00:14 +0900 (Thu, 22 Mar 2007) Log Message: ----------- * module/embed/gecko/mozilla.cpp, module/embed/gecko/mozilla-prefs.cpp: Remove extern "C". Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/module/embed/gecko/mozilla-prefs.cpp kazehakase/trunk/module/embed/gecko/mozilla.cpp Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-03-22 03:59:01 UTC (rev 2946) +++ kazehakase/trunk/ChangeLog 2007-03-22 04:00:14 UTC (rev 2947) @@ -2,6 +2,8 @@ * src/Makefile.am: Add LDFLAGS=-R$(MOZILLA_HOME). It's tentavie. We should set this value in module/embed/gecko/Makefile.am: + * module/embed/gecko/mozilla.cpp, + module/embed/gecko/mozilla-prefs.cpp: Remove extern "C". 2007-03-22 Kouhei Sutou <kou****@cozmi*****> Modified: kazehakase/trunk/module/embed/gecko/mozilla-prefs.cpp =================================================================== --- kazehakase/trunk/module/embed/gecko/mozilla-prefs.cpp 2007-03-22 03:59:01 UTC (rev 2946) +++ kazehakase/trunk/module/embed/gecko/mozilla-prefs.cpp 2007-03-22 04:00:14 UTC (rev 2947) @@ -45,7 +45,7 @@ #include "kz-proxy-item.h" -extern "C" gboolean +gboolean mozilla_prefs_init (void) { gchar *full_path; @@ -87,7 +87,7 @@ } -extern "C" void +void mozilla_prefs_set (KzProfile *profile) { char *value; @@ -164,7 +164,7 @@ } -extern "C" gboolean +gboolean mozilla_prefs_get_string(const char *preference_name, char **value) { g_return_val_if_fail(preference_name != NULL, FALSE); @@ -186,7 +186,7 @@ } -extern "C" gboolean +gboolean mozilla_prefs_get_int(const char *preference_name, int *value) { g_return_val_if_fail(preference_name != NULL, FALSE); @@ -208,7 +208,7 @@ } -extern "C" gboolean +gboolean mozilla_prefs_get_boolean(const char *preference_name, gboolean *value) { g_return_val_if_fail(preference_name != NULL, FALSE); @@ -234,7 +234,7 @@ // this function is picked from galeon-1.2.7 // mozilla_preference_set: set a string mozilla preference // -extern "C" gboolean +gboolean mozilla_prefs_set_string(const char *preference_name, const char *new_value) { g_return_val_if_fail(preference_name != NULL, FALSE); @@ -262,7 +262,7 @@ // this function is picked from galeon-1.2.7 // mozilla_preference_set_boolean: set a boolean mozilla preference // -extern "C" gboolean +gboolean mozilla_prefs_set_boolean (const char *preference_name, gboolean new_boolean_value) { @@ -288,7 +288,7 @@ // this function is picked from galeon-1.2.7 // mozilla_preference_set_int: set an integer mozilla preference // -extern "C" gboolean +gboolean mozilla_prefs_set_int (const char *preference_name, int new_int_value) { g_return_val_if_fail(preference_name != NULL, FALSE); @@ -401,7 +401,7 @@ } -extern "C" void +void mozilla_prefs_set_use_proxy (gboolean use) { if (use) @@ -411,7 +411,7 @@ } -extern "C" void +void mozilla_prefs_set_proxy (KzProxyItem *item) { gboolean use_same_proxy; Modified: kazehakase/trunk/module/embed/gecko/mozilla.cpp =================================================================== --- kazehakase/trunk/module/embed/gecko/mozilla.cpp 2007-03-22 03:59:01 UTC (rev 2946) +++ kazehakase/trunk/module/embed/gecko/mozilla.cpp 2007-03-22 04:00:14 UTC (rev 2947) @@ -252,7 +252,7 @@ } -extern "C" void +void mozilla_init (KzProfile *profile) { GtkMozEmbedSingle *single = NULL; @@ -286,14 +286,14 @@ } -extern "C" void +void mozilla_exit (void) { gtk_moz_embed_pop_startup(); } -extern "C" gboolean +gboolean mozilla_get_passwords (GList **passwords) { nsresult result = NS_ERROR_FAILURE;