Suggestion about an emoticon plugin implementation ...

Mauro Sérgio Ferreira Brasil mauro.brasil at
Thu Jul 19 08:06:56 EDT 2007

Hi, Richard!

I'm talking about the MSN custom emoticon receiving that is implemented 
by now on version 2.0.2 of libpurple.
As you can see by the comment below present on method 
"purple_conv_custom_smiley_add" of file "conversation.c", is there no 
cache implementation for the emoticons received. And the comment 
indicates that this will exist... some day...

/* TODO: check if the icon is in the cache and return false if so */
/* TODO: add an icon cache (that doesn't suck) */

Unfortunately, I think the subject doesn't reflect the exact idea.
The implementation proposed isn't in fact a plugin, as SSL and others 
that already exists on libpurple, but a way to registrate an external 
implementation of a emoticon cache, on the same way of user interface 
structs like "PurpleAccountUiOps".

That way, the kernel of libpurple could remain unchanged in this matter 
(custom emoticon caching), while someone build an emoticon cache.
But, the main idea is to keep this emoticon cache handling internal to 
libpurple changing some internal implementation, but maybe allowing 
external access so the aplication could replicate (copy) the emoticons 
cached to another place.

And the objective here is quite simple.
The way things work with the emoticon being download every time isn't 
Obviously in libpurple is there indications that a cache will be build 
in the future, but I don't know when.

What I am suggesting is to make changes in libpurple library now, so 
anyone can build this emoticon cache and just plug it, without need any 
changes on libpurple code in future.

This changes will be made by me, with your approval.
Together we'll decide the method interfaces available for registration, 
and the way the cached emoticons will be made available to the user 
interface through the "PurpleConversationUiOps".

That's my suggestion...
I'll be waiting some return of you.

Best regards, Mauro.

It's a bunch of ideas that I would like to check whether is acceptable 
for you.

Richard Laager wrote:
> On Wed, 2007-07-18 at 16:04 -0300, Mauro Sérgio Ferreira Brasil wrote:
>> I would like to suggest an alternative to the "emoticon cache" that is
>> not working by now.
> I have no idea what you're talking about. The rest of your message makes
> this sound like something related to custom emoticons.
> Richard

*Tecnologia e Qualidade em Informática Ltda*
Mauro Sérgio Ferreira Brasil
Analista de Sistemas
+ mauro.brasil at <>
: <>
( + 55 (34)3291-1700
( + 55 (34)9971-2572

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMMI.jpg
Type: image/jpeg
Size: 9241 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TQI.gif
Type: image/gif
Size: 653 bytes
Desc: not available
URL: <>

More information about the Devel mailing list