This file is indexed.

/usr/include/jsonrpccpp/stubgen/servertemplate.h is in libjsonrpccpp-dev 0.7.0-1build2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
50
51
52
53
54
55
56
57
58
59
60
/*************************************************************************
 * libjson-rpc-cpp
 *************************************************************************
 * @file    servertemplate.h
 * @date    01.05.2013
 * @author  Peter Spiess-Knafl <peter.knafl@gmail.com>
 * @license See attached LICENSE.txt
 ************************************************************************/

#ifndef JSONRPC_CPP_SERVERTEMPLATE_H
#define JSONRPC_CPP_SERVERTEMPLATE_H

#define TEMPLATE_SERVER_STUB "\
/**\n\
 * THIS FILE IS GENERATED BY jsonrpcstub, DO NOT CHANGE IT!!!!!\n\
 */\n\
\n\
#ifndef _<STUBNAME>_H_\n\
#define _<STUBNAME>_H_\n\
\n\
#include <jsonrpc/server.h>\n\
\n\
class <stubname> : public jsonrpc::AbstractServer<<stubname>>\n\
{\n\
    public:\n\
        <stubname>(jsonrpc::AbstractServerConnector& conn) :\n\
            jsonrpc::AbstractServer<<stubname>>(conn) \n\
        {\n\
<procedurebindings>\n\
        }\n\
        \n\
<proceduredefinitions>\n\
<abstractdefinitions>\n\
};\n\
#endif //_<STUBNAME>_H_\n\
"

#define TEMPLATE_SERVER_METHODBINDING "\
            this->bindAndAddMethod(new jsonrpc::Procedure(\"<procedurename>\", <paramtype>, <returntype>, <parameterlist> NULL), &<stubname>::<procedurename>I);"
#define TEMPLATE_SERVER_NOTIFICATIONBINDING "\
            this->bindAndAddNotification(new jsonrpc::Procedure(\"<procedurename>\", <paramtype>, <parameterlist> NULL), &<stubname>::<procedurename>I);"

#define TEMPLATE_SERVER_METHODDEFINITION "\
        inline virtual void <procedurename>I(const Json::Value& request, Json::Value& response) \n\
        {\n\
            response = this-><procedurename>(<parametermapping>);\n\
        }\n\
"
#define TEMPLATE_SERVER_NOTIFICAITONDEFINITION "\
        inline virtual void <procedurename>I(const Json::Value& request) \n\
        {\n\
            this-><procedurename>(<parametermapping>);\n\
        }\n\
"

#define TEMPLATE_SERVER_ABSTRACTDEFINITION "\
        virtual <returntype> <procedurename>(<parameterlist>) = 0;\n\
"

#endif // JSONRPC_CPP_SERVERTEMPLATE_H