labfy-investigation/include/core/document_authenticity_service.h

16 lines
1,007 B
C

#ifndef LABFY_DOCUMENT_AUTHENTICITY_SERVICE_H
#define LABFY_DOCUMENT_AUTHENTICITY_SERVICE_H
#include "database/database.h"
#include "models/identity_traceability.h"
#include <glib.h>
G_BEGIN_DECLS
typedef struct { const char *code,*label,*description; gboolean requires_justification; } DocumentAuthenticityStatus;
const DocumentAuthenticityStatus *document_authenticity_service_statuses(gsize *count);
const DocumentAuthenticityStatus *document_authenticity_service_status(const char *code);
GPtrArray *document_authenticity_service_list_runs(Database *database,const char *evidence_identifier,GError **error);
GPtrArray *document_authenticity_service_history(Database *database,const char *evidence_identifier,GError **error);
gboolean document_authenticity_service_add(Database *database,const char *evidence_identifier,
const char *status,const char *justification,const char *technical_note,
const char *ocr_run_identifier,DocumentAuthenticityAssessment **created,GError **error);
G_END_DECLS
#endif