[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: zed: When will the new PI be done?
On Sat, 2 Mar 2002 00:43:43 -0300
Gustavo Niemeyer <niemeyer@conectiva.com> wrote:
> > xchat_printf("%s %s %s %s\n",
> > xchat_get_field(current, "file"),
> > xchat_get_field(current, "to"),
> > xchat_get_field(current, "status"),
> > xchat_get_field(current, "pos"));
>
> It'd be nice to have a list of fields, and some way to know
> what each type is going to be. This would make it easy for
> higher level interfaces to wrap this information into
> smart objects, avoiding specific code for each list.
There's no list available in the code, so I'd have to add
one in especially for this. Can't you just pass whatever the
python coder gives you to xchat_get_int/str? Python coders can then just use
the same docs as for the C-plugin interface to find out what fields
are available.
P.S. the above code got changed slightly, there's an example
of traversing a list at http://xchat.org/docs/plugin20.html#lists
--
Peter Zelezny. <zed@linux.com>
--
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/xchat-discuss/