#include <stdbool.h>
#include <inttypes.h>
#include <stdio.h>
#include <errno.h>
#define CONN_AP "Guest"
#define INPUT "12345678"
static void
{
bool offline;
printf("manager_cb system state = %d\n", g_state);
printf("manager_cb system offline = %d\n", offline);
}
static void
{
const char *str;
int r;
printf("service_cb service state = %d\n", state);
if (str)
printf("service_cb service type = %s\n", str);
else
printf("service_cb service type = NULL\n");
printf("service_cb strength = %d\n", r);
if (str)
printf("service_cb service name = %s\n", str);
else
printf("service_cb service name = NULL\n");
if (str && strcmp(str,
CONN_AP) == 0) {
printf("connect AP\n");
printf("Disconnect AP\n");
}
}
}
static void
unsigned int error)
{
const char *str;
if (str)
printf("error_cb service name = %s\n", str);
else
printf("error_cb service name = NULL\n");
printf("error_cb error is %d\n", error);
}
static void
const char *error)
{
int r;
printf("The agent action error is %s\n", error);
false);
printf("The agent request retry return value is %d\n", r);
}
static void
{
int r;
uint16_t i;
printf("The agent action is input\n");
printf("The agent input type is %s\n", value);
if (!input) {
printf("No Memory for the agent input\n");
goto fail;
}
if (r < 0) {
printf("append the agent input error\n");
free(input);
goto fail;
}
input->type = strdup(value);
if (!input->type) {
printf("No Memory for the agent input\n");
goto fail;
}
printf("No Memory for the agent input\n");
goto fail;
}
}
&input_vector);
printf("The agent report input return value is %d\n", r);
fail:
free(input);
}
}
static void
{
printf("The agent action is cancelled\n");
}
static void
{
printf("The agent action is release\n");
}
static void
{
int r;
printf("unregister agent return value r = %d\n", r);
}
static void
{
int r;
printf("register agent return value r = %d\n", r);
printf("
scan devices return value r = %d\n", r);
}