ei: add an ei.connection.type property to be filled in automatically

Planned values: 'socket' and 'portal', the latter to be set by the
portal.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2021-08-26 12:30:35 +10:00
parent 1ae193160e
commit ed208f8374

View file

@ -130,6 +130,12 @@ set_prop_pid(struct ei *ei)
ei_property_update(ei, "ei.application.pid", pid, EI_PROPERTY_PERM_NONE);
}
static void
set_prop_type(struct ei *ei)
{
ei_property_update(ei, "ei.connection.type", "socket", EI_PROPERTY_PERM_NONE);
}
_public_ struct ei *
ei_new(void *user_data)
{
@ -152,6 +158,7 @@ ei_new(void *user_data)
set_prop_pid(ei);
set_prop_cmdline(ei);
set_prop_type(ei);
return steal(&ei);
}