# HG changeset patch # User Elliott Sales de Andrade # Date 1314931359 0 # Node ID ba74745ff179fe868859de9c8e676a613835a8f8 # Parent 32e8cdf1833cf93c793aabdd1e2731cee53df4bc Hide PurpleProxyInfo struct. diff -r 32e8cdf1833c -r ba74745ff179 ChangeLog.API --- 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 diff -r 32e8cdf1833c -r ba74745ff179 libpurple/protocols/yahoo/libymsg.c --- 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( diff -r 32e8cdf1833c -r ba74745ff179 libpurple/proxy.c --- 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; diff -r 32e8cdf1833c -r ba74745ff179 libpurple/proxy.h --- 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;