Greenbone Vulnerability Management Libraries: base/gvm_sentry.h Source File

Greenbone Vulnerability Management Libraries 23.1.1

gvm_sentry.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2017-2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
14
15#ifndef _GVM_BASE_GVM_SENTRY_H
16#define _GVM_BASE_GVM_SENTRY_H
17
18#ifdef HAVE_SENTRY
19#include <sentry.h>
20#endif /* HAVE_SENTRY*/
21
22void
23 gvm_sentry_init (const char *, const char *);
24
25void
26 gvm_sentry_log (const char *);
27
28void
29 gvm_close_sentry (void);
30
31int
32 gvm_has_sentry_support (void);
33
34#endif /* not _GVM_BASE_GVM_SENTRY_H */
gvm_sentry_log
void gvm_sentry_log(const char *)
Send a message to Sentry server if it was initialized.
Definition gvm_sentry.c:97
gvm_has_sentry_support
int gvm_has_sentry_support(void)
Check for sentry support.
Definition gvm_sentry.c:26
gvm_sentry_init
void gvm_sentry_init(const char *, const char *)
Initialize Sentry.
Definition gvm_sentry.c:74
gvm_close_sentry
void gvm_close_sentry(void)
Shutdown Sentry if it was initialized.
Definition gvm_sentry.c:122