mirror of
https://github.com/falk-werner/webfuse-provider
synced 2026-03-02 04:09:18 +00:00
added test for open
This commit is contained in:
@@ -328,5 +328,15 @@ json_t * WebfuseServer::Lookup(int parent, std::string const & name)
|
||||
return d->Invoke("lookup", params);
|
||||
}
|
||||
|
||||
json_t * WebfuseServer::Open(int inode, int flags)
|
||||
{
|
||||
json_t * params = json_array();
|
||||
json_array_append_new(params, json_string(d->GetFilesystem().c_str()));
|
||||
json_array_append_new(params, json_integer(inode));
|
||||
json_array_append_new(params, json_integer(flags));
|
||||
|
||||
return d->Invoke("open", params);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -18,6 +18,7 @@ public:
|
||||
json_t * Invoke(std::string const & method, json_t * params);
|
||||
json_t * Invoke(std::string const & method, std::string const & params);
|
||||
json_t * Lookup(int parent, std::string const & name);
|
||||
json_t * Open(int inode, int flags);
|
||||
private:
|
||||
class Private;
|
||||
Private * d;
|
||||
|
||||
Reference in New Issue
Block a user