adium 2542:21110a07d6d8: Zac West is now co-lead developer; blog...
commits at adium.im
commits at adium.im
Sat Jul 25 15:30:25 UTC 2009
details: http://hg.adium.im/adium/rev/21110a07d6d8
revision: 2542:21110a07d6d8
author: Evan Schoenberg
date: Sat Jul 25 10:31:12 2009 -0500
Zac West is now co-lead developer; blog post is up at http://adium.im/blog/2009/07/zac-west-co-lead-developer/
Subject: adium 2543:60ce170f7f5e: Merge
details: http://hg.adium.im/adium/rev/60ce170f7f5e
revision: 2543:60ce170f7f5e
author: Evan Schoenberg
date: Sat Jul 25 10:32:39 2009 -0500
Merge
diffs (truncated from 2112 to 1000 lines):
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Adium.xcodeproj/project.pbxproj
--- a/Adium.xcodeproj/project.pbxproj Wed Jul 08 20:20:05 2009 -0500
+++ b/Adium.xcodeproj/project.pbxproj Sat Jul 25 10:32:39 2009 -0500
@@ -172,6 +172,8 @@
11CA00110C35EC5200A6BB8D /* SS_PrefsController.h in Headers */ = {isa = PBXBuildFile; fileRef = 344836920BC8510B0083723B /* SS_PrefsController.h */; settings = {ATTRIBUTES = (Public, ); }; };
11CA00120C35EC5200A6BB8D /* SS_PrefsController.m in Sources */ = {isa = PBXBuildFile; fileRef = 344836900BC8510B0083723B /* SS_PrefsController.m */; };
11D135D90FBE4C65000B0A5E /* AITwitterAccountView.nib in Resources */ = {isa = PBXBuildFile; fileRef = 11D135D80FBE4C65000B0A5E /* AITwitterAccountView.nib */; };
+ 11D9156F0FFC0FEB00B39713 /* AIImageShackImageUploader.m in Sources */ = {isa = PBXBuildFile; fileRef = 11D915580FFC0E9C00B39713 /* AIImageShackImageUploader.m */; };
+ 11D915720FFC100700B39713 /* AIGenericMultipartImageUploader.m in Sources */ = {isa = PBXBuildFile; fileRef = 11D915710FFC100700B39713 /* AIGenericMultipartImageUploader.m */; };
11E786810F8860210014612E /* AIJumpControlPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 11E7867F0F8860210014612E /* AIJumpControlPlugin.m */; };
11EE1B4D0CDCFAF40097F246 /* oscar-adium.c in Sources */ = {isa = PBXBuildFile; fileRef = 11EE1B490CDCFAF40097F246 /* oscar-adium.c */; };
11EE1B4E0CDCFAF40097F246 /* oscar-adium.h in Headers */ = {isa = PBXBuildFile; fileRef = 11EE1B4A0CDCFAF40097F246 /* oscar-adium.h */; };
@@ -1974,6 +1976,10 @@
11D135F10FBE4CA6000B0A5E /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = zh_CN; path = "Plugins/Twitter Plugin/zh_CN.lproj/AITwitterAccountView.nib"; sourceTree = "<group>"; };
11D135F20FBE4CA9000B0A5E /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = zh_TW; path = "Plugins/Twitter Plugin/zh_TW.lproj/AITwitterAccountView.nib"; sourceTree = "<group>"; };
11D135F30FBE4CB6000B0A5E /* en */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = en; path = "Plugins/Twitter Plugin/en.lproj/AITwitterAccountView.nib"; sourceTree = "<group>"; };
+ 11D915570FFC0E9C00B39713 /* AIImageShackImageUploader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AIImageShackImageUploader.h; path = "Plugins/Image Uploading Plugin/AIImageShackImageUploader.h"; sourceTree = "<group>"; };
+ 11D915580FFC0E9C00B39713 /* AIImageShackImageUploader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AIImageShackImageUploader.m; path = "Plugins/Image Uploading Plugin/AIImageShackImageUploader.m"; sourceTree = "<group>"; };
+ 11D915700FFC100700B39713 /* AIGenericMultipartImageUploader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AIGenericMultipartImageUploader.h; path = "Plugins/Image Uploading Plugin/AIGenericMultipartImageUploader.h"; sourceTree = "<group>"; };
+ 11D915710FFC100700B39713 /* AIGenericMultipartImageUploader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AIGenericMultipartImageUploader.m; path = "Plugins/Image Uploading Plugin/AIGenericMultipartImageUploader.m"; sourceTree = "<group>"; };
11E7867F0F8860210014612E /* AIJumpControlPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AIJumpControlPlugin.m; path = "Plugins/Dual Window Interface/AIJumpControlPlugin.m"; sourceTree = "<group>"; };
11E786800F8860210014612E /* AIJumpControlPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AIJumpControlPlugin.h; path = "Plugins/Dual Window Interface/AIJumpControlPlugin.h"; sourceTree = "<group>"; };
11EE1B490CDCFAF40097F246 /* oscar-adium.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "oscar-adium.c"; sourceTree = "<group>"; };
@@ -4947,6 +4953,10 @@
11BE28DE0FCC7D2B000E6A10 /* AIImageUploaderPlugin.m */,
11BE28980FCC7C13000E6A10 /* AIPicImImageUploader.h */,
11BE28990FCC7C13000E6A10 /* AIPicImImageUploader.m */,
+ 11D915570FFC0E9C00B39713 /* AIImageShackImageUploader.h */,
+ 11D915580FFC0E9C00B39713 /* AIImageShackImageUploader.m */,
+ 11D915700FFC100700B39713 /* AIGenericMultipartImageUploader.h */,
+ 11D915710FFC100700B39713 /* AIGenericMultipartImageUploader.m */,
);
name = "Image Uploading";
sourceTree = "<group>";
@@ -10185,6 +10195,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ 11D9156F0FFC0FEB00B39713 /* AIImageShackImageUploader.m in Sources */,
111E89010F93FE3900A5F18B /* AIRealNameTooltip.m in Sources */,
111E89020F93FE3900A5F18B /* AIUserHostTooltip.m in Sources */,
111256070F8DA2BF00E76177 /* AWEzv.m in Sources */,
@@ -10530,6 +10541,7 @@
11BE29680FCCA9E3000E6A10 /* AIImageUploaderWindowController.m in Sources */,
1197F6710FCF8D180032F19B /* AITwitterStatusFollowup.m in Sources */,
112939100FD5AE1400FA8F53 /* AIConfirmationsAdvancedPreferences.m in Sources */,
+ 11D915720FFC100700B39713 /* AIGenericMultipartImageUploader.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/account.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/account.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/account.h Sat Jul 25 10:32:39 2009 -0500
@@ -459,6 +459,16 @@
void purple_account_clear_settings(PurpleAccount *account);
/**
+ * Removes an account-specific setting by name.
+ *
+ * @param account The account.
+ * @param setting The setting to remove.
+ *
+ * @since 2.6.0
+ */
+void purple_account_remove_setting(PurpleAccount *account, const char *setting);
+
+/**
* Sets a protocol-specific integer setting for an account.
*
* @param account The account.
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/blist.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/blist.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/blist.h Sat Jul 25 10:32:39 2009 -0500
@@ -235,6 +235,7 @@
* Creates a new buddy list
*
* @return The new buddy list.
+ * @deprecated In 3.0.0, this will be handled by purple_blist_init()
*/
PurpleBuddyList *purple_blist_new(void);
@@ -242,6 +243,7 @@
* Sets the main buddy list.
*
* @param blist The buddy list you want to use.
+ * @deprecated In 3.0.0, this will be handled by purple_blist_init()
*/
void purple_set_blist(PurpleBuddyList *blist);
@@ -383,6 +385,10 @@
/**
* Destroys the buddy list window.
+ *
+ * @deprecated The UI is responsible for cleaning up the
+ * PurpleBuddyList->ui_data. purple_blist_uninit() will free the
+ * PurpleBuddyList* itself.
*/
void purple_blist_destroy(void);
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/buddyicon.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/buddyicon.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/buddyicon.h Sat Jul 25 10:32:39 2009 -0500
@@ -189,8 +189,6 @@
* takes ownership of and will free.
* @param icon_len The length of the icon data.
* @param checksum A protocol checksum from the prpl or @c NULL.
- *
- * @return The buddy icon set, or NULL if no icon was set.
*/
void
purple_buddy_icons_set_for_user(PurpleAccount *account, const char *username,
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/contact.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/contact.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/contact.h Sat Jul 25 10:32:39 2009 -0500
@@ -232,6 +232,17 @@
"</contactInfo>"\
"</Contact>"
+#define MSN_CONTACT_INVITE_MESSAGE_XML \
+ "<MessengerMemberInfo>"\
+ "<PendingAnnotations>"\
+ "<Annotation>"\
+ "<Name>MSN.IM.InviteMessage</Name>"\
+ "<Value>%s</Value>"\
+ "</Annotation>"\
+ "</PendingAnnotations>"\
+ "<DisplayName>%s</DisplayName>"\
+ "</MessengerMemberInfo>"
+
#define MSN_ADD_CONTACT_TEMPLATE "<?xml version=\"1.0\" encoding=\"utf-8\"?>"\
"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\""\
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\""\
@@ -290,6 +301,7 @@
"<fGenerateMissingQuickName>true</fGenerateMissingQuickName>"\
"<EnableAllowListManagement>true</EnableAllowListManagement>"\
"</groupContactAddOptions>"\
+ "%s"\
"</ABGroupContactAdd>"\
"</soap:Body>"\
"</soap:Envelope>"
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/core.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/core.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/core.h Sat Jul 25 10:32:39 2009 -0500
@@ -188,7 +188,9 @@
* <dd>the UI's development/support website, such as http://developer.pidgin.im.</dd>
*
* <dt><tt>client_type</tt></dt>
- * <dd>the type of UI (pc, console, phone, handheld, web, bot)</dd>
+ * <dd>the type of UI. Possible values include 'pc', 'console', 'phone',
+ * 'handheld', 'web', and 'bot'. These values are compared
+ * programmatically and should not be localized.</dd>
*
* </dl>
*
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/debug.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/debug.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/debug.h Sat Jul 25 10:32:39 2009 -0500
@@ -151,10 +151,50 @@
/**
* Check if console debug output is enabled.
*
- * @return TRUE if debuggin is enabled, FALSE if it is not.
+ * @return TRUE if debugging is enabled, FALSE if it is not.
*/
gboolean purple_debug_is_enabled(void);
+/**
+ * Enable or disable verbose debugging. This ordinarily should only be called
+ * by #purple_debug_init, but there are cases where this can be useful for
+ * plugins.
+ *
+ * @param verbose TRUE to enable verbose debugging or FALSE to disable it.
+ *
+ * @since 2.6.0
+ */
+void purple_debug_set_verbose(gboolean verbose);
+
+/**
+ * Check if verbose logging is enabled.
+ *
+ * @return TRUE if verbose debugging is enabled, FALSE if it is not.
+ *
+ * @since 2.6.0
+ */
+gboolean purple_debug_is_verbose(void);
+
+/**
+ * Enable or disable verbose debugging. This ordinarily should only be called
+ * by #purple_debug_init, but there are cases where this can be useful for
+ * plugins.
+ *
+ * @param unsafe TRUE to enable verbose debugging or FALSE to disable it.
+ *
+ * @since 2.6.0
+ */
+void purple_debug_set_unsafe(gboolean unsafe);
+
+/**
+ * Check if unsafe debugging is enabled.
+ *
+ * @return TRUE if verbose debugging is enabled, FALSE if it is not.
+ *
+ * @since 2.6.0
+ */
+gboolean purple_debug_is_unsafe(void);
+
/*@}*/
/**************************************************************************/
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/dnssrv.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/dnssrv.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/dnssrv.h Sat Jul 25 10:32:39 2009 -0500
@@ -41,15 +41,21 @@
int pref;
};
+/**
+ * @param resp An array of PurpleSrvResponse of size results. The array
+ * is sorted based on the order described in the DNS SRV RFC.
+ * Users of this API should try each record in resp in order,
+ * starting at the beginning.
+ */
typedef void (*PurpleSrvCallback)(PurpleSrvResponse *resp, int results, gpointer data);
/**
* Callback that returns the data retrieved from a DNS TXT lookup.
*
- * @param responses A GSList of PurpleTxtResponse objects.
+ * @param responses A GList of PurpleTxtResponse objects.
* @param data The extra data passed to purple_txt_resolve.
*/
-typedef void (*PurpleTxtCallback)(GSList *responses, gpointer data);
+typedef void (*PurpleTxtCallback)(GList *responses, gpointer data);
/**
* Queries an SRV record.
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/history.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/history.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/history.h Sat Jul 25 10:32:39 2009 -0500
@@ -24,7 +24,8 @@
#ifndef _MSN_HISTORY_H
#define _MSN_HISTORY_H
-#define MSN_HIST_ELEMS 0x30
+#define MSN_NS_HIST_ELEMS 0x300
+#define MSN_SB_HIST_ELEMS 0x30
typedef struct _MsnHistory MsnHistory;
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/internal.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/internal.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/internal.h Sat Jul 25 10:32:39 2009 -0500
@@ -148,6 +148,14 @@
# endif
#endif
+#ifndef G_MAXSSIZE
+# if GLIB_SIZEOF_LONG == 8
+# define G_MAXSSIZE ((gssize) 0x7fffffffffffffff)
+# else
+# define G_MAXSSIZE ((gssize) 0x7fffffff)
+# endif
+#endif
+
#if GLIB_CHECK_VERSION(2,6,0)
# include <glib/gstdio.h>
#endif
@@ -222,6 +230,16 @@
# endif
#endif
+#ifdef HAVE_CONFIG_H
+#if SIZEOF_TIME_T == 4
+# define PURPLE_TIME_T_MODIFIER "lu"
+#elif SIZEOF_TIME_T == 8
+# define PURPLE_TIME_T_MODIFIER "zu"
+#else
+#error Unknown size of time_t
+#endif
+#endif
+
#include <glib-object.h>
#ifndef G_DEFINE_TYPE
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/jabber.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/jabber.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/jabber.h Sat Jul 25 10:32:39 2009 -0500
@@ -24,8 +24,8 @@
typedef enum {
JABBER_CAP_NONE = 0,
- JABBER_CAP_XHTML = 1 << 0,
- JABBER_CAP_COMPOSING = 1 << 1,
+/* JABBER_CAP_XHTML = 1 << 0, */
+/* JABBER_CAP_COMPOSING = 1 << 1, */
JABBER_CAP_SI = 1 << 2,
JABBER_CAP_SI_FILE_XFER = 1 << 3,
JABBER_CAP_BYTESTREAMS = 1 << 4,
@@ -116,7 +116,6 @@
char *expected_rspauth;
GHashTable *buddies;
- gboolean roster_parsed;
/*
* This boolean was added to eliminate a heinous bug where we would
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/jutil.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/jutil.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/jutil.h Sat Jul 25 10:32:39 2009 -0500
@@ -28,6 +28,8 @@
char *resource;
} JabberID;
+#include "jabber.h"
+
JabberID* jabber_id_new(const char *str);
void jabber_id_free(JabberID *jid);
@@ -43,7 +45,7 @@
gboolean jabber_is_own_account(JabberStream *js, const char *jid);
gboolean jabber_nodeprep_validate(const char *);
-gboolean jabber_nameprep_validate(const char *);
+gboolean jabber_domain_validate(const char *);
gboolean jabber_resourceprep_validate(const char *);
PurpleConversation *jabber_find_unnormalized_conv(const char *name, PurpleAccount *account);
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/libymsg.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/libymsg.h Sat Jul 25 10:32:39 2009 -0500
@@ -0,0 +1,359 @@
+/**
+ * @file libymsg.h The Yahoo! and Yahoo! JAPAN Protocol Plugins
+ *
+ * purple
+ *
+ * Purple is the legal property of its developers, whose names are too numerous
+ * to list here. Please refer to the COPYRIGHT file distributed with this
+ * source distribution.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
+ */
+
+#ifndef _LIBYMSG_H_
+#define _LIBYMSG_H_
+
+#include "circbuffer.h"
+#include "cmds.h"
+#include "prpl.h"
+
+#define YAHOO_PAGER_HOST "scsa.msg.yahoo.com"
+#define YAHOO_PAGER_PORT 5050
+#define YAHOO_PAGER_PORT_P2P 5101
+#define YAHOO_LOGIN_URL "https://login.yahoo.com/config/pwtoken_login?src=ymsgr&ts=&token=%s"
+#define YAHOO_TOKEN_URL "https://login.yahoo.com/config/pwtoken_get?src=ymsgr&ts=&login=%s&passwd=%s&chal=%s"
+#define YAHOO_P2P_KEEPALIVE_SECS 300
+#define YAHOO_P2P_SERVER_TIMEOUT 10
+#define YAHOO_PROFILE_URL "http://profiles.yahoo.com/"
+#define YAHOO_MAIL_URL "http://rd.yahoo.com/messenger/client/?http://mail.yahoo.com/"
+#define YAHOO_XFER_HOST "filetransfer.msg.yahoo.com"
+#define YAHOO_XFER_PORT 80
+#define YAHOO_XFER_RELAY_HOST "relay.msg.yahoo.com"
+#define YAHOO_XFER_RELAY_PORT 80
+#define YAHOO_ROOMLIST_URL "http://insider.msg.yahoo.com/ycontent/"
+#define YAHOO_ROOMLIST_LOCALE "us"
+/* really we should get the list of servers from
+ http://update.messenger.yahoo.co.jp/servers.html */
+#define YAHOOJP_PAGER_HOST "cs.yahoo.co.jp"
+#define YAHOOJP_TOKEN_URL "https://login.yahoo.co.jp/config/pwtoken_get?src=ymsgr&ts=&login=%s&passwd=%s&chal=%s"
+#define YAHOOJP_LOGIN_URL "https://login.yahoo.co.jp/config/pwtoken_login?src=ymsgr&ts=&token=%s"
+#define YAHOOJP_PROFILE_URL "http://profiles.yahoo.co.jp/"
+#define YAHOOJP_MAIL_URL "http://mail.yahoo.co.jp/"
+#define YAHOOJP_XFER_HOST "filetransfer.msg.yahoo.co.jp"
+#define YAHOOJP_WEBCAM_HOST "wc.yahoo.co.jp"
+/* not sure, must test: */
+#define YAHOOJP_XFER_RELAY_HOST "relay.msg.yahoo.co.jp"
+#define YAHOOJP_XFER_RELAY_PORT 80
+#define YAHOOJP_ROOMLIST_URL "http://insider.msg.yahoo.co.jp/ycontent/"
+#define YAHOOJP_ROOMLIST_LOCALE "ja"
+
+#define YAHOO_AUDIBLE_URL "http://us.dl1.yimg.com/download.yahoo.com/dl/aud"
+
+#define WEBMESSENGER_URL "http://login.yahoo.com/config/login?.src=pg"
+
+#define YAHOO_SMS_CARRIER_URL "http://lookup.msg.vip.mud.yahoo.com"
+
+#define YAHOO_USERINFO_URL "http://address.yahoo.com/yab/us?v=XM&sync=1&tags=short&useutf8=1&noclear=1&legenc=codepage-1252"
+#define YAHOOJP_USERINFO_URL "http://address.yahoo.co.jp/yab/jp?v=XM&sync=1&tags=short&useutf8=1&noclear=1&legenc=codepage-1252"
+
+#define YAHOO_PICURL_SETTING "picture_url"
+#define YAHOO_PICCKSUM_SETTING "picture_checksum"
+#define YAHOO_PICEXPIRE_SETTING "picture_expire"
+
+#define YAHOO_STATUS_TYPE_OFFLINE "offline"
+#define YAHOO_STATUS_TYPE_AVAILABLE "available"
+#define YAHOO_STATUS_TYPE_BRB "brb"
+#define YAHOO_STATUS_TYPE_BUSY "busy"
+#define YAHOO_STATUS_TYPE_NOTATHOME "notathome"
+#define YAHOO_STATUS_TYPE_NOTATDESK "notatdesk"
+#define YAHOO_STATUS_TYPE_NOTINOFFICE "notinoffice"
+#define YAHOO_STATUS_TYPE_ONPHONE "onphone"
+#define YAHOO_STATUS_TYPE_ONVACATION "onvacation"
+#define YAHOO_STATUS_TYPE_OUTTOLUNCH "outtolunch"
+#define YAHOO_STATUS_TYPE_STEPPEDOUT "steppedout"
+#define YAHOO_STATUS_TYPE_AWAY "away"
+#define YAHOO_STATUS_TYPE_INVISIBLE "invisible"
+#define YAHOO_STATUS_TYPE_MOBILE "mobile"
+
+#define YAHOO_CLIENT_VERSION_ID "4194239"
+#define YAHOO_CLIENT_VERSION "9.0.0.2152"
+
+#define YAHOOJP_CLIENT_VERSION_ID "4194239"
+#define YAHOOJP_CLIENT_VERSION "9.0.0.2152"
+
+#define YAHOO_CLIENT_USERAGENT "Mozilla/5.0"
+
+/* Index into attention types list. */
+#define YAHOO_BUZZ 0
+
+typedef enum {
+ YAHOO_PKT_TYPE_SERVER = 0,
+ YAHOO_PKT_TYPE_P2P
+} yahoo_pkt_type;
+
+typedef enum {
+ YAHOO_P2P_WE_ARE_CLIENT =0,
+ YAHOO_P2P_WE_ARE_SERVER
+} yahoo_p2p_connection_type;
+
+enum yahoo_status {
+ YAHOO_STATUS_AVAILABLE = 0,
+ YAHOO_STATUS_BRB,
+ YAHOO_STATUS_BUSY,
+ YAHOO_STATUS_NOTATHOME,
+ YAHOO_STATUS_NOTATDESK,
+ YAHOO_STATUS_NOTINOFFICE,
+ YAHOO_STATUS_ONPHONE,
+ YAHOO_STATUS_ONVACATION,
+ YAHOO_STATUS_OUTTOLUNCH,
+ YAHOO_STATUS_STEPPEDOUT,
+ YAHOO_STATUS_INVISIBLE = 12,
+ YAHOO_STATUS_CUSTOM = 99,
+ YAHOO_STATUS_IDLE = 999,
+ YAHOO_STATUS_WEBLOGIN = 0x5a55aa55,
+ YAHOO_STATUS_OFFLINE = 0x5a55aa56, /* don't ask */
+ YAHOO_STATUS_TYPING = 0x16,
+ YAHOO_STATUS_DISCONNECTED = 0xffffffff /* in ymsg 15. doesnt mean the normal sense of 'disconnected' */
+};
+
+struct yahoo_buddy_icon_upload_data {
+ PurpleConnection *gc;
+ GString *str;
+ char *filename;
+ int pos;
+ int fd;
+ guint watcher;
+};
+
+struct yahoo_p2p_data {
+ PurpleConnection *gc;
+ char *host_ip;
+ char *host_username;
+ int val_13;
+ guint input_event;
+ gint source;
+ int session_id;
+ yahoo_p2p_connection_type connection_type;
+};
+
+struct _YchtConn;
+
+typedef struct _YahooPersonalDetails {
+ char *id;
+
+ struct {
+ char *first;
+ char *last;
+ char *middle;
+ char *nick;
+ } names;
+
+ struct {
+ char *work;
+ char *home;
+ char *mobile;
+ } phone;
+} YahooPersonalDetails;
+
+struct yahoo_data {
+ PurpleConnection *gc;
+ int fd;
+ guchar *rxqueue;
+ int rxlen;
+ PurpleCircBuffer *txbuf;
+ guint txhandler;
+ GHashTable *friends;
+
+ char **profiles; /* Multiple profiles can be associated with an account */
+ YahooPersonalDetails ypd;
+
+ /**
+ * This is used to keep track of the IMVironment chosen
+ * by people you talk to. We don't do very much with
+ * this right now... but at least now if the remote user
+ * selects an IMVironment we won't reset it back to the
+ * default of nothing.
+ */
+ GHashTable *imvironments;
+
+ int current_status;
+ gboolean logged_in;
+ GString *tmp_serv_blist, *tmp_serv_ilist, *tmp_serv_plist;
+ GSList *confs;
+ unsigned int conf_id; /* just a counter */
+ gboolean chat_online;
+ gboolean in_chat;
+ char *chat_name;
+ char *pending_chat_room;
+ char *pending_chat_id;
+ char *pending_chat_topic;
+ char *pending_chat_goto;
+ char *auth;
+ gsize auth_written;
+ char *cookie_y;
+ char *cookie_t;
+ int session_id;
+ gboolean jp;
+ gboolean wm; /* connected w/ web messenger method */
+ /* picture aka buddy icon stuff */
+ char *picture_url;
+ int picture_checksum;
+
+ /* ew. we have to check the icon before we connect,
+ * but can't upload it til we're connected. */
+ struct yahoo_buddy_icon_upload_data *picture_upload_todo;
+ PurpleProxyConnectData *buddy_icon_connect_data;
+
+ struct _YchtConn *ycht;
+
+ /**
+ * This linked list contains PurpleUtilFetchUrlData structs
+ * for when we lookup people profile or photo information.
+ */
+ GSList *url_datas;
+ GHashTable *xfer_peer_idstring_map;/* Hey, i dont know, but putting this HashTable next to friends gives a run time fault... */
+ GSList *cookies;/* contains all cookies, including _y and _t */
+
+ /**
+ * We may receive a list15 in multiple packets with no prior warning as to how many we'll be getting;
+ * the server expects us to keep track of the group for which it is sending us contact names.
+ */
+ char *current_list15_grp;
+ time_t last_ping;
+ time_t last_keepalive;
+ GHashTable *peers; /* information about p2p data */
+ int yahoo_p2p_timer;
+ int yahoo_local_p2p_server_fd;
+ int yahoo_p2p_server_watcher;
+ GHashTable *sms_carrier; /* sms carrier data */
+ guint yahoo_p2p_server_timeout_handle;
+};
+
+#define YAHOO_MAX_STATUS_MESSAGE_LENGTH (255)
+
+/*
+ * Current Maximum Length for Instant Messages
+ *
+ * This was found by experiment.
+ *
+ * The YMSG protocol allows a message of up to 948 bytes, but the official client
+ * limits to 800 characters. According to experiments I conducted, it seems that
+ * the discrepancy is to allow some leeway for messages with mixed single- and
+ * multi-byte characters, as I was able to send messages of 840 and 932 bytes
+ * by using some multibyte characters (some random Chinese or Japanese characters,
+ * to be precise). - rekkanoryo
+ */
+#define YAHOO_MAX_MESSAGE_LENGTH_BYTES 948
+#define YAHOO_MAX_MESSAGE_LENGTH_CHARS 800
+
+/* sometimes i wish prpls could #include things from other prpls. then i could just
+ * use the routines from libfaim and not have to admit to knowing how they work. */
+#define yahoo_put16(buf, data) ( \
+ (*(buf) = (unsigned char)((data)>>8)&0xff), \
+ (*((buf)+1) = (unsigned char)(data)&0xff), \
+ 2)
+#define yahoo_get16(buf) ((((*(buf))<<8)&0xff00) + ((*((buf)+1)) & 0xff))
+#define yahoo_put32(buf, data) ( \
+ (*((buf)) = (unsigned char)((data)>>24)&0xff), \
+ (*((buf)+1) = (unsigned char)((data)>>16)&0xff), \
+ (*((buf)+2) = (unsigned char)((data)>>8)&0xff), \
+ (*((buf)+3) = (unsigned char)(data)&0xff), \
+ 4)
+#define yahoo_get32(buf) ((((*(buf))<<24)&0xff000000) + \
+ (((*((buf)+1))<<16)&0x00ff0000) + \
+ (((*((buf)+2))<< 8)&0x0000ff00) + \
+ (((*((buf)+3) )&0x000000ff)))
+
+/* util.c */
+void yahoo_init_colorht(void);
+void yahoo_dest_colorht(void);
+char *yahoo_codes_to_html(const char *x);
+char *yahoo_html_to_codes(const char *src);
+
+gboolean
+yahoo_account_use_http_proxy(PurpleConnection *conn);
+
+/**
+ * Encode some text to send to the yahoo server.
+ *
+ * @param gc The connection handle.
+ * @param str The null terminated utf8 string to encode.
+ * @param utf8 If not @c NULL, whether utf8 is okay or not.
+ * Even if it is okay, we may not use it. If we
+ * used it, we set this to @c TRUE, else to
+ * @c FALSE. If @c NULL, false is assumed, and
+ * it is not dereferenced.
+ * @return The g_malloced string in the appropriate encoding.
+ */
+char *yahoo_string_encode(PurpleConnection *gc, const char *str, gboolean *utf8);
+
+/**
+ * Decode some text received from the server.
+ *
+ * @param gc The gc handle.
+ * @param str The null terminated string to decode.
+ * @param utf8 Did the server tell us it was supposed to be utf8?
+ * @return The decoded, utf-8 string, which must be g_free()'d.
+ */
+char *yahoo_string_decode(PurpleConnection *gc, const char *str, gboolean utf8);
+
+char *yahoo_convert_to_numeric(const char *str);
+
+
+/* yahoo_profile.c */
+void yahoo_get_info(PurpleConnection *gc, const char *name);
+
+/* libymsg.h - these functions were formerly static but need not to be for the
+ * new two-prpl model. */
+const char *yahoo_list_icon(PurpleAccount *a, PurpleBuddy *b);
+const char *yahoo_list_emblem(PurpleBuddy *b);
+char *yahoo_status_text(PurpleBuddy *b);
+void yahoo_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full);
+GList *yahoo_status_types(PurpleAccount *account);
+GList *yahoo_blist_node_menu(PurpleBlistNode *node);
+void yahoo_login(PurpleAccount *account);
+void yahoo_close(PurpleConnection *gc);
+int yahoo_send_im(PurpleConnection *gc, const char *who, const char *what, PurpleMessageFlags flags);
+unsigned int yahoo_send_typing(PurpleConnection *gc, const char *who, PurpleTypingState state);
+void yahoo_set_status(PurpleAccount *account, PurpleStatus *status);
+void yahoo_set_idle(PurpleConnection *gc, int idle);
+void yahoo_add_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *g);
+void yahoo_remove_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group);
+void yahoo_add_deny(PurpleConnection *gc, const char *who);
+void yahoo_rem_deny(PurpleConnection *gc, const char *who);
+void yahoo_set_permit_deny(PurpleConnection *gc);
+void yahoo_keepalive(PurpleConnection *gc);
+void yahoo_change_buddys_group(PurpleConnection *gc, const char *who, const char *old_group, const char *new_group);
+void yahoo_rename_group(PurpleConnection *gc, const char *old_name, PurpleGroup *group, GList *moved_buddies);
+gboolean yahoo_offline_message(const PurpleBuddy *buddy);
+gboolean yahoo_send_attention(PurpleConnection *gc, const char *username, guint type);
+GList *yahoo_attention_types(PurpleAccount *account);
+
+GList *yahoo_actions(PurplePlugin *plugin, gpointer context);
+void yahoopurple_register_commands(void);
+
+PurpleCmdRet yahoopurple_cmd_buzz(PurpleConversation *c, const gchar *cmd, gchar **args, gchar **error, void *data);
+PurpleCmdRet yahoopurple_cmd_chat_join(PurpleConversation *conv, const char *cmd, char **args, char **error, void *data);
+PurpleCmdRet yahoopurple_cmd_chat_list(PurpleConversation *conv, const char *cmd, char **args, char **error, void *data);
+/* needed for xfer, thought theyd be useful for other enhancements later on
+ Returns list of cookies stored in yahoo_data formatted as a single null terminated string
+ returned value must be g_freed
+*/
+gchar* yahoo_get_cookies(PurpleConnection *gc);
+
+/* send p2p pkt containing our encoded ip, asking peer to connect to us */
+void yahoo_send_p2p_pkt(PurpleConnection *gc, const char *who, int val_13);
+
+#endif /* _LIBYMSG_H_ */
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/msg.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/msg.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/msg.h Sat Jul 25 10:32:39 2009 -0500
@@ -345,4 +345,6 @@
void msn_datacast_msg(MsnCmdProc *cmdproc, MsnMessage *msg);
+void msn_handwritten_msg(MsnCmdProc *cmdproc, MsnMessage *msg);
+
#endif /* _MSN_MSG_H_ */
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/msn.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/msn.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/msn.h Sat Jul 25 10:32:39 2009 -0500
@@ -24,17 +24,6 @@
#ifndef _MSN_H_
#define _MSN_H_
-/* #define MSN_DEBUG_MSG 1 */
-/* #define MSN_DEBUG_SLPMSG 1 */
-/* #define MSN_DEBUG_HTTP 1 */
-
-/* #define MSN_DEBUG_SLP 1 */
-/* #define MSN_DEBUG_SLP_VERBOSE 1 */
-/* #define MSN_DEBUG_SLP_FILES 1 */
-
-/* #define MSN_DEBUG_NS 1 */
-/* #define MSN_DEBUG_SB 1 */
-
#include "internal.h"
#include "account.h"
@@ -138,7 +127,7 @@
} MsnClientVerId;
#define MSN_CLIENT_ID_VERSION MSN_CLIENT_VER_7_0
-#define MSN_CLIENT_ID_CAPABILITIES MSN_CLIENT_CAP_PACKET
+#define MSN_CLIENT_ID_CAPABILITIES (MSN_CLIENT_CAP_PACKET|MSN_CLIENT_CAP_INK_GIF|MSN_CLIENT_CAP_VOICEIM|MSN_CLIENT_CAP_WINKS)
#define MSN_CLIENT_ID \
((MSN_CLIENT_ID_VERSION << 24) | \
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/network.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/network.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/network.h Sat Jul 25 10:32:39 2009 -0500
@@ -246,10 +246,10 @@
* Update the TURN server IP given the host name
* Will result in a DNS query being executed asynchronous
*
- * @param stun_server The host name of the STUN server to set
+ * @param turn_server The host name of the STUN server to set
* @since 2.6.0
*/
-void purple_network_set_turn_server(const gchar *stun_server);
+void purple_network_set_turn_server(const gchar *turn_server);
/**
* Get the IP address of the STUN server as a string representation
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/oscar.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/oscar.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/oscar.h Sat Jul 25 10:32:39 2009 -0500
@@ -307,23 +307,25 @@
/*
* We need to use the major-minor-micro versions from the official
* AIM and ICQ programs here or AOL won't let us use certain features.
+ *
+ * 0x00000611 is the distid given to us by AOL for use as the default
+ * libpurple distid.
*/
-
#define CLIENTINFO_PURPLE_AIM { \
- "Purple/" VERSION, \
+ NULL, \
0x0109, \
0x0005, 0x0001, \
0x0000, 0x0bdc, \
- 0x000000d2, \
+ 0x00000611, \
"us", "en", \
}
#define CLIENTINFO_PURPLE_ICQ { \
- "Purple/" VERSION, \
+ NULL, \
0x010a, \
0x0014, 0x0034, \
0x0000, 0x0c18, \
- 0x0000043d, \
+ 0x00000611, \
"us", "en", \
}
@@ -469,6 +471,9 @@
*/
struct _OscarData
{
+ /** Only used when connecting with clientLogin */
+ PurpleUtilFetchUrlData *url_data;
+
gboolean iconconnecting;
gboolean set_icon;
@@ -522,6 +527,8 @@
IcbmCookie *msgcookies;
struct aim_icq_info *icq_info;
+
+ /** Only used when connecting with the old-style BUCP login. */
struct aim_authresp_info *authinfo;
struct aim_emailinfo *emailinfo;
@@ -547,6 +554,7 @@
/** A linked list containing FlapConnections. */
GSList *oscar_connections;
+ guint16 default_port;
/** A linked list containing PeerConnections. */
GSList *peer_connections;
@@ -568,10 +576,9 @@
#define AIM_ICQ_STATE_DIRECTREQUIREAUTH 0x10000000
#define AIM_ICQ_STATE_DIRECTCONTACTLIST 0x20000000
-typedef int (*aim_rxcallback_t)(OscarData *od, FlapConnection *conn, FlapFrame *frame, ...);
-
-
-/* family_auth.c */
+/**
+ * Only used when connecting with the old-style BUCP login.
+ */
struct aim_clientrelease
{
char *name;
@@ -580,6 +587,9 @@
char *info;
};
+/**
+ * Only used when connecting with the old-style BUCP login.
+ */
struct aim_authresp_info
{
char *bn;
@@ -611,12 +621,29 @@
} chat;
};
+int oscar_connect_to_bos(PurpleConnection *gc, OscarData *od, const char *host, guint16 port, guint8 *cookie, guint16 cookielen);
+
+/* family_auth.c */
+
+/**
+ * Only used when connecting with the old-style BUCP login.
+ */
int aim_request_login(OscarData *od, FlapConnection *conn, const char *bn);
+
+/**
+ * Only used when connecting with the old-style BUCP login.
+ */
int aim_send_login(OscarData *od, FlapConnection *conn, const char *bn, const char *password, gboolean truncate_pass, ClientInfo *ci, const char *key, gboolean allow_multiple_logins);
+
+/**
+ * Only used when connecting with the old-style BUCP login.
+ */
/* 0x000b */ int aim_auth_securid_send(OscarData *od, const char *securid);
-void oscar_data_addhandler(OscarData *od, guint16 family, guint16 subtype, aim_rxcallback_t newhandler, guint16 flags);
-aim_rxcallback_t aim_callhandler(OscarData *od, guint16 family, guint16 subtype);
+/**
+ * Only used when connecting with clientLogin.
+ */
+void send_client_login(OscarData *od, const char *username);
/* flap_connection.c */
FlapConnection *flap_connection_new(OscarData *, int type);
@@ -632,13 +659,19 @@
void flap_connection_send(FlapConnection *conn, FlapFrame *frame);
void flap_connection_send_version(OscarData *od, FlapConnection *conn);
void flap_connection_send_version_with_cookie(OscarData *od, FlapConnection *conn, guint16 length, const guint8 *chipsahoy);
+void flap_connection_send_version_with_cookie_and_clientinfo(OscarData *od, FlapConnection *conn, guint16 length, const guint8 *chipsahoy, ClientInfo *ci);
void flap_connection_send_snac(OscarData *od, FlapConnection *conn, guint16 family, const guint16 subtype, guint16 flags, aim_snacid_t snacid, ByteStream *data);
void flap_connection_send_snac_with_priority(OscarData *od, FlapConnection *conn, guint16 family, const guint16 subtype, guint16 flags, aim_snacid_t snacid, ByteStream *data, gboolean high_priority);
void flap_connection_send_keepalive(OscarData *od, FlapConnection *conn);
FlapFrame *flap_frame_new(OscarData *od, guint16 channel, int datalen);
+/* oscar_data.c */
+typedef int (*aim_rxcallback_t)(OscarData *od, FlapConnection *conn, FlapFrame *frame, ...);
+
OscarData *oscar_data_new(void);
void oscar_data_destroy(OscarData *);
+void oscar_data_addhandler(OscarData *od, guint16 family, guint16 subtype, aim_rxcallback_t newhandler, guint16 flags);
+aim_rxcallback_t aim_callhandler(OscarData *od, guint16 family, guint16 subtype);
/* misc.c */
#define AIM_VISIBILITYCHANGE_PERMITADD 0x05
@@ -699,23 +732,27 @@
#define AIM_TRANSFER_DENY_DECLINE 0x0001
#define AIM_TRANSFER_DENY_NOTACCEPTING 0x0002
-#define AIM_IMPARAM_FLAG_CHANMSGS_ALLOWED 0x00000001
-#define AIM_IMPARAM_FLAG_MISSEDCALLS_ENABLED 0x00000002
-#define AIM_IMPARAM_FLAG_SUPPORT_OFFLINEMSGS 0x00000100
+#define AIM_IMPARAM_FLAG_CHANNEL_MSGS_ALLOWED 0x00000001
+#define AIM_IMPARAM_FLAG_MISSED_CALLS_ENABLED 0x00000002
+#define AIM_IMPARAM_FLAG_EVENTS_ALLOWED 0x00000008
+#define AIM_IMPARAM_FLAG_SMS_SUPPORTED 0x00000010
+#define AIM_IMPARAM_FLAG_OFFLINE_MSGS_ALLOWED 0x00000100
/* This is what the server will give you if you don't set them yourself. */
+/* This is probably out of date. */
#define AIM_IMPARAM_DEFAULTS { \
0, \
- AIM_IMPARAM_FLAG_CHANMSGS_ALLOWED | AIM_IMPARAM_FLAG_MISSEDCALLS_ENABLED, \
+ AIM_IMPARAM_FLAG_CHANNEL_MSGS_ALLOWED | AIM_IMPARAM_FLAG_MISSED_CALLS_ENABLED, \
512, /* !! Note how small this is. */ \
(99.9)*10, (99.9)*10, \
1000 /* !! And how large this is. */ \
}
/* This is what most AIM versions use. */
+/* This is probably out of date. */
#define AIM_IMPARAM_REASONABLE { \
0, \
- AIM_IMPARAM_FLAG_CHANMSGS_ALLOWED | AIM_IMPARAM_FLAG_MISSEDCALLS_ENABLED, \
+ AIM_IMPARAM_FLAG_CHANNEL_MSGS_ALLOWED | AIM_IMPARAM_FLAG_MISSED_CALLS_ENABLED, \
8000, \
(99.9)*10, (99.9)*10, \
0 \
@@ -1496,6 +1533,10 @@
(((*((buf)+2)) << 16) & 0x00ff0000) + \
(((*((buf)+3)) << 24) & 0xff000000))
+int oscar_get_ui_info_int(const char *str, int default_value);
+const char *oscar_get_ui_info_string(const char *str, const char *default_value);
+gchar *oscar_get_clientstring(void);
+
guint16 aimutil_iconsum(const guint8 *buf, int buflen);
int aimutil_tokslen(char *toSearch, int theindex, char dl);
int aimutil_itemcnt(char *toSearch, char dl);
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/plugin.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/plugin.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/plugin.h Sat Jul 25 10:32:39 2009 -0500
@@ -512,6 +512,15 @@
void purple_plugins_add_search_path(const char *path);
/**
+ * Returns a list of plugin search paths.
+ *
+ * @constreturn A list of searched paths.
+ *
+ * @since 2.6.0
+ */
+GList *purple_plugins_get_search_paths(void);
+
+/**
* Unloads all loaded plugins.
*/
void purple_plugins_unload_all(void);
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/prefs.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/prefs.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/prefs.h Sat Jul 25 10:32:39 2009 -0500
@@ -315,6 +315,15 @@
/**
* Add a callback to a pref (and its children)
+ *
+ * @param handle The handle of the receiver.
+ * @param name The name of the preference
+ * @param cb The callback function
+ * @param data The data to pass to the callback function.
+ *
+ * @return An id to disconnect the callback
+ *
+ * @see purple_prefs_disconnect_callback
*/
guint purple_prefs_connect_callback(void *handle, const char *name, PurplePrefCallback cb,
gpointer data);
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/presence.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/presence.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/presence.h Sat Jul 25 10:32:39 2009 -0500
@@ -42,7 +42,7 @@
void jabber_presence_parse(JabberStream *js, xmlnode *packet);
void jabber_presence_subscription_set(JabberStream *js, const char *who,
const char *type);
-void jabber_presence_fake_to_self(JabberStream *js, const PurpleStatus *status);
+void jabber_presence_fake_to_self(JabberStream *js, PurpleStatus *status);
void purple_status_to_jabber(const PurpleStatus *status, JabberBuddyState *state, char **msg, int *priority);
#endif /* PURPLE_JABBER_PRESENCE_H_ */
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/privacy.h
--- a/Frameworks/libpurple.framework/Versions/0.6.0/Headers/privacy.h Wed Jul 08 20:20:05 2009 -0500
+++ b/Frameworks/libpurple.framework/Versions/0.6.0/Headers/privacy.h Sat Jul 25 10:32:39 2009 -0500
@@ -26,8 +26,6 @@
#ifndef _PURPLE_PRIVACY_H_
#define _PURPLE_PRIVACY_H_
-#include "account.h"
-
/**
* Privacy data types.
*/
@@ -40,6 +38,8 @@
PURPLE_PRIVACY_ALLOW_BUDDYLIST
} PurplePrivacyType;
+#include "account.h"
+
#ifdef __cplusplus
extern "C" {
#endif
diff -r 4fcaa4d8c274 -r 60ce170f7f5e Frameworks/libpurple.framework/Versions/0.6.0/Headers/slpmsg.h
More information about the commits
mailing list