Code

utils proto: Added sdb_proto_get_int().
[sysdb.git] / src / include / utils / proto.h
index 8ab2e1ee7b3a22adb1481fb7cfecb09daaef77c7..372e34d474b7be20dd5fc13ce6c04025748bc0a8 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef SDB_UTILS_PROTO_H
 #define SDB_UTILS_PROTO_H 1
 
+#include "utils/strbuf.h"
+
 #include <stdint.h>
 #include <unistd.h>
 
@@ -42,6 +44,9 @@ ssize_t
 sdb_proto_send_msg(int fd, uint32_t code,
                uint32_t msg_len, const char *msg);
 
+uint32_t
+sdb_proto_get_int(sdb_strbuf_t *buf, size_t offset);
+
 #ifdef __cplusplus
 } /* extern "C" */
 #endif