Greenbone Security Assistant  9.0.1
gsad_gmp_request.c File Reference
#include "gsad_gmp_request.h"
Include dependency graph for gsad_gmp_request.c:

Go to the source code of this file.

Macros

#define G_LOG_DOMAIN   "gsad gmp request"
 

Functions

int gmp_request (gvm_connection_t *connection, const char *cmd, gmp_arguments_t *arguments)
 

Macro Definition Documentation

◆ G_LOG_DOMAIN

#define G_LOG_DOMAIN   "gsad gmp request"

Definition at line 22 of file gsad_gmp_request.c.

Function Documentation

◆ gmp_request()

int gmp_request ( gvm_connection_t *  connection,
const char *  cmd,
gmp_arguments_t *  arguments 
)

Definition at line 25 of file gsad_gmp_request.c.

27 {
28  int retval;
29  gchar *args;
30 
31  args = gmp_arguments_string (arguments);
32 
33  retval = gvm_connection_sendf (connection, "<%s %s/>", cmd, args);
34 
35  g_free (args);
36 
37  return retval;
38 }

References gmp_arguments_string().

Referenced by get_entities(), and get_entity().

Here is the call graph for this function:
Here is the caller graph for this function:
gmp_arguments_string
gchar * gmp_arguments_string(gmp_arguments_t *arguments)
Definition: gsad_gmp_arguments.c:51