msg api, mem api
[vg.git] / vg_msg.h
index 91f0dc20a8cc22e59af0ff4517f4ca626e62e3b2..0b1302418ef710f55fa11faa58787e30a0034e42 100644 (file)
--- a/vg_msg.h
+++ b/vg_msg.h
@@ -188,9 +188,9 @@ int vg_msg_getkvcmd( vg_msg *msg, const char *key, vg_msg_cmd *cmd );
 
 /*
  * Read a integral KV out to dst, and perform conversion if needed
- * dst is always defined, if its not found its set to 0
  */
-int vg_msg_getkvintg( vg_msg *msg, const char *key, u8 type, void *dst );
+int vg_msg_getkvintg( vg_msg *msg, const char *key, u8 type, void *dst,
+                      void *default_value );
 
 /* helper for reading string kvs. returns NULL if not found */
 const char *vg_msg_getkvstr( vg_msg *msg, const char *key );