PLUGIN_HOWTO

Sun, 15 Apr 2007 03:02:48 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Sun, 15 Apr 2007 03:02:48 +0000
branch
cpw.khc.msnp14
changeset 20476
198222e01a7d
parent 20472
6a6d2ef151e6
child 20471
1966704b3e42
child 20478
46933dc62880
permissions
-rw-r--r--

The second msn-p13-merge-head.diff.gz from SF Patch #162854 from Ka-Hing Cheung.

"A little late, but here is a version that should remember your friendly
name. Also has a fix for a crasher when MSN sends you back:

<faultstring>Need to do full sync. Can't sync deltas Client
has too old a copy for us to do a delta sync</faultstring>

In this case, I make gaim re-request the full contact list/address book.

I haven't look too deeply into the reverse list problem, but I think the
solution would involve caching the reverse list, which may require
extending the privacy api."

14566
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
1 For information on writing a plugin for Gaim, go
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
2 http://gaim.sourceforge.net/api/ and see the HOWTOs in the
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
3 "Related Pages" section.
93
a62ef5a64629 [gaim-migrate @ 103]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
diff changeset
4
14566
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
5 You can also generate this documentation locally by installing
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
6 doxygen and graphviz dot, then running "make docs" in the Gaim
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
7 source tree. The documentation will be in the docs/html directory.
93
a62ef5a64629 [gaim-migrate @ 103]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
diff changeset
8
14566
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
9 This next paragraph is old and possibly out of date:
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
10 Compilation of the plugins is fairly straight-forward; there is a
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
11 Makefile in this directory that has a rule for making the .so file
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
12 from a .c file. No modification of the Makefile should be necessary,
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
13 unless if you simply want to type 'make' to have it made; otherwise,
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
14 'make filename.so' will take filename.c and make the .so plugin from
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
15 it. If you need to link in with extra libraries, you can set the
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
16 environment variable PLUGIN_LIBS to be the libraries you want to link
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
17 with.
93
a62ef5a64629 [gaim-migrate @ 103]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
diff changeset
18
14566
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
19 It should be possible to compile plugins outside of the Gaim source
373d653d0733 [gaim-migrate @ 17223]
Mark Doliner <markdoliner@pidgin.im>
parents: 14253
diff changeset
20 tree, which is a much cleaner solution.

mercurial