Skip to content

Commit

Permalink
Merge pull request #2264 from greenbone/git-doc-get-license-sensor
Browse files Browse the repository at this point in the history
GMP doc: GET_LICENSE: add missing SENSOR reference
  • Loading branch information
mattmundell authored Dec 3, 2024
2 parents 6a179f7 + 6169a1a commit 447914f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 27 deletions.
43 changes: 16 additions & 27 deletions src/manage_license.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ manage_update_license_file (const char *new_license, char **error_msg)
__func__, broker_address);
return 1;
}
else
g_debug ("%s: Connected to %s\n", __func__, broker_address);
g_debug ("%s: Connected to %s\n", __func__, broker_address);

ret = theia_new_modify_license_cmd ((char *) new_license, &modify_license_cmd);

Expand All @@ -105,13 +104,11 @@ manage_update_license_file (const char *new_license, char **error_msg)
free (client);
return 2;
}
else
g_debug ("%s: Sent modify.license command"
" (message_id: %s, group_id: %s)\n",
__func__,
modify_license_cmd->message->id,
modify_license_cmd->message->group_id);

g_debug ("%s: Sent modify.license command"
" (message_id: %s, group_id: %s)\n",
__func__,
modify_license_cmd->message->id,
modify_license_cmd->message->group_id);

ret = theia_client_get_info_response (client, THEIA_LICENSE_INFO_TOPIC,
"modified.license",
Expand All @@ -127,8 +124,7 @@ manage_update_license_file (const char *new_license, char **error_msg)
free (client);
return 3;
}
else
g_debug ("%s: Received modified.license response", __func__);
g_debug ("%s: Received modified.license response", __func__);

if (failure_modify_license_info)
{
Expand All @@ -142,11 +138,8 @@ manage_update_license_file (const char *new_license, char **error_msg)
free (client);
return 5;
}
else
{
g_message ("%s: Uploaded new license file (%lu bytes)",
__func__, strlen (new_license));
}
g_message ("%s: Uploaded new license file (%lu bytes)",
__func__, strlen (new_license));

theia_client_disconnect (client);
theia_modified_license_info_free (modified_license_info);
Expand Down Expand Up @@ -207,8 +200,7 @@ manage_get_license (gchar **status,
__func__, broker_address);
return 1;
}
else
g_debug ("%s: Connected to %s\n", __func__, broker_address);
g_debug ("%s: Connected to %s\n", __func__, broker_address);

ret = theia_new_get_license_cmd (&get_license_cmd);
if (ret)
Expand All @@ -229,13 +221,11 @@ manage_get_license (gchar **status,
free (client);
return 2;
}
else
g_debug ("%s: Sent get.license command"
" (message_id: %s, group_id: %s)\n",
__func__,
get_license_cmd->message->id,
get_license_cmd->message->group_id);

g_debug ("%s: Sent get.license command"
" (message_id: %s, group_id: %s)\n",
__func__,
get_license_cmd->message->id,
get_license_cmd->message->group_id);

ret = theia_client_get_info_response (client, THEIA_LICENSE_INFO_TOPIC,
"got.license", NULL,
Expand All @@ -250,8 +240,7 @@ manage_get_license (gchar **status,
free (client);
return 3;
}
else
g_debug ("%s: Received got.license response", __func__);
g_debug ("%s: Received got.license response", __func__);

theia_client_disconnect (client);

Expand Down
1 change: 1 addition & 0 deletions src/schema_formats/XML/GMP.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -13865,6 +13865,7 @@ END:VCALENDAR
<pattern>
<e>model</e>
<e>model_type</e>
<e>sensor</e>
</pattern>
<ele>
<name>model</name>
Expand Down

0 comments on commit 447914f

Please sign in to comment.