liblx provides various convenience routines. This file describes those which aren't documented elsewhere. lx_lookup_color, lx_lookup_color_rgb --------------- ------------------- LX_OP *lx_lookup_color( LX_CONN *conn, LX_XID cmap, const char *name, int len, unsigned int *rp, unsigned int *gp, unsigned int *bp, int *succp) LX_OP *lx_lookup_color_rgb( LX_CONN *conn, LX_XID cmap, const char *name, int len, LX_RGB *rgp, int *succp) lx_lookup_color() is just like lx_LookupColor, and lx_lookup_color_rgb() is just like lx_LookupColor_rgb, except that (a) they handle the #rgb, #rrggbb, #rrrgggbbb, and #rrrrggggbbbb syntaxes internally rather than querying the server, (b) they don't take arguments returning visual values (because a server roundtrip may not happen), (c) they take an additional pointer-to-int which receives a success boolean (true for success, false for failure), and (d) they trap Name errors (reflected to the API as failure) from any LookupColor request they do.