root/src/add-ons/kernel/file_systems/userlandfs/server/IORequestInfo.h
/*
 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
 * Distributed under the terms of the MIT License.
 */
#ifndef USERLAND_FS_IO_REQUEST_INFO_H
#define USERLAND_FS_IO_REQUEST_INFO_H

#include <SupportDefs.h>


namespace UserlandFS {

struct IORequestInfo {
        off_t   offset;
        size_t  length;
        int32   id;
        bool    isWrite;
        bool    isVIP;

        IORequestInfo(int32 id, bool isWrite, off_t offset, size_t length,
                bool isVIP)
                :
                offset(offset),
                length(length),
                id(id),
                isWrite(isWrite),
                isVIP(isVIP)
        {
        }

        IORequestInfo(const IORequestInfo& other)
                :
                offset(other.offset),
                length(other.length),
                id(other.id),
                isWrite(other.isWrite),
                isVIP(other.isVIP)
        {
        }
};

}       // namespace UserlandFS


using UserlandFS::IORequestInfo;


#endif  // USERLAND_FS_IO_REQUEST_INFO_H