Skip to content

Commit

Permalink
Clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell committed Jan 8, 2024
1 parent 045d66d commit d1c694c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 22 deletions.
39 changes: 23 additions & 16 deletions src/gsad_gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -10956,8 +10956,9 @@ get_trash_configs_gmp (gvm_connection_t *connection, credentials_t *credentials,
* @return Enveloped XML object.
*/
char *
get_trash_credentials_gmp (gvm_connection_t *connection, credentials_t *credentials,
params_t *params, cmd_response_data_t *response_data)
get_trash_credentials_gmp (gvm_connection_t *connection,
credentials_t *credentials, params_t *params,
cmd_response_data_t *response_data)
{
GString *xml;

Expand Down Expand Up @@ -11064,8 +11065,9 @@ get_trash_notes_gmp (gvm_connection_t *connection, credentials_t *credentials,
* @return Enveloped XML object.
*/
char *
get_trash_overrides_gmp (gvm_connection_t *connection, credentials_t *credentials,
params_t *params, cmd_response_data_t *response_data)
get_trash_overrides_gmp (gvm_connection_t *connection,
credentials_t *credentials, params_t *params,
cmd_response_data_t *response_data)
{
GString *xml;

Expand All @@ -11091,8 +11093,9 @@ get_trash_overrides_gmp (gvm_connection_t *connection, credentials_t *credential
* @return Enveloped XML object.
*/
char *
get_trash_permissions_gmp (gvm_connection_t *connection, credentials_t *credentials,
params_t *params, cmd_response_data_t *response_data)
get_trash_permissions_gmp (gvm_connection_t *connection,
credentials_t *credentials, params_t *params,
cmd_response_data_t *response_data)
{
GString *xml;

Expand All @@ -11118,8 +11121,9 @@ get_trash_permissions_gmp (gvm_connection_t *connection, credentials_t *credenti
* @return Enveloped XML object.
*/
char *
get_trash_port_lists_gmp (gvm_connection_t *connection, credentials_t *credentials,
params_t *params, cmd_response_data_t *response_data)
get_trash_port_lists_gmp (gvm_connection_t *connection,
credentials_t *credentials, params_t *params,
cmd_response_data_t *response_data)
{
GString *xml;

Expand All @@ -11145,14 +11149,16 @@ get_trash_port_lists_gmp (gvm_connection_t *connection, credentials_t *credentia
* @return Enveloped XML object.
*/
char *
get_trash_report_formats_gmp (gvm_connection_t *connection, credentials_t *credentials,
params_t *params, cmd_response_data_t *response_data)
get_trash_report_formats_gmp (gvm_connection_t *connection,
credentials_t *credentials, params_t *params,
cmd_response_data_t *response_data)
{
GString *xml;

xml = g_string_new ("<get_trash>");

GET_TRASH_RESOURCE ("GET_REPORT_FORMATS", "get_report_formats", "report_formats");
GET_TRASH_RESOURCE ("GET_REPORT_FORMATS", "get_report_formats",
"report_formats");

/* Cleanup, and return transformed XML. */

Expand Down Expand Up @@ -11199,8 +11205,9 @@ get_trash_roles_gmp (gvm_connection_t *connection, credentials_t *credentials,
* @return Enveloped XML object.
*/
char *
get_trash_scanners_gmp (gvm_connection_t *connection, credentials_t *credentials,
params_t *params, cmd_response_data_t *response_data)
get_trash_scanners_gmp (gvm_connection_t *connection,
credentials_t *credentials, params_t *params,
cmd_response_data_t *response_data)
{
GString *xml;

Expand All @@ -11226,8 +11233,9 @@ get_trash_scanners_gmp (gvm_connection_t *connection, credentials_t *credentials
* @return Enveloped XML object.
*/
char *
get_trash_schedules_gmp (gvm_connection_t *connection, credentials_t *credentials,
params_t *params, cmd_response_data_t *response_data)
get_trash_schedules_gmp (gvm_connection_t *connection,
credentials_t *credentials, params_t *params,
cmd_response_data_t *response_data)
{
GString *xml;

Expand Down Expand Up @@ -11269,7 +11277,6 @@ get_trash_tags_gmp (gvm_connection_t *connection, credentials_t *credentials,
g_string_free (xml, FALSE), response_data);
}


/**
* @brief Setup trash page XML, envelope the result.
*
Expand Down
12 changes: 6 additions & 6 deletions src/gsad_gmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,8 @@ char *
get_trash_configs_gmp (gvm_connection_t *, credentials_t *, params_t *params,
cmd_response_data_t *);
char *
get_trash_credentials_gmp (gvm_connection_t *, credentials_t *, params_t *params,
cmd_response_data_t *);
get_trash_credentials_gmp (gvm_connection_t *, credentials_t *,
params_t *params, cmd_response_data_t *);
char *
get_trash_filters_gmp (gvm_connection_t *, credentials_t *, params_t *params,
cmd_response_data_t *);
Expand All @@ -646,14 +646,14 @@ char *
get_trash_overrides_gmp (gvm_connection_t *, credentials_t *, params_t *params,
cmd_response_data_t *);
char *
get_trash_permissions_gmp (gvm_connection_t *, credentials_t *, params_t *params,
cmd_response_data_t *);
get_trash_permissions_gmp (gvm_connection_t *, credentials_t *,
params_t *params, cmd_response_data_t *);
char *
get_trash_port_lists_gmp (gvm_connection_t *, credentials_t *, params_t *params,
cmd_response_data_t *);
char *
get_trash_report_formats_gmp (gvm_connection_t *, credentials_t *, params_t *params,
cmd_response_data_t *);
get_trash_report_formats_gmp (gvm_connection_t *, credentials_t *,
params_t *params, cmd_response_data_t *);
char *
get_trash_roles_gmp (gvm_connection_t *, credentials_t *, params_t *params,
cmd_response_data_t *);
Expand Down

0 comments on commit d1c694c

Please sign in to comment.