Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GMP doc: GET_LICENSE: add missing SENSOR reference #2264

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -13579,6 +13579,7 @@ END:VCALENDAR
<pattern>
<e>model</e>
<e>model_type</e>
<e>sensor</e>
</pattern>
<ele>
<name>model</name>
Expand Down
Loading