|
From: Lars C. <la...@cs...> - 2001-06-08 13:47:34
|
Hi,
Currently only some of the meta information value arrays are exported in
icq.h (Such as countries and genders), but not all.
I would like access to the rest from my icq client program. Just using
icq_Get*(code) (e.g. icq_GetMetaLanguageName) is not good enough because i
need to do both way lookups (code -> language and language -> code).
Should there be two lookup method for each array (Get*Name and Get*Code)?
or should we make a generic GetName(icq_Array* ary, short code) and
GetCode(icq_Array* ary, short code), and then remove the specific calls
such as GetMetaLanguageName()?
I would also like to get access to the entire array for listing them in my
client, which is not possible because i do not know the size. Currently, I
have added a { NULL, -1 } element to then end of each list so that i can
determine the end of the array, and modified the bsearch calls to handle
this.
Furthermore, some are not exported at the moment (icq_MetaOccupation,
icq_MetaPastBackgrounds[], icq_MetaAffiliations[], and
icq_MetaLanguages[])
--
Lars Christensen, la...@cs...
|