summaryrefslogtreecommitdiff
path: root/common/path.h
Commit message (Collapse)AuthorAgeFilesLines
* common: Add path encoding functionsDaiki Ueno2017-02-161-0/+4
| | | | | | | | | This adds p11_path_{encode,decode}(), following the escaping rule described in: https://dbus.freedesktop.org/doc/dbus-specification.html#addresses Although they are merely a wrapper around p11_url_{decode,encode}(), having dedicated functions hides the implementation details.
* path: Add p11_path_canon() functionStef Walter2013-07-031-0/+2
| | | | Cleans up a filename with readable characters.
* path: Add p11_path_prefix() functionStef Walter2013-07-031-0/+3
| | | | | Checks if a wellformed path is identical to or a prefix of another path.
* path: Add p11_path_parent() functionStef Walter2013-06-141-0/+2
| | | | | Gets the parent element of the path, removing the last component. Handles trailing and duplicate path separators correctly.
* More compatible path munging and handling codeStef Walter2013-04-031-0/+62
Centralize the path handling code, so we can remove unixy assumptions and have a chance of running on Windows. The current goal is to run all the tests on Windows. Includes some code from LRN <lrn1986@gmail.com> https://bugs.freedesktop.org/show_bug.cgi?id=63062