accounts-service: Add support for oars-1.1

Even though I can’t find a single copy of the specification or how it
differs from oars-1.0; it allegedly exists.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://phabricator.endlessm.com/T23999
This commit is contained in:
Philip Withnall 2018-10-11 15:15:46 +13:00
parent ebb892092f
commit 1e3defccf2
2 changed files with 6 additions and 5 deletions

View file

@ -403,13 +403,14 @@ get_app_filter_cb (GObject *obj,
&content_rating_kind, &oars_variant))
{
/* Default value. */
content_rating_kind = "oars-1.0";
content_rating_kind = "oars-1.1";
oars_variant = g_variant_new ("@a{ss} {}");
}
/* Check that the OARS filter is in a format we support. Currently, thats
* only oars-1.0. */
if (!g_str_equal (content_rating_kind, "oars-1.0"))
* only oars-1.0 and oars-1.1. */
if (!g_str_equal (content_rating_kind, "oars-1.0") &&
!g_str_equal (content_rating_kind, "oars-1.1"))
{
g_task_return_new_error (task, EPC_APP_FILTER_ERROR,
EPC_APP_FILTER_ERROR_INVALID_DATA,