changeset 731:645849c1e725 trunk

[svn] - add a (hidden for now) configuration option, use_local_ip and local_ip which plugins can use to bind to a specific IP/interface.
author nenolod
date Mon, 26 Feb 2007 03:38:03 -0800
parents 74a46ac77c97
children a3ca00f30af5
files ChangeLog src/curl/curl.c
diffstat 2 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Feb 25 23:22:16 2007 -0800
+++ b/ChangeLog	Mon Feb 26 03:38:03 2007 -0800
@@ -1,3 +1,12 @@
+2007-02-26 07:22:16 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [1558]
+  - now fileinfo dialog shows "Unknown" instead of "Blues" if genre name isn't specified.
+  - when "Unknown" is specified in fileinfo dialog, the dialog removes TCON frame.
+  
+  trunk/src/madplug/fileinfo.c |   37 +++++++++++++++++++++++++++++++------
+  1 file changed, 31 insertions(+), 6 deletions(-)
+
+
 2007-02-26 01:41:03 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1556]
   - properly report if madplug will not be built.
--- a/src/curl/curl.c	Sun Feb 25 23:22:16 2007 -0800
+++ b/src/curl/curl.c	Mon Feb 26 03:38:03 2007 -0800
@@ -80,6 +80,8 @@
     gchar *proxy_host;
     gchar *proxy_auth;
   } proxy_info;
+  
+  gchar *local_ip;
 };
 
 VFSConstructor curl_const;
@@ -559,6 +561,14 @@
 
     db = bmp_cfg_db_open();
 
+    bmp_cfg_db_get_bool(db, NULL, "use_local_ip", &tmp);
+    if (tmp == TRUE)
+    {
+      bmp_cfg_db_get_string(db, NULL, "local_ip", &handle->local_ip);
+      curl_easy_setopt(handle->curl, CURLOPT_INTERFACE, handle->local_ip);
+    }
+    tmp = FALSE;
+
     bmp_cfg_db_get_bool(db, NULL, "use_proxy", &tmp);
     if (tmp == TRUE)
     {
@@ -635,6 +645,9 @@
         g_slist_free(handle->stream_stack);
       curl_easy_cleanup(handle->curl);
 
+      if (handle->local_ip != NULL)
+        g_free(handle->local_ip);
+
       if (handle->proxy_info.proxy_host != NULL)
         g_free(handle->proxy_info.proxy_host);