FOSSology
4.7.1
Open Source License Compliance by Open Source Software
kotoba.h
1
/*
2
SPDX-FileCopyrightText: © 2025 Harshit Gandhi <gandhiharshit716@gmail.com>
3
SPDX-FileCopyrightText: © Fossology contributors
4
5
SPDX-License-Identifier: GPL-2.0-only
6
*/
7
8
#ifndef MONK_AGENT_KOTOBA_H
9
#define MONK_AGENT_KOTOBA_H
10
11
#include "monk.h"
12
#include "database.h"
13
#include <glib.h>
14
15
/* Override monk's agent macros with kotoba-specific values. */
16
#undef AGENT_NAME
17
#undef AGENT_DESC
18
#undef AGENT_ARS
19
20
#define AGENT_NAME "kotoba"
21
#define AGENT_DESC "kotoba agent"
22
#define AGENT_ARS "kotoba_ars"
23
24
#define BULK_DECISION_TYPE_MEANING "bulk"
25
#define BULK_DECISION_TYPE_KOTOBA 6
26
#define BULK_DECISION_SCOPE "upload"
27
28
/* Arguments for phrase-mode bulk scanning. */
29
typedef
struct
{
30
int
uploadId;
31
int
userId;
32
int
groupId;
33
int
jobId
;
34
GArray* phrases;
35
char
* delimiters;
36
char
* uploadTreeTableName;
/* cached once per upload */
37
char
* insertSql;
/* pre-built INSERT SQL (depends on table name) */
38
}
PhraseModeArgs
;
39
40
int
saveKotobaHighlights(
MonkState
* state,
const
File
* file,
const
GArray* matches,
41
long
clearingEventId,
long
phraseId);
42
43
#endif
/* MONK_AGENT_KOTOBA_H */
jobId
int jobId
The id of the job.
Definition:
libfossscheduler.c:35
File
Definition:
monk.h:61
MonkState
Definition:
monk.h:44
PhraseModeArgs
Definition:
kotoba.h:29
src
monk
agent
kotoba.h
Generated on Thu Sep 3 2026 19:41:53 for FOSSology by
1.9.1