Mercurial > pidgin
annotate libgaim/plugins/perl/common/module.h @ 15113:4a8c368df4ea
[gaim-migrate @ 17899]
Some touchups:
* If one of the parallel connection attempts fails immediately (i.e.
does not time out) then don't cancel the other one.
* Make sure we don't continue on to step 2 of the peer connection
process after we kick off the parallel gaim_proxy_connects(). It
looks like this would happen most of the time, because the
connect_timeout_timer would be added for the verified ip, so it
would NOT be added for the client ip, and so we wouldn't hit the
"return" call because it happens to be in the same block as the
second gaim_timeout_add() call.
* Add the connection timeout timer even if the gaim_proxy_connect() to
the verified ip returns NULL for some crazy reason.
I didn't actually test any of this. I should probably do that when
I get home.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Wed, 06 Dec 2006 01:29:59 +0000 |
| parents | 53f7a4a8ad2a |
| children | d83f71ca0cd7 |
| rev | line source |
|---|---|
| 14192 | 1 |
| 2 | |
| 3 typedef struct group *Gaim__Group; | |
| 4 | |
| 5 #define group perl_group | |
| 6 | |
| 7 #include <glib.h> | |
| 8 #ifdef _WIN32 | |
| 9 #undef pipe | |
| 10 #endif | |
| 11 #include <EXTERN.h> | |
| 12 #include <perl.h> | |
| 13 #include <XSUB.h> | |
| 14 | |
| 15 #undef group | |
| 16 | |
| 17 #include "../perl-common.h" | |
| 18 | |
| 19 #include "account.h" | |
| 20 #include "accountopt.h" | |
| 21 #include "blist.h" | |
| 22 #include "buddyicon.h" | |
| 23 #include "cipher.h" | |
| 24 #include "cmds.h" | |
| 25 #include "connection.h" | |
| 26 #include "conversation.h" | |
|
15004
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14717
diff
changeset
|
27 #include "core.h" |
| 14192 | 28 #include "debug.h" |
| 29 #include "desktopitem.h" | |
| 30 #include "eventloop.h" | |
| 31 #include "ft.h" | |
|
14372
d5c22258df09
[gaim-migrate @ 17078]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14364
diff
changeset
|
32 #ifdef GAIM_GTKPERL |
| 14192 | 33 #include "gtkaccount.h" |
| 34 #include "gtkblist.h" | |
| 35 #include "gtkconn.h" | |
| 36 #include "gtkconv.h" | |
| 37 #include "gtkutils.h" | |
|
14372
d5c22258df09
[gaim-migrate @ 17078]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14364
diff
changeset
|
38 #endif |
| 14192 | 39 #include "imgstore.h" |
| 40 #include "network.h" | |
| 41 #include "notify.h" | |
| 42 #include "plugin.h" | |
| 43 #include "pluginpref.h" | |
| 44 #include "pounce.h" | |
| 45 #include "prefs.h" | |
| 46 #include "privacy.h" | |
| 47 #include "prpl.h" | |
| 48 #include "proxy.h" | |
| 49 #include "request.h" | |
| 50 #include "roomlist.h" | |
| 51 #include "savedstatuses.h" | |
| 52 #include "server.h" | |
| 53 #include "signals.h" | |
| 54 #include "sound.h" | |
| 55 #include "sslconn.h" | |
| 56 #include "status.h" | |
| 57 #include "stringref.h" | |
| 58 /* Ewww. perl has it's own util.h which is in the include path :( */ | |
|
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14267
diff
changeset
|
59 #include "libgaim/util.h" |
| 14192 | 60 #include "value.h" |
| 61 #include "xmlnode.h" | |
| 62 | |
| 63 /* account.h */ | |
| 64 typedef GaimAccount * Gaim__Account; | |
| 65 typedef GaimAccountOption * Gaim__Account__Option; | |
| 66 typedef GaimAccountUiOps * Gaim__Account__UiOps; | |
| 67 typedef GaimAccountUserSplit * Gaim__Account__UserSplit; | |
| 68 | |
| 69 /* blist.h */ | |
| 70 typedef GaimBlistNode * Gaim__BuddyList__Node; | |
| 71 typedef GaimBlistNodeFlags Gaim__BuddyList__NodeFlags; | |
| 72 typedef GaimBlistUiOps * Gaim__BuddyList__UiOps; | |
| 73 typedef GaimBuddyList * Gaim__BuddyList; | |
| 74 typedef GaimBuddy * Gaim__BuddyList__Buddy; | |
| 75 typedef GaimChat * Gaim__BuddyList__Chat; | |
| 76 typedef GaimContact * Gaim__BuddyList__Contact; | |
| 77 typedef GaimGroup * Gaim__BuddyList__Group; | |
| 78 | |
| 79 /* buddyicon.h */ | |
| 80 typedef GaimBuddyIcon * Gaim__Buddy__Icon; | |
| 81 | |
| 82 /* cipher.h */ | |
| 83 typedef GaimCipher * Gaim__Cipher; | |
| 84 typedef GaimCipherCaps Gaim__CipherCaps; | |
| 85 typedef GaimCipherContext * Gaim__Cipher__Context; | |
| 86 typedef GaimCipherOps * Gaim__Cipher__Ops; | |
| 87 | |
| 88 /* cmds.h */ | |
| 89 typedef GaimCmdFlag Gaim__Cmd__Flag; | |
| 90 typedef GaimCmdId Gaim__Cmd__Id; | |
| 91 typedef GaimCmdPriority Gaim__Cmd__Priority; | |
| 92 typedef GaimCmdRet Gaim__Cmd__Ret; | |
| 93 | |
| 94 /* connection.h */ | |
| 95 typedef GaimConnection * Gaim__Connection; | |
| 96 typedef GaimConnectionFlags Gaim__ConnectionFlags; | |
| 97 typedef GaimConnectionState Gaim__ConnectionState; | |
| 98 typedef GaimConnectionUiOps * Gaim__Connection__UiOps; | |
| 99 | |
| 100 /* conversation.h */ | |
| 101 typedef GaimConversationType Gaim__ConversationType; | |
| 102 typedef GaimConvUpdateType Gaim__ConvUpdateType; | |
| 103 typedef GaimTypingState Gaim__TypingState; | |
| 104 typedef GaimMessageFlags Gaim__MessageFlags; | |
| 105 typedef GaimConvChatBuddyFlags Gaim__ConvChatBuddyFlags; | |
| 106 typedef GaimConversation * Gaim__Conversation; | |
| 107 typedef GaimConversationUiOps * Gaim__Conversation__UiOps; | |
| 108 typedef GaimConvIm * Gaim__Conversation__IM; | |
| 109 typedef GaimConvChat * Gaim__Conversation__Chat; | |
| 110 typedef GaimConvChatBuddy * Gaim__Conversation__ChatBuddy; | |
| 111 | |
|
15004
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14717
diff
changeset
|
112 /* core.h */ |
|
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14717
diff
changeset
|
113 |
|
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14717
diff
changeset
|
114 typedef GaimCore * Gaim__Core; |
|
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14717
diff
changeset
|
115 typedef GaimCoreUiOps * Gaim__Core__UiOps; |
|
5e07a6f8eb33
[gaim-migrate @ 17784]
Richard Laager <rlaager@wiktel.com>
parents:
14717
diff
changeset
|
116 |
| 14192 | 117 /* debug.h */ |
| 118 typedef GaimDebugLevel Gaim__DebugLevel; | |
| 119 | |
| 120 /* desktopitem.h */ | |
| 121 typedef GaimDesktopItem * Gaim__DesktopItem; | |
| 122 typedef GaimDesktopItemType Gaim__DesktopItemType; | |
| 123 | |
| 124 /* eventloop.h */ | |
| 125 typedef GaimInputCondition * Gaim__InputCondition; | |
| 126 typedef GaimEventLoopUiOps * Gaim__EventLoopUiOps; | |
| 127 | |
| 128 /* ft.h */ | |
| 129 typedef GaimXfer * Gaim__Xfer; | |
| 130 typedef GaimXferType Gaim__XferType; | |
| 131 typedef GaimXferStatusType Gaim__XferStatusType; | |
| 132 typedef GaimXferUiOps * Gaim__XferUiOps; | |
| 133 | |
|
14372
d5c22258df09
[gaim-migrate @ 17078]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14364
diff
changeset
|
134 #ifdef GAIM_GTKPERL |
| 14192 | 135 /* gtkblish.h */ |
| 136 typedef GaimGtkBuddyList * Gaim__GTK__BuddyList; | |
| 137 typedef GaimStatusIconSize Gaim__StatusIconSize; | |
| 138 | |
| 139 /* gtkutils.h */ | |
| 140 typedef GaimButtonOrientation Gaim__ButtonOrientation; | |
| 141 typedef GaimButtonStyle Gaim__ButtonStyle; | |
| 142 #ifndef _WIN32 | |
| 143 typedef GaimBrowserPlace Gaim__BrowserPlace; | |
| 144 #endif /* _WIN32 */ | |
| 145 | |
| 146 /* gtkconv.h */ | |
|
14372
d5c22258df09
[gaim-migrate @ 17078]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14364
diff
changeset
|
147 typedef GaimUnseenState Gaim__UnseenState; |
| 14192 | 148 typedef GaimGtkConversation * Gaim__GTK__Conversation; |
| 149 typedef GdkPixbuf * Gaim__GDK__Pixbuf; | |
| 150 typedef GtkWidget * Gaim__GTK__Widget; | |
| 151 | |
| 152 /* gtkutils.h */ | |
| 153 typedef GtkFileSelection * Gaim__GTK__FileSelection; | |
| 154 typedef GtkSelectionData * Gaim__GTK__SelectionData; | |
| 155 typedef GtkTextView * Gaim__GTK__TextView; | |
| 156 | |
| 157 /* gtkconn.h */ | |
|
14372
d5c22258df09
[gaim-migrate @ 17078]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14364
diff
changeset
|
158 #endif |
| 14192 | 159 |
| 160 /* imgstore.h */ | |
| 161 typedef GaimStoredImage * Gaim__StoredImage; | |
| 162 | |
| 163 /* log.h */ | |
| 164 typedef GaimLog * Gaim__Log; | |
| 165 typedef GaimLogCommonLoggerData * Gaim__LogCommonLoggerData; | |
| 166 typedef GaimLogLogger * Gaim__Log__Logger; | |
| 167 typedef GaimLogReadFlags * Gaim__Log__ReadFlags; | |
| 168 typedef GaimLogSet * Gaim__LogSet; | |
| 169 typedef GaimLogType Gaim__LogType; | |
| 170 | |
| 171 /* network.h */ | |
|
14372
d5c22258df09
[gaim-migrate @ 17078]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14364
diff
changeset
|
172 typedef GaimNetworkListenData * Gaim__NetworkListenData; |
| 14192 | 173 typedef GaimNetworkListenCallback Gaim__NetworkListenCallback; |
| 174 | |
| 175 /* notify.h */ | |
| 176 typedef GaimNotifyCloseCallback Gaim__NotifyCloseCallback; | |
| 177 typedef GaimNotifyMsgType Gaim__NotifyMsgType; | |
| 178 typedef GaimNotifySearchButtonType Gaim__NotifySearchButtonType; | |
| 179 typedef GaimNotifySearchResults * Gaim__NotifySearchResults; | |
| 180 typedef GaimNotifySearchColumn * Gaim__NotifySearchColumn; | |
| 181 typedef GaimNotifySearchButton * Gaim__NotifySearchButton; | |
| 182 typedef GaimNotifyType Gaim__NotifyType; | |
| 183 typedef GaimNotifyUiOps * Gaim__NotifyUiOps; | |
| 184 | |
| 185 /* plugin.h */ | |
| 186 typedef GaimPlugin * Gaim__Plugin; | |
| 187 typedef GaimPluginAction * Gaim__Plugin__Action; | |
| 188 typedef GaimPluginInfo * Gaim__PluginInfo; | |
| 189 typedef GaimPluginLoaderInfo * Gaim__PluginLoaderInfo; | |
| 190 typedef GaimPluginType Gaim__PluginType; | |
| 191 typedef GaimPluginUiInfo * Gaim__PluginUiInfo; | |
| 192 | |
| 193 /* pluginpref.h */ | |
| 194 typedef GaimPluginPref * Gaim__PluginPref; | |
| 195 typedef GaimPluginPrefFrame * Gaim__PluginPref__Frame; | |
| 196 typedef GaimPluginPrefType Gaim__PluginPrefType; | |
| 197 | |
| 198 /* pounce.h */ | |
| 199 typedef GaimPounce * Gaim__Pounce; | |
| 200 typedef GaimPounceEvent Gaim__PounceEvent; | |
| 201 | |
| 202 /* prefs.h */ | |
| 203 typedef GaimPrefType Gaim__PrefType; | |
| 204 | |
| 205 /* privacy.h */ | |
| 206 typedef GaimPrivacyType Gaim__PrivacyType; | |
| 207 typedef GaimPrivacyUiOps * Gaim__Privacy__UiOps; | |
| 208 | |
| 209 /* proxy.h */ | |
| 210 typedef GaimProxyInfo * Gaim__ProxyInfo; | |
| 211 typedef GaimProxyType Gaim__ProxyType; | |
| 212 | |
| 213 /* prpl.h */ | |
| 214 typedef GaimBuddyIconSpec * Gaim__Buddy__Icon__Spec; | |
| 215 typedef GaimIconScaleRules Gaim__IconScaleRules; | |
| 216 typedef GaimPluginProtocolInfo * Gaim__PluginProtocolInfo; | |
| 217 typedef GaimProtocolOptions Gaim__ProtocolOptions; | |
| 218 | |
| 219 /* request.h */ | |
| 220 typedef GaimRequestField * Gaim__Request__Field; | |
| 221 typedef GaimRequestFields * Gaim__Request__Fields; | |
| 222 typedef GaimRequestFieldGroup * Gaim__Request__Field__Group; | |
| 223 typedef GaimRequestFieldType Gaim__RequestFieldType; | |
| 224 typedef GaimRequestType Gaim__RequestType; | |
| 225 typedef GaimRequestUiOps * Gaim__Request__UiOps; | |
| 226 | |
| 227 /* roomlist.h */ | |
| 228 typedef GaimRoomlist * Gaim__Roomlist; | |
| 229 typedef GaimRoomlistField * Gaim__Roomlist__Field; | |
| 230 typedef GaimRoomlistFieldType Gaim__RoomlistFieldType; | |
| 231 typedef GaimRoomlistRoom * Gaim__Roomlist__Room; | |
| 232 typedef GaimRoomlistRoomType Gaim__RoomlistRoomType; | |
| 233 typedef GaimRoomlistUiOps * Gaim__Roomlist__UiOps; | |
| 234 | |
| 235 /* savedstatuses.h */ | |
| 236 typedef GaimSavedStatus * Gaim__SavedStatus; | |
| 237 typedef GaimSavedStatusSub * Gaim__SavedStatusSub; | |
| 238 | |
| 239 /* sound.h */ | |
| 240 typedef GaimSoundEventID Gaim__SoundEventID; | |
| 241 typedef GaimSoundUiOps * Gaim__Sound__UiOps; | |
| 242 | |
| 243 /* sslconn.h */ | |
| 244 typedef GaimInputCondition * Gaim__Input__Condition; | |
| 245 typedef GaimSslConnection * Gaim__Ssl__Connection; | |
| 246 typedef GaimSslErrorType Gaim__SslErrorType; | |
| 247 typedef GaimSslOps * Gaim__Ssl__Ops; | |
| 248 | |
| 249 /* status.h */ | |
| 250 typedef GaimPresence * Gaim__Presence; | |
| 251 typedef GaimPresenceContext Gaim__PresenceContext; | |
| 252 typedef GaimStatus * Gaim__Status; | |
| 253 typedef GaimStatusAttr * Gaim__StatusAttr; | |
| 254 typedef GaimStatusPrimitive Gaim__StatusPrimitive; | |
| 255 typedef GaimStatusType * Gaim__StatusType; | |
| 256 | |
| 257 /* stringref.h */ | |
| 258 typedef GaimStringref * Gaim__Stringref; | |
| 259 | |
| 260 /* util.h */ | |
|
14364
338ac096e322
[gaim-migrate @ 17070]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14355
diff
changeset
|
261 typedef GaimInfoFieldFormatCallback Gaim__Util__InfoFieldFormatCallback; |
| 14355 | 262 typedef GaimUtilFetchUrlData Gaim__Util__FetchUrlData; |
| 14192 | 263 typedef GaimMenuAction * Gaim__Menu__Action; |
| 264 | |
| 265 /* value.h */ | |
| 266 typedef GaimValue * Gaim__Value; | |
| 267 | |
| 268 /* xmlnode.h */ | |
| 269 typedef xmlnode * Gaim__XMLNode; | |
| 270 typedef XMLNodeType XMLNode__Type; | |
| 271 | |
|
14717
b1fcd2fc903a
[gaim-migrate @ 17471]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14372
diff
changeset
|
272 /* other */ |
|
b1fcd2fc903a
[gaim-migrate @ 17471]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14372
diff
changeset
|
273 typedef void * Gaim__Handle; |
|
15103
53f7a4a8ad2a
[gaim-migrate @ 17889]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15004
diff
changeset
|
274 |
|
53f7a4a8ad2a
[gaim-migrate @ 17889]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15004
diff
changeset
|
275 typedef gchar gchar_own; |
|
53f7a4a8ad2a
[gaim-migrate @ 17889]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
15004
diff
changeset
|
276 |
