ClientFile: use Path and file system API, update usages accordingly

This commit also fixes incorrect passing of UTF-8 strings to client_allow_file
This commit is contained in:
Denis Krjuchkov
2013-05-05 15:42:29 +06:00
parent 459d824c50
commit a688745bdc
4 changed files with 36 additions and 10 deletions

View File

@@ -25,6 +25,7 @@
#include <stdbool.h>
class Client;
class Path;
/**
* Is this client allowed to use the specified local file?
@@ -37,7 +38,7 @@ class Client;
* @return true if access is allowed
*/
bool
client_allow_file(const Client *client, const char *path_fs,
client_allow_file(const Client *client, const Path &path_fs,
GError **error_r);
#endif