Commit a6d11a14 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 01b9b42f
// Copyright (C) 2018-2019 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Free Software licenses or any of the Open Source
// Initiative approved licenses and Convey the resulting work. Corresponding
// source of such a combination shall include the source code for all other
// software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
// See https://www.nexedi.com/licensing for rationale and options.
// XXX doc
#ifndef _NXD_WCFS_H_
#define _NXD_WCFS_H_
#include <string>
using std::string;
#include <tuple>
using std::tuple;
#include "wcfs_misc.h"
struct Conn;
struct WatchLink;
// WCFS represents filesystem-level connection to wcfs server.
// XXX doc
struct WCFS {
string mountpoint;
tuple<Conn*, error> connect(zodb::Tid at);
string _path(const string &obj);
tuple<os::File, error> _open(const string &path, int flags=O_RDONLY);
tuple<WatchLink*, error> _openwatch();
};
#endif
......@@ -44,6 +44,7 @@ using namespace golang;
#include <unistd.h>
#include "wcfs.h"
#include "wcfs_watchlink.h"
#include "wcfs_misc.h"
......@@ -62,17 +63,6 @@ struct _Mapping;
struct WatchLink;
struct PinReq;
// WCFS represents filesystem-level connection to wcfs server.
// XXX doc
struct WCFS {
string mountpoint;
tuple<Conn*, error> connect(zodb::Tid at);
string _path(const string &obj);
tuple<os::File, error> _open(const string &path, int flags=O_RDONLY);
tuple<WatchLink*, error> _openwatch();
};
// Conn represents logical connection that provides view of data on wcfs
// filesystem as of particular database state.
//
......
......@@ -17,6 +17,7 @@
// See COPYING file for full licensing terms.
// See https://www.nexedi.com/licensing for rationale and options.
#include "wcfs.h"
#include "wcfs_watchlink.h"
// _openwatch opens new watch link on wcfs.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment