Discrete events at fixed time interval: Plugin

sanket agarwal snktagarwal at gmail.com
Thu Dec 11 23:23:15 EST 2008


Thanx Etan,

Actually after myself lookin for it in documenation, i was able to do it!

My next question that i have also put on another post is:
http://pidgin.im/pipermail/devel/2008-December/007161.html

Hope u'll have some say :-/.

On Fri, Dec 12, 2008 at 1:48 AM, Etan Reisner
<pidgin at unreliablesource.net>wrote:

> On Thu, Dec 11, 2008 at 11:54:52AM +0530, sanket agarwal wrote:
> > Hi all,
> >
> > I am trying to develop a plugin and need some advice. The thing that i am
> > going to do relates to some periodic event being triggered. Something
> like
> > my plugin get's triggered every 1 or 2 seconds. With libpurple, what
> options
> > do i have. Please refer code in case it's appropriate. I am basically new
> to
> > libpurple, so elaborate if possible!!
> >
> > Thanx in advance :D
>
> You want the eventloop functions. Specifically purple_timeout_add
> (
> http://developer.pidgin.im/doxygen/dev/html/eventloop_8h.html#adefb8b6d8b677ba989e47cbf8a05806
> )
> and purple_timeout_add_seconds
> (
> http://developer.pidgin.im/doxygen/dev/html/eventloop_8h.html#17752ee1277e09350a612b0b88921fc5
> )
>
> Read the documentation about them carefully so that you understand how
> they handle repeated events.
>
>    -Etan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20081212/df5f8546/attachment.html>


More information about the Devel mailing list