From 7318c5d7d41508335505aaf677775dbf6ea8f2cc Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Sat, 12 Jan 2013 21:16:34 +0100 Subject: [PATCH] Add const version of 'Path::base' accessor --- os/include/os/path.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/os/include/os/path.h b/os/include/os/path.h index 878087b6b..3ecc7fa82 100644 --- a/os/include/os/path.h +++ b/os/include/os/path.h @@ -229,7 +229,9 @@ namespace Genode { void import(char const *path, char const *pwd = 0) { _import(path, pwd); } - char *base() { return _path; } + char *base() { return _path; } + char const *base() const { return _path; } + size_t max_len() { return _path_max_len; } void remove_trailing(char c) { remove_trailing(c, _path); }