L4Re/departure

Annotated libfsserver/include/fsserver/file_provider.h

219:c9eb29eecf69
2021-10-16 Paul Boddie Renamed FileNotification to Provider.
paul@200 1
/*
paul@200 2
 * An object encapsulating file resources.
paul@200 3
 *
paul@200 4
 * Copyright (C) 2021 Paul Boddie <paul@boddie.org.uk>
paul@200 5
 *
paul@200 6
 * This program is free software; you can redistribute it and/or
paul@200 7
 * modify it under the terms of the GNU General Public License as
paul@200 8
 * published by the Free Software Foundation; either version 2 of
paul@200 9
 * the License, or (at your option) any later version.
paul@200 10
 *
paul@200 11
 * This program is distributed in the hope that it will be useful,
paul@200 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
paul@200 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
paul@200 14
 * GNU General Public License for more details.
paul@200 15
 *
paul@200 16
 * You should have received a copy of the GNU General Public License
paul@200 17
 * along with this program; if not, write to the Free Software
paul@200 18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
paul@200 19
 * Boston, MA  02110-1301, USA
paul@200 20
 */
paul@200 21
paul@200 22
#pragma once
paul@200 23
paul@200 24
#include <fsserver/page_mapper.h>
paul@219 25
#include <fsserver/provider.h>
paul@200 26
paul@200 27
paul@200 28
paul@200 29
/* An object providing access to file functionality. */
paul@200 30
paul@219 31
class FileProvider : public Provider
paul@200 32
{
paul@200 33
protected:
paul@200 34
    PageMapper *_mapper;
paul@200 35
paul@200 36
public:
paul@200 37
    explicit FileProvider(PageMapper *mapper);
paul@200 38
paul@200 39
    virtual ~FileProvider();
paul@200 40
paul@200 41
    PageMapper *mapper();
paul@200 42
};
paul@200 43
paul@200 44
// vim: tabstop=4 expandtab shiftwidth=4