Commit Diff


commit - 2a374334d5e6b99c4f070cc28e67428e04500105
commit + aabb26f4967eaad4ba6030017a87f156bf0df14e
blob - 4003962fddca5513a4d4795ca1a95dfd053b4b63
blob + 521a59b5c000b2bebe415e6a979baf6a012f97fe
--- gen.c
+++ gen.c
@@ -305,7 +305,7 @@ void encode (FILE *out, size_t *offset, struct type *t
 
 void print_encode (FILE *out, struct structure *st)
 {
-	fprintf (out, "static void encode_%s (uint8_t *out, const struct %s *in)\n{\n", st->name, st->name);
+	fprintf (out, "void encode_%s (uint8_t *out, const struct %s *in)\n{\n", st->name, st->name);
 
 	size_t offset = 0;
 
@@ -389,7 +389,7 @@ void decode (FILE *out, size_t *offset, struct type *t
 
 void print_decode (FILE *out, struct structure *st)
 {
-	fprintf (out, "static void decode_%s (struct %s *out, uint8_t *in)\n{\n", st->name, st->name);
+	fprintf (out, "void decode_%s (struct %s *out, uint8_t *in)\n{\n", st->name, st->name);
 
 	size_t offset = 0;
 
@@ -408,8 +408,8 @@ void print_decode (FILE *out, struct structure *st)
 
 void declare (FILE *out, struct structure *st)
 {
-	fprintf (out, "static void encode_%s (uint8_t *out, const struct %s *in);\n", st->name, st->name);
-	fprintf (out, "static void decode_%s (struct %s *out, uint8_t *in);\n", st->name, st->name);
+	fprintf (out, "void encode_%s (uint8_t *out, const struct %s *in);\n", st->name, st->name);
+	fprintf (out, "void decode_%s (struct %s *out, uint8_t *in);\n", st->name, st->name);
 }
 
 static const char *header =