changeset 32476:ba74745ff179

Hide PurpleProxyInfo struct.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 02 Sep 2011 02:42:39 +0000
parents 32e8cdf1833c
children efe38e6319f2
files ChangeLog.API libpurple/protocols/yahoo/libymsg.c libpurple/proxy.c libpurple/proxy.h
diffstat 4 files changed, 13 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog.API	Fri Sep 02 01:58:56 2011 +0000
+++ b/ChangeLog.API	Fri Sep 02 02:42:39 2011 +0000
@@ -114,6 +114,7 @@
 		* struct _GtkIMHtmlFontDetail
 		* struct _PurpleMenuAction
 		* struct _PurplePounce
+		* struct _PurpleProxyInfo
 		* struct _PurpleRequestField
 		* struct _PurpleRoomlist
 		* struct _PurpleRoomlistField
--- a/libpurple/protocols/yahoo/libymsg.c	Fri Sep 02 01:58:56 2011 +0000
+++ b/libpurple/protocols/yahoo/libymsg.c	Fri Sep 02 02:42:39 2011 +0000
@@ -4476,7 +4476,7 @@
 		YAHOO_CLIENT_VERSION, yd->cookie_t, yd->cookie_y, strlen(validate_request_str), validate_request_str);
 
 	/* use whole URL if using HTTP Proxy */
-	if ((gc->account->proxy_info) && (gc->account->proxy_info->type == PURPLE_PROXY_HTTP))
+	if ((gc->account->proxy_info) && (purple_proxy_info_get_type(gc->account->proxy_info) == PURPLE_PROXY_HTTP))
 	    use_whole_url = TRUE;
 
 	url_data = purple_util_fetch_url_request_len(
--- a/libpurple/proxy.c	Fri Sep 02 01:58:56 2011 +0000
+++ b/libpurple/proxy.c	Fri Sep 02 02:42:39 2011 +0000
@@ -41,6 +41,16 @@
 #include "proxy.h"
 #include "util.h"
 
+struct _PurpleProxyInfo
+{
+	PurpleProxyType type;   /**< The proxy type.  */
+
+	char *host;           /**< The host.        */
+	int   port;           /**< The port number. */
+	char *username;       /**< The username.    */
+	char *password;       /**< The password.    */
+};
+
 struct _PurpleProxyConnectData {
 	void *handle;
 	PurpleProxyConnectFunction connect_cb;
--- a/libpurple/proxy.h	Fri Sep 02 01:58:56 2011 +0000
+++ b/libpurple/proxy.h	Fri Sep 02 02:42:39 2011 +0000
@@ -47,16 +47,7 @@
 /**
  * Information on proxy settings.
  */
-typedef struct
-{
-	PurpleProxyType type;   /**< The proxy type.  */
-
-	char *host;           /**< The host.        */
-	int   port;           /**< The port number. */
-	char *username;       /**< The username.    */
-	char *password;       /**< The password.    */
-
-} PurpleProxyInfo;
+typedef struct _PurpleProxyInfo PurpleProxyInfo;
 
 typedef struct _PurpleProxyConnectData PurpleProxyConnectData;