labfy-investigation/include/core/document_tool_runner.h
2026-07-28 07:28:04 +02:00

46 lines
1.2 KiB
C

/******************************************************************************
* @file document_tool_runner.h
* @brief Exécution bornée et annulable des outils documentaires.
******************************************************************************/
#ifndef LABFY_INVESTIGATION_DOCUMENT_TOOL_RUNNER_H
#define LABFY_INVESTIGATION_DOCUMENT_TOOL_RUNNER_H
#include "core/document_analysis.h"
G_BEGIN_DECLS
typedef struct
{
gsize stdout_limit;
gsize stderr_limit;
} DocumentToolRunnerLimits;
gboolean document_tool_runner_run(
const char *tool_id,
const char *executable,
const char *const arguments[],
const char *source_path,
GCancellable *cancellable,
DocumentToolExecution **out_execution,
GError **error
);
gboolean document_tool_runner_run_with_limits(
const char *tool_id,
const char *executable,
const char *const arguments[],
const char *source_path,
const DocumentToolRunnerLimits *limits,
GCancellable *cancellable,
DocumentToolExecution **out_execution,
GError **error
);
char *document_tool_runner_read_version(
const char *executable,
const char *const arguments[],
GCancellable *cancellable
);
G_END_DECLS
#endif