changeset 6241:9ce44a7f9ae7

[gaim-migrate @ 6735] We now initialize FT's preferences. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 20 Jul 2003 03:44:39 +0000
parents ac191233b816
children f0b0c5bca588
files src/core.c src/ft.c src/ft.h
diffstat 3 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/core.c	Sun Jul 20 03:30:43 2003 +0000
+++ b/src/core.c	Sun Jul 20 03:44:39 2003 +0000
@@ -25,6 +25,7 @@
 #include "conversation.h"
 #include "core.h"
 #include "debug.h"
+#include "ft.h"
 #include "plugin.h"
 #include "pounce.h"
 #include "prefs.h"
@@ -75,6 +76,7 @@
 	gaim_proxy_init();
 	gaim_sound_init();
 	gaim_pounces_init();
+	gaim_xfer_init();
 
 	if (ops != NULL && ops->ui_init != NULL)
 		ops->ui_init();
--- a/src/ft.c	Sun Jul 20 03:30:43 2003 +0000
+++ b/src/ft.c	Sun Jul 20 03:44:39 2003 +0000
@@ -23,6 +23,7 @@
 #include "internal.h"
 #include "ft.h"
 #include "notify.h"
+#include "prefs.h"
 #include "proxy.h"
 
 static GaimXferUiOps *xfer_ui_ops = NULL;
@@ -697,6 +698,13 @@
 }
 
 void
+gaim_xfer_init(void)
+{
+	gaim_prefs_add_none("/core/ft");
+	gaim_prefs_add_string("/core/ft/public_ip", "");
+}
+
+void
 gaim_set_xfer_ui_ops(GaimXferUiOps *ops)
 {
 	g_return_if_fail(ops != NULL);
--- a/src/ft.h	Sun Jul 20 03:30:43 2003 +0000
+++ b/src/ft.h	Sun Jul 20 03:44:39 2003 +0000
@@ -462,6 +462,11 @@
  */
 void gaim_xfer_error(GaimXferType type, const char *who, const char *msg);
 
+/**
+ * Initializes the file transfer subsystem.
+ */
+void gaim_xfer_init(void);
+
 /*@}*/
 
 /**************************************************************************/