Greenbone Vulnerability Manager  22.4.0~dev1
Data Structures | Macros | Functions | Variables
gmp_delete.c File Reference

GVM GMP layer: DELETE commands. More...

#include "gmp_delete.h"
#include "gmp_base.h"
#include "manage_sql.h"
#include <stdlib.h>
#include <string.h>

Data Structures

struct  delete_t
 Command data for DELETE command. More...
 

Macros

#define G_LOG_DOMAIN   "md gmp"
 GLib log domain.
 

Functions

static void delete_reset ()
 Reset command data.
 
void delete_start (const gchar *type, const gchar *type_capital, const gchar **attribute_names, const gchar **attribute_values)
 Handle start element. More...
 
void delete_run (gmp_parser_t *gmp_parser, GError **error)
 Handle end element. More...
 

Variables

static delete_t delete
 Parser callback data for DELETE command.
 

Detailed Description

GVM GMP layer: DELETE commands.

Common DELETE command code for the GVM GMP layer.

Function Documentation

◆ delete_run()

void delete_run ( gmp_parser_t gmp_parser,
GError **  error 
)

Handle end element.

Parameters
[in]gmp_parserGMP parser.
[in]errorError parameter.

◆ delete_start()

void delete_start ( const gchar *  type,
const gchar *  type_capital,
const gchar **  attribute_names,
const gchar **  attribute_values 
)

Handle start element.

Parameters
[in]typeResource type.
[in]type_capitalResource type, capitalised.
[in]attribute_namesAll attribute names.
[in]attribute_valuesAll attribute values.