freetalk-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freetalk-dev] [PATCH] jabber iqs


From: Matthias Quasthoff
Subject: Re: [Freetalk-dev] [PATCH] jabber iqs
Date: Sat, 12 Aug 2006 19:00:57 +0200

Hello,

Trying to implement the proud-of-freetalk stuff the XMPP way, it pretty
much seems I should ask a question regarding function names and place.
In the meantime 

$ /freetalk <the-other-guy>@jabber.org.au/<the other guy>s PowerBook G4
12"
No, but <the-other-guy>@jabber.org.au is using iChatAgent 3.1.5 (v436)

works. Neat? But it turned out I need at least three new functions for
this task:
- one answering iq:version queries (responding "freetalk" "0.7")
- one querying iq:versions of buddies
- one processing the iq:version results running a new hook allowing for
formatting client name, version and os properly.

What naming scheme for these functions would you suggest? Other iq query
functions should IMO be able to follow this scheme. So something like

ft_msg_iq_{version,last,disco}_{get,result}_cb
and do_iq_query_{version,last,disco} if needed

would look good. But where to put it? To a new file iq.{c,h}? It seems
to make sense, but I don't want to leave this undiscussed :-/ There is a
lot of iq and similar stuff that could be implemented later on.

Thanks again,
Matthias





reply via email to

[Prev in Thread] Current Thread [Next in Thread]