OpenVAS Scanner 23.40.3
scan_id.c
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
6#include "scan_id.h"
7
8#include <stdlib.h>
9
10const char *scan_id = NULL;
11
12int
13set_scan_id (const char *new_scan_id)
14{
15 if (scan_id != NULL)
16 return -1;
17 scan_id = new_scan_id;
18 return 0;
19}
20
21const char *
23{
24 return scan_id;
25}
const char * scan_id
Definition scan_id.c:10
int set_scan_id(const char *new_scan_id)
Definition scan_id.c:13
const char * get_scan_id()
Definition scan_id.c:22