Mercurial > pidgin
comparison PRPL @ 1224:0bbe3aaa6a3e
[gaim-migrate @ 1234]
all the pretty chicks with the crimson lips say "decklin rocks!" "decklin rocks!"
sorry, i got the drew carrey theme song stuck in my head.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 09 Dec 2000 02:00:38 +0000 |
parents | 7aabbbaae829 |
children | b332d8f46b84 |
comparison
equal
deleted
inserted
replaced
1223:96ab3e7b7035 | 1224:0bbe3aaa6a3e |
---|---|
23 If you're going to load your protocol dynamically, put the function gaim_plugin_init(void *) in the | 23 If you're going to load your protocol dynamically, put the function gaim_plugin_init(void *) in the |
24 file, and have it call | 24 file, and have it call |
25 | 25 |
26 load_protocol(my_proto_init); | 26 load_protocol(my_proto_init); |
27 | 27 |
28 and return a non-negative int. Then compile as a plugin, load the .so file, and you're set. If you're | 28 and return NULL. Then compile as a plugin, load the .so file, and you're set. If you're going to |
29 going to load it statically, extern the my_proto_init function, and in prpl.c, call load_protocol. | 29 load it statically, extern the my_proto_init function, and in prpl.c, call load_protocol. |
30 | 30 |
31 Your PRPL needs to have a login function, which ideally should set up a gdk_input watcher. When you | 31 Your PRPL needs to have a login function, which ideally should set up a gdk_input watcher. When you |
32 want to indicate that the account is online, simply call account_online(struct gaim_connection *). | 32 want to indicate that the account is online, simply call account_online(struct gaim_connection *). |
33 When there is information from the server, you should call the appropriate serv_got function (see | 33 When there is information from the server, you should call the appropriate serv_got function (see |
34 gaim.h for a (partial?) list). | 34 gaim.h for a (partial?) list). |