tools: print property values in the demo client and server

This commit is contained in:
Peter Hutterer 2022-08-01 14:34:05 +10:00
parent 27af399992
commit 0a382dec3d
2 changed files with 11 additions and 0 deletions

View file

@ -384,6 +384,12 @@ int main(int argc, char **argv)
colorprint("our device was removed\n");
break;
}
case EI_EVENT_PROPERTY:
{
colorprint("Property %s: %s\n", ei_event_property_get_name(e),
ei_event_property_get_value(e));
break;
}
case EI_EVENT_FRAME:
break;
case EI_EVENT_DEVICE_START_EMULATING:

View file

@ -436,6 +436,11 @@ eis_demo_server_printf_handle_event(struct eis_demo_server *server,
case EIS_EVENT_FRAME:
/* nothing to do, we're not fancy enough to accumulate events properly */
break;
case EIS_EVENT_CLIENT_PROPERTY:
{
colorprint("Property: %s: %s\n", eis_event_property_get_name(e), eis_event_property_get_value(e));
}
break;
default:
abort();
}