FOSSology
4.5.1
Open Source License Compliance by Open Source Software
serialize.h
1
/*
2
Author: Maximilian Huber
3
SPDX-FileCopyrightText: © 2018 TNG Technology Consulting GmbH
4
5
SPDX-License-Identifier: GPL-2.0-only
6
*/
7
8
#ifndef MONK_AGENT_SERIALIZE_H
9
#define MONK_AGENT_SERIALIZE_H
10
11
#include "monk.h"
12
13
typedef
struct
{
14
long
refId;
15
size_t
shortnameLen;
16
guint tokensLen;
17
}
SerializingMeta
;
18
19
int
serializeToFile(
Licenses
* licenses,
char
* filename);
20
int
serialize(
Licenses
* licenses, FILE* fp);
21
int
serializeGArray(GArray* licenses, FILE* fp);
22
int
serializeOne(
License
*
license
, FILE* fp);
23
int
serializeOneMeta(
License
*
license
, FILE* fp);
24
int
serializeOneShortname(
License
*
license
, FILE* fp);
25
int
serializeOneTokens(GArray* tokens, FILE* fp);
26
27
Licenses
* deserializeFromFile(
char
* filename,
unsigned
minAdjacentMatches,
unsigned
maxLeadingDiff);
28
Licenses
* deserialize(FILE* fp,
unsigned
minAdjacentMatches,
unsigned
maxLeadingDiff);
29
GArray* deserializeTokens(FILE* fp, guint tokensLen);
30
31
#endif
// MONK_AGENT_SERIALIZE_H
License
Definition:
monk.h:55
Licenses
Definition:
monk.h:67
SerializingMeta
Definition:
serialize.h:13
license
Definition:
nomos.h:426
src
monk
agent
serialize.h
Generated on Wed Mar 26 2025 09:10:52 for FOSSology by
1.9.1