Mon, 19 Mar 2007 19:06:57 +0000
merge of e171f61e7083d597d600624755c8543cac7012c1
and 90dc3adee5d20876eb1622470eb5c19406b6f0f1
| 11118 | 1 | |
| 2 | ||
| 15884 | 3 | typedef struct group *Purple__Group; |
| 6508 | 4 | |
| 5 | #define group perl_group | |
| 6 | ||
|
6816
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6699
diff
changeset
|
7 | #include <glib.h> |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6699
diff
changeset
|
8 | #ifdef _WIN32 |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6699
diff
changeset
|
9 | #undef pipe |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6699
diff
changeset
|
10 | #endif |
| 6508 | 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" | |
| 11118 | 20 | #include "accountopt.h" |
| 21 | #include "blist.h" | |
| 22 | #include "buddyicon.h" | |
| 23 | #include "cipher.h" | |
| 24 | #include "cmds.h" | |
| 6508 | 25 | #include "connection.h" |
|
6591
cc1ab32edcdc
[gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
6588
diff
changeset
|
26 | #include "conversation.h" |
|
15066
57ab37fe1190
[gaim-migrate @ 17784]
Richard Laager <rlaager@pidgin.im>
parents:
14779
diff
changeset
|
27 | #include "core.h" |
| 6508 | 28 | #include "debug.h" |
| 11118 | 29 | #include "desktopitem.h" |
| 30 | #include "eventloop.h" | |
| 31 | #include "ft.h" | |
| 15884 | 32 | #ifdef PURPLE_GTKPERL |
| 11118 | 33 | #include "gtkaccount.h" |
| 34 | #include "gtkblist.h" | |
| 35 | #include "gtkconn.h" | |
| 36 | #include "gtkconv.h" | |
| 37 | #include "gtkutils.h" | |
| 14434 | 38 | #endif |
| 11118 | 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" | |
|
6523
20c459e452ac
[gaim-migrate @ 7040]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
52 | #include "server.h" |
| 11118 | 53 | #include "signals.h" |
| 54 | #include "sound.h" | |
| 55 | #include "sslconn.h" | |
| 56 | #include "status.h" | |
| 57 | #include "stringref.h" | |
|
11318
13fa1d5134f3
[gaim-migrate @ 13521]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
11170
diff
changeset
|
58 | /* Ewww. perl has it's own util.h which is in the include path :( */ |
|
15437
68e19d25f4dd
Fix perl plugin compilation after libpurple rename
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
59 | #include "libpurple/util.h" |
| 11118 | 60 | #include "value.h" |
| 61 | #include "xmlnode.h" | |
| 62 | ||
| 12808 | 63 | /* account.h */ |
| 15884 | 64 | typedef PurpleAccount * Purple__Account; |
| 65 | typedef PurpleAccountOption * Purple__Account__Option; | |
| 66 | typedef PurpleAccountUiOps * Purple__Account__UiOps; | |
| 67 | typedef PurpleAccountUserSplit * Purple__Account__UserSplit; | |
| 11118 | 68 | |
| 12808 | 69 | /* blist.h */ |
| 15884 | 70 | typedef PurpleBlistNode * Purple__BuddyList__Node; |
| 71 | typedef PurpleBlistNodeFlags Purple__BuddyList__NodeFlags; | |
| 72 | typedef PurpleBlistUiOps * Purple__BuddyList__UiOps; | |
| 73 | typedef PurpleBuddyList * Purple__BuddyList; | |
| 74 | typedef PurpleBuddy * Purple__BuddyList__Buddy; | |
| 75 | typedef PurpleChat * Purple__BuddyList__Chat; | |
| 76 | typedef PurpleContact * Purple__BuddyList__Contact; | |
| 77 | typedef PurpleGroup * Purple__BuddyList__Group; | |
| 11118 | 78 | |
| 12808 | 79 | /* buddyicon.h */ |
| 15884 | 80 | typedef PurpleBuddyIcon * Purple__Buddy__Icon; |
| 11118 | 81 | |
| 12808 | 82 | /* cipher.h */ |
| 15884 | 83 | typedef PurpleCipher * Purple__Cipher; |
| 84 | typedef PurpleCipherCaps Purple__CipherCaps; | |
| 85 | typedef PurpleCipherContext * Purple__Cipher__Context; | |
| 86 | typedef PurpleCipherOps * Purple__Cipher__Ops; | |
| 11118 | 87 | |
| 12808 | 88 | /* cmds.h */ |
| 15884 | 89 | typedef PurpleCmdFlag Purple__Cmd__Flag; |
| 90 | typedef PurpleCmdId Purple__Cmd__Id; | |
| 91 | typedef PurpleCmdPriority Purple__Cmd__Priority; | |
| 92 | typedef PurpleCmdRet Purple__Cmd__Ret; | |
| 11118 | 93 | |
| 12808 | 94 | /* connection.h */ |
| 15884 | 95 | typedef PurpleConnection * Purple__Connection; |
| 96 | typedef PurpleConnectionFlags Purple__ConnectionFlags; | |
| 97 | typedef PurpleConnectionState Purple__ConnectionState; | |
| 98 | typedef PurpleConnectionUiOps * Purple__Connection__UiOps; | |
| 11118 | 99 | |
| 12808 | 100 | /* conversation.h */ |
| 15884 | 101 | typedef PurpleConversationType Purple__ConversationType; |
| 102 | typedef PurpleConvUpdateType Purple__ConvUpdateType; | |
| 103 | typedef PurpleTypingState Purple__TypingState; | |
| 104 | typedef PurpleMessageFlags Purple__MessageFlags; | |
| 105 | typedef PurpleConvChatBuddyFlags Purple__ConvChatBuddyFlags; | |
| 106 | typedef PurpleConversation * Purple__Conversation; | |
| 107 | typedef PurpleConversationUiOps * Purple__Conversation__UiOps; | |
| 108 | typedef PurpleConvIm * Purple__Conversation__IM; | |
| 109 | typedef PurpleConvChat * Purple__Conversation__Chat; | |
| 110 | typedef PurpleConvChatBuddy * Purple__Conversation__ChatBuddy; | |
| 11118 | 111 | |
|
15066
57ab37fe1190
[gaim-migrate @ 17784]
Richard Laager <rlaager@pidgin.im>
parents:
14779
diff
changeset
|
112 | /* core.h */ |
|
57ab37fe1190
[gaim-migrate @ 17784]
Richard Laager <rlaager@pidgin.im>
parents:
14779
diff
changeset
|
113 | |
| 15884 | 114 | typedef PurpleCore * Purple__Core; |
| 115 | typedef PurpleCoreUiOps * Purple__Core__UiOps; | |
|
15066
57ab37fe1190
[gaim-migrate @ 17784]
Richard Laager <rlaager@pidgin.im>
parents:
14779
diff
changeset
|
116 | |
| 12808 | 117 | /* debug.h */ |
| 15884 | 118 | typedef PurpleDebugLevel Purple__DebugLevel; |
| 11118 | 119 | |
| 12808 | 120 | /* desktopitem.h */ |
| 15884 | 121 | typedef PurpleDesktopItem * Purple__DesktopItem; |
| 122 | typedef PurpleDesktopItemType Purple__DesktopItemType; | |
| 11118 | 123 | |
| 12808 | 124 | /* eventloop.h */ |
| 15884 | 125 | typedef PurpleInputCondition * Purple__InputCondition; |
| 126 | typedef PurpleEventLoopUiOps * Purple__EventLoopUiOps; | |
| 11118 | 127 | |
| 12808 | 128 | /* ft.h */ |
| 15884 | 129 | typedef PurpleXfer * Purple__Xfer; |
| 130 | typedef PurpleXferType Purple__XferType; | |
| 131 | typedef PurpleXferStatusType Purple__XferStatusType; | |
| 132 | typedef PurpleXferUiOps * Purple__XferUiOps; | |
| 11118 | 133 | |
| 15884 | 134 | #ifdef PURPLE_GTKPERL |
| 12808 | 135 | /* gtkblish.h */ |
| 15884 | 136 | typedef PurpleGtkBuddyList * Purple__GTK__BuddyList; |
| 137 | typedef PurpleStatusIconSize Purple__StatusIconSize; | |
| 11118 | 138 | |
| 12808 | 139 | /* gtkutils.h */ |
| 15884 | 140 | typedef PurpleButtonOrientation Purple__ButtonOrientation; |
| 141 | typedef PurpleButtonStyle Purple__ButtonStyle; | |
| 11139 | 142 | #ifndef _WIN32 |
| 15884 | 143 | typedef PurpleBrowserPlace Purple__BrowserPlace; |
| 11139 | 144 | #endif /* _WIN32 */ |
| 6508 | 145 | |
| 12808 | 146 | /* gtkconv.h */ |
| 15884 | 147 | typedef PurpleUnseenState Purple__UnseenState; |
| 148 | typedef PurpleGtkConversation * Purple__GTK__Conversation; | |
| 149 | typedef GdkPixbuf * Purple__GDK__Pixbuf; | |
| 150 | typedef GtkWidget * Purple__GTK__Widget; | |
| 11118 | 151 | |
| 12808 | 152 | /* gtkutils.h */ |
| 15884 | 153 | typedef GtkFileSelection * Purple__GTK__FileSelection; |
| 154 | typedef GtkSelectionData * Purple__GTK__SelectionData; | |
| 155 | typedef GtkTextView * Purple__GTK__TextView; | |
| 11118 | 156 | |
| 12808 | 157 | /* gtkconn.h */ |
| 14434 | 158 | #endif |
| 11118 | 159 | |
| 12808 | 160 | /* imgstore.h */ |
| 15884 | 161 | typedef PurpleStoredImage * Purple__StoredImage; |
| 11118 | 162 | |
| 12808 | 163 | /* log.h */ |
| 15884 | 164 | typedef PurpleLog * Purple__Log; |
| 165 | typedef PurpleLogCommonLoggerData * Purple__LogCommonLoggerData; | |
| 166 | typedef PurpleLogLogger * Purple__Log__Logger; | |
| 167 | typedef PurpleLogReadFlags * Purple__Log__ReadFlags; | |
| 168 | typedef PurpleLogSet * Purple__LogSet; | |
| 169 | typedef PurpleLogType Purple__LogType; | |
| 11118 | 170 | |
|
12910
e6c3213c28ec
[gaim-migrate @ 15263]
Daniel Atallah <datallah@pidgin.im>
parents:
12882
diff
changeset
|
171 | /* network.h */ |
| 15884 | 172 | typedef PurpleNetworkListenData * Purple__NetworkListenData; |
| 173 | typedef PurpleNetworkListenCallback Purple__NetworkListenCallback; | |
|
12910
e6c3213c28ec
[gaim-migrate @ 15263]
Daniel Atallah <datallah@pidgin.im>
parents:
12882
diff
changeset
|
174 | |
| 12808 | 175 | /* notify.h */ |
| 15884 | 176 | typedef PurpleNotifyCloseCallback Purple__NotifyCloseCallback; |
| 177 | typedef PurpleNotifyMsgType Purple__NotifyMsgType; | |
| 178 | typedef PurpleNotifySearchButtonType Purple__NotifySearchButtonType; | |
| 179 | typedef PurpleNotifySearchResults * Purple__NotifySearchResults; | |
| 180 | typedef PurpleNotifySearchColumn * Purple__NotifySearchColumn; | |
| 181 | typedef PurpleNotifySearchButton * Purple__NotifySearchButton; | |
| 182 | typedef PurpleNotifyType Purple__NotifyType; | |
| 183 | typedef PurpleNotifyUiOps * Purple__NotifyUiOps; | |
| 184 | typedef PurpleNotifyUserInfo * Purple__NotifyUserInfo; | |
| 185 | typedef PurpleNotifyUserInfoEntry * Purple__NotifyUserInfoEntry; | |
| 11118 | 186 | |
| 12808 | 187 | /* plugin.h */ |
| 15884 | 188 | typedef PurplePlugin * Purple__Plugin; |
| 189 | typedef PurplePluginAction * Purple__Plugin__Action; | |
| 190 | typedef PurplePluginInfo * Purple__PluginInfo; | |
| 191 | typedef PurplePluginLoaderInfo * Purple__PluginLoaderInfo; | |
| 192 | typedef PurplePluginType Purple__PluginType; | |
| 193 | typedef PurplePluginUiInfo * Purple__PluginUiInfo; | |
| 11118 | 194 | |
| 12808 | 195 | /* pluginpref.h */ |
| 15884 | 196 | typedef PurplePluginPref * Purple__PluginPref; |
| 197 | typedef PurplePluginPrefFrame * Purple__PluginPref__Frame; | |
| 198 | typedef PurplePluginPrefType Purple__PluginPrefType; | |
| 11118 | 199 | |
| 12808 | 200 | /* pounce.h */ |
| 15884 | 201 | typedef PurplePounce * Purple__Pounce; |
| 202 | typedef PurplePounceEvent Purple__PounceEvent; | |
| 11118 | 203 | |
| 12808 | 204 | /* prefs.h */ |
| 15884 | 205 | typedef PurplePrefType Purple__PrefType; |
| 11118 | 206 | |
| 12808 | 207 | /* privacy.h */ |
| 15884 | 208 | typedef PurplePrivacyType Purple__PrivacyType; |
| 209 | typedef PurplePrivacyUiOps * Purple__Privacy__UiOps; | |
| 11118 | 210 | |
| 12808 | 211 | /* proxy.h */ |
| 15884 | 212 | typedef PurpleProxyInfo * Purple__ProxyInfo; |
| 213 | typedef PurpleProxyType Purple__ProxyType; | |
|
6588
187c6026c574
[gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents:
6531
diff
changeset
|
214 | |
| 12808 | 215 | /* prpl.h */ |
| 15884 | 216 | typedef PurpleBuddyIconSpec * Purple__Buddy__Icon__Spec; |
| 217 | typedef PurpleIconScaleRules Purple__IconScaleRules; | |
| 218 | typedef PurplePluginProtocolInfo * Purple__PluginProtocolInfo; | |
| 219 | typedef PurpleProtocolOptions Purple__ProtocolOptions; | |
| 11118 | 220 | |
| 12808 | 221 | /* request.h */ |
| 15884 | 222 | typedef PurpleRequestField * Purple__Request__Field; |
| 223 | typedef PurpleRequestFields * Purple__Request__Fields; | |
| 224 | typedef PurpleRequestFieldGroup * Purple__Request__Field__Group; | |
| 225 | typedef PurpleRequestFieldType Purple__RequestFieldType; | |
| 226 | typedef PurpleRequestType Purple__RequestType; | |
| 227 | typedef PurpleRequestUiOps * Purple__Request__UiOps; | |
| 11118 | 228 | |
| 12808 | 229 | /* roomlist.h */ |
| 15884 | 230 | typedef PurpleRoomlist * Purple__Roomlist; |
| 231 | typedef PurpleRoomlistField * Purple__Roomlist__Field; | |
| 232 | typedef PurpleRoomlistFieldType Purple__RoomlistFieldType; | |
| 233 | typedef PurpleRoomlistRoom * Purple__Roomlist__Room; | |
| 234 | typedef PurpleRoomlistRoomType Purple__RoomlistRoomType; | |
| 235 | typedef PurpleRoomlistUiOps * Purple__Roomlist__UiOps; | |
| 11118 | 236 | |
| 12808 | 237 | /* savedstatuses.h */ |
| 15884 | 238 | typedef PurpleSavedStatus * Purple__SavedStatus; |
| 239 | typedef PurpleSavedStatusSub * Purple__SavedStatusSub; | |
| 11118 | 240 | |
| 12808 | 241 | /* sound.h */ |
| 15884 | 242 | typedef PurpleSoundEventID Purple__SoundEventID; |
| 243 | typedef PurpleSoundUiOps * Purple__Sound__UiOps; | |
| 11118 | 244 | |
| 12808 | 245 | /* sslconn.h */ |
| 15884 | 246 | typedef PurpleInputCondition * Purple__Input__Condition; |
| 247 | typedef PurpleSslConnection * Purple__Ssl__Connection; | |
| 248 | typedef PurpleSslErrorType Purple__SslErrorType; | |
| 249 | typedef PurpleSslOps * Purple__Ssl__Ops; | |
| 11118 | 250 | |
| 12808 | 251 | /* status.h */ |
| 15884 | 252 | typedef PurplePresence * Purple__Presence; |
| 253 | typedef PurplePresenceContext Purple__PresenceContext; | |
| 254 | typedef PurpleStatus * Purple__Status; | |
| 255 | typedef PurpleStatusAttr * Purple__StatusAttr; | |
| 256 | typedef PurpleStatusPrimitive Purple__StatusPrimitive; | |
| 257 | typedef PurpleStatusType * Purple__StatusType; | |
| 11118 | 258 | |
| 13018 | 259 | /* stringref.h */ |
| 15884 | 260 | typedef PurpleStringref * Purple__Stringref; |
| 11118 | 261 | |
| 12919 | 262 | /* util.h */ |
| 15884 | 263 | typedef PurpleInfoFieldFormatCallback Purple__Util__InfoFieldFormatCallback; |
| 264 | typedef PurpleUtilFetchUrlData Purple__Util__FetchUrlData; | |
| 265 | typedef PurpleMenuAction * Purple__Menu__Action; | |
| 12919 | 266 | |
| 12808 | 267 | /* value.h */ |
| 15884 | 268 | typedef PurpleValue * Purple__Value; |
| 11118 | 269 | |
| 12808 | 270 | /* xmlnode.h */ |
| 15884 | 271 | typedef xmlnode * Purple__XMLNode; |
| 12808 | 272 | typedef XMLNodeType XMLNode__Type; |
| 11118 | 273 | |
|
14779
1b71da367f56
[gaim-migrate @ 17471]
Martijn van Beers <martijn@eekeek.org>
parents:
14434
diff
changeset
|
274 | /* other */ |
| 15884 | 275 | typedef void * Purple__Handle; |
|
15165
0ff631dfbbca
[gaim-migrate @ 17889]
Daniel Atallah <datallah@pidgin.im>
parents:
15066
diff
changeset
|
276 | |
|
0ff631dfbbca
[gaim-migrate @ 17889]
Daniel Atallah <datallah@pidgin.im>
parents:
15066
diff
changeset
|
277 | typedef gchar gchar_own; |
|
0ff631dfbbca
[gaim-migrate @ 17889]
Daniel Atallah <datallah@pidgin.im>
parents:
15066
diff
changeset
|
278 |