X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=vector%2Fitemkeyfun.h;h=7bbe62579d4313045aa1591ee44a27b692834010;hb=74eec6f62db4459232f95b5d39069b9b4ceeb830;hp=1089a163fbb3876f5cbd3945c0c9a07abd418d1c;hpb=47f0e2bd1cc8942f5c92ffa2f37db416d98d9e9e;p=rrq%2Frrqmisc.git diff --git a/vector/itemkeyfun.h b/vector/itemkeyfun.h index 1089a16..7bbe625 100644 --- a/vector/itemkeyfun.h +++ b/vector/itemkeyfun.h @@ -1,6 +1,8 @@ #ifndef itemkeyfun_H #define itemkeyfun_H +#include + /** * \struct itemkeyfun * @@ -48,6 +50,12 @@ typedef struct { */ void (*releasekey)(SELF,void *key); + /** + * This callback function writes a representation of an item into + * a character buffer. + */ + int (*tostring)(SELF,void *item,char *buffer,int limit); + #undef SELF } itemkeyfun;