summaryrefslogtreecommitdiff
path: root/src/api/procedure.h
blob: 4401658d9c3d2fc622ce5e6a766a7e6f929b54cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//------------------------------------------------------------------------------
// Author: Andrey Kuznetsov
// Description: Abstraction of operation (CIFS or NFS)
// Copyright (c) 2013 EPAM Systems
//------------------------------------------------------------------------------
/*
    This file is part of Nfstrace.

    Nfstrace is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, version 2 of the License.

    Nfstrace is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Nfstrace.  If not, see <http://www.gnu.org/licenses/>.
*/
//------------------------------------------------------------------------------
#ifndef PROCEDURE_H
#define PROCEDURE_H
//------------------------------------------------------------------------------
#include <sys/time.h>

#include "session.h"
//------------------------------------------------------------------------------
namespace NST
{
namespace API
{

template<typename ProcedureType>
struct Procedure
{
    ProcedureType call;
    ProcedureType reply;

    const struct Session* session;
    const struct timeval* ctimestamp;
    const struct timeval* rtimestamp;
};

} // namespace API
} // namespace NST
//------------------------------------------------------------------------------
#endif//PROCEDURE_H
//------------------------------------------------------------------------------