Commit 1702f67eca7a94496ffc93ea91a9c1f6819c3a15

Thomas de Grivel 2024-11-29T13:51:57

wip serialize

diff --git a/libkc3/serialize.h b/libkc3/serialize.h
index b925601..ba29dfb 100644
--- a/libkc3/serialize.h
+++ b/libkc3/serialize.h
@@ -29,7 +29,25 @@ s_str * serialize_to_buf (const s_serialize *serialize, s_buf *buf);
 s_str * serialize_to_str (const s_serialize *serialize, s_str *dest);
 
 /* Operators. */
+s_serialize * serialize_bool (s_serialize *serialize, bool b);
+s_serialize * serialize_character (s_serialize *serialize,
+                                   character c);
+s_serialize * serialize_list (s_serialize *serialize,
+                              const s_list *list);
 s_serialize * serialize_tag (s_serialize *serialize,
-                             s_tag *tag);
+                             const s_tag *tag);
+s_serialize * serialize_tuple (s_serialize *serialize,
+                               const s_tuple *tuple);
+s_serialize * serialize_s8 (s_serialize *serialize, s8 x);
+s_serialize * serialize_s16 (s_serialize *serialize, s16 x);
+s_serialize * serialize_s32 (s_serialize *serialize, s32 x);
+s_serialize * serialize_s64 (s_serialize *serialize, s64 x);
+s_serialize * serialize_str (s_serialize *serialize, const s_str *str);
+s_serialize * serialize_sw (s_serialize *serialize, sw x);
+s_serialize * serialize_u8 (s_serialize *serialize, u8 x);
+s_serialize * serialize_u16 (s_serialize *serialize, u16 x);
+s_serialize * serialize_u32 (s_serialize *serialize, u32 x);
+s_serialize * serialize_u64 (s_serialize *serialize, u64 x);
+s_serialize * serialize_uw (s_serialize *serialize, uw x);
 
 #endif /* LIBKC3_SERIALIZE_H */