Zed, do you plan to maintain a mapping of field names to types (context,
string, integer, etc) for xchat_list_get() and friends?
I want to be able to do something like this:
xchat_plugin *ph; /* initialized elsewhere */
xchat_list *list; /* ditto; the 'dcc' list */
switch (xchat_list_type(ph, list, "cps")) {
case XCHAT_LIST_INTEGER:
/* handle the integer case */
break;
case XCHAT_LIST_STRING:
/* handle the string case */
break;
}
Regards,
Alex.
--
PGP Public Key: http://aoi.dyndns.org/~alex/pgp-public-key
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s:++ a18 C++(++++)>$ UL+++(++++) P--- L+++>++++ E---- W+(+++) N-
o-- K+ w--- !O M(+) V-- PS+++ PE-- Y+ PGP+(+++) t* 5-- X-- R tv b- DI
D+++ G e h! !r y
------END GEEK CODE BLOCK------
This is a digitally signed message part