Skip to content
Snippets Groups Projects
Commit 26e8c47e authored by Edileuton Henrique de Oliveira's avatar Edileuton Henrique de Oliveira
Browse files

agent: Now the OS is sended to the webservice in the functions update and print_update_link

parent 1a4344d6
No related branches found
No related tags found
No related merge requests found
......@@ -225,9 +225,12 @@ int main(int argc, char **argv)
*/
void print_update_link(struct soap *soap, char *url)
{
struct _ns1__getUpdateLink data;
struct _ns1__getUpdateLinkResponse response;
int error;
error = soap_call___ns2__getUpdateLink(soap, url, NULL, NULL, &response);
int os = OS;
data.args0 = &os;
error = soap_call___ns2__getUpdateLink(soap, url, NULL, &data, &response);
char *updateLink = response.return_;
if (error != SOAP_OK)
......@@ -265,9 +268,12 @@ void print_update_link(struct soap *soap, char *url)
*/
void update(struct soap *soap, char *url, char *version)
{
struct _ns1__getAgentVersion data;
struct _ns1__getAgentVersionResponse response;
int error;
error = soap_call___ns2__getAgentVersion(soap, url, NULL, NULL, &response);
int os = OS;
data.args0 = &os;
error = soap_call___ns2__getAgentVersion(soap, url, NULL, &data, &response);
char *received_version = response.return_;
if (error != SOAP_OK)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment