Skip to content
  • Thomas Haller's avatar
    shared: add nm_utils_dbus_path_cmp() helper · 7ba3f4f3
    Thomas Haller authored
    At various places we sort our D-Bus paths. For example,
    server sorts them before exporting them on D-Bus.
    
    Server knows well, that a lot of these paths are build
    by attaching an incrementing number as last component.
    It looks nicer to sort by this number, instead of strictly
    lexical with strcmp().
    
    Note that this handles the cases correctly where paths have
    different prefixes, or where they don't end with a number.
    7ba3f4f3