annotate doc/ui-ops.dox @ 23995:85bed17fe5c1

The variable we use to keep track of the watcher of the ssl connection should be unsigned. This isn't really a problem in Pidgin, where we use glib's mainloop and GIOChannels because glib starts assigning the handle IDs sequentially starting from 1. But if an eventloop implementation ever returns a handle ID greater than the largest possible signed integer (2,147,483,647) then we won't be able to remove the watcher because purple_ssl_close() in sslconn.c only removes it if inpa > 0, and since it interprets inpa as a signed value then handles over 2,147,483,647 appear as negative numbers. I stumbled upon this when playing around with libevent, which can use epoll. My implementation generated a random handle ID which was sometimes greater than 2,147,483,647. I don't believe this breaks binary compatibility. And I don't think it breaks source compatibility, but I guess it might depend on what compiler you're using.
author Mark Doliner <mark@kingant.net>
date Thu, 04 Sep 2008 18:04:29 +0000
parents e3bf822c19c8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18834
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
1 /** @page ui-ops UiOps structures
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
2
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
3 When implementing a UI for libpurple, you need to fill in various UiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
4 structures:
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
5
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
6 - #PurpleAccountUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
7 - #PurpleBlistUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
8 - #PurpleConnectionUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
9 - #PurpleConversationUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
10 - #PurpleCoreUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
11 - #PurpleDebugUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
12 - #PurpleDnsQueryUiOps
22380
e3bf822c19c8 Document PurpleEventLoopUiOps and associated misc.
Will Thompson <will.thompson@collabora.co.uk>
parents: 18834
diff changeset
13 - #PurpleEventLoopUiOps (without this, nothing will work and you will cry)
18834
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
14 - #PurpleIdleUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
15 - #PurpleNotifyUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
16 - #PurplePrivacyUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
17 - #PurpleRequestUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
18 - #PurpleRoomlistUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
19 - #PurpleSoundUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
20 - #PurpleWhiteboardUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
21 - #PurpleXferUiOps
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
22
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
23 */
500c785c109d Add a page to the documentation listing all UiOps structures.
Will Thompson <will.thompson@collabora.co.uk>
parents:
diff changeset
24 // vim: ft=c.doxygen