Client: add method GetPartition(), make partition private

This commit is contained in:
Max Kellermann
2017-02-25 09:58:58 +01:00
parent e3ee60e7af
commit c7396b0675
9 changed files with 72 additions and 58 deletions

View File

@@ -50,9 +50,9 @@ class Storage;
class Client final
: FullyBufferedSocket, TimeoutMonitor,
public boost::intrusive::list_base_hook<boost::intrusive::link_mode<boost::intrusive::normal_link>> {
public:
Partition &partition;
public:
unsigned permission;
/** the uid of the client process, or -1 if unknown */
@@ -188,6 +188,10 @@ public:
*/
void AllowFile(Path path_fs) const;
Partition &GetPartition() {
return partition;
}
gcc_pure
Instance &GetInstance();