Skip to content

Preparation for !158

Simon McVittie requested to merge wip/input-interface-prep into master
  • glib-backports: Add a backport of g_utf8_make_valid()

  • json-utils: Move JSON utility code to its own translation unit

    utils.c is getting larger and more miscellaneous than I'd prefer.

  • json-utils: Rename _srt_json_object_dup_strv_member

    It seems misleading to have a function with json_array in the name that takes a JsonObject.

  • json-utils: Add control over the placeholder for non-string items in strv

  • json-utils: Don't critical if an array contains a non-string

    json_array_get_string_element() raises a critical warning if the element exists but isn't a string. json_node_get_string() is more tolerant.

  • json-utils: Add a unit test

  • json-utils: Don't critical if array_member exists but is not an array

  • json-utils: Add a helper to get an array of lines as a single string

    We'll use this for the uevent blob in input devices, because that's much easier to read than a single string with escaped newlines.


/cc @denittis

Merge request reports