19 #ifndef MONK_AGENT_SERIALIZE_H 20 #define MONK_AGENT_SERIALIZE_H 30 int serializeToFile(
Licenses* licenses,
char* filename);
31 int serialize(
Licenses* licenses, FILE* fp);
32 int serializeGArray(GArray* licenses, FILE* fp);
34 int serializeOneMeta(
License* license, FILE* fp);
35 int serializeOneShortname(
License* license, FILE* fp);
36 int serializeOneTokens(GArray* tokens, FILE* fp);
38 Licenses* deserializeFromFile(
char* filename,
unsigned minAdjacentMatches,
unsigned maxLeadingDiff);
39 Licenses* deserialize(FILE* fp,
unsigned minAdjacentMatches,
unsigned maxLeadingDiff);
40 GArray* deserializeTokens(FILE* fp, guint tokensLen);
42 #endif // MONK_AGENT_SERIALIZE_H