--- Christian Alis <ianalis@...> wrote:
> Can somebody please provide me some pointers on how I can learn to
> develop applications that use libgaim? HACKING seems to be too old
> and the doxygen-generated docs are good references but don't provide a
> good overview on how things work. I just want to know the big picture
> first before getting burrowed in the source code. :)
Applications that use libgaim provide the appropriate functions to perform
the UI operations invoked by the core (libgaim). This is done by
populating the uiops structures (eg. GaimAccountUiOps, GaimBlistUiOps
etc.) and making them available to the core (by calling
gaim_accounts_set_ui_ops, gaim_blist_set_ui_ops etc.). The functions in
the uiops are triggered at specific events, eg. the buddylist-uiops are
used to update the buddy list when a new buddy is added, or removed, or
the status of a buddy is changed etc. The same happens for conversations,
While the uiops are sufficient for most of the ui operations, it's likely
that you will want to use the gaim-signals as well to fine-tune some
libgaim uses the glib mainloop to do all the things. The application
wanting to use libgaim will [likely] have to do the same.
The application will first initialize the core (gaim_core_init), add
plugin-search paths, load the saved plugins, prefs etc. If you have the
source, I suggest you take a look at console/gntgaim.c:init_libgaim to get
an idea of what's required to setup libgaim for your application.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around