This file is indexed.

/usr/include/choreonoid-1.1/cnoid/src/Base/Plugin.h is in libcnoid-dev 1.1.0+dfsg-6.1+b4.

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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/**
   @author Shin'ichiro Nakaoka
*/

#ifndef CNOID_BASE_PLUGIN_H_INCLUDED
#define CNOID_BASE_PLUGIN_H_INCLUDED

#include "ExtensionManager.h"
#include "exportdecl.h"

namespace cnoid {

    class Item;
    class View;
    class ToolBar;
    class PluginImpl;

    class CNOID_EXPORT Plugin : public ExtensionManager
    {
    public:

	typedef Plugin* (*PluginEntry)();
	
	Plugin(const char* name);
	virtual ~Plugin();
	
	const char* name();
        
        virtual bool initialize();
        virtual bool finalize();

        const char* requisite(int index);
        int numRequisites();

        const char* oldName(int index);
        int numOldNames();
        
        virtual const char* description();
        
    protected:

	void setPluginScope(Item* item);
	void setPluginScope(View* view);
	void setPluginScope(ToolBar* toolBar);

        void require(const char* pluginName);
	void depend(const char* pluginName);

        /**
           When the plugin name is changed but the old project files should be loadable,
           specify old names of the plugin with this function in the constructor.
        */
        void addOldName(const char* name);

        static const char* LGPLtext();

    private:

        Plugin(const Plugin& org); // disable the copy constructor

        PluginImpl* impl;
        
    };
}


#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
#define CNOID_IMPLEMENT_PLUGIN_ENTRY(PluginTypeName) \
    extern "C" __declspec(dllexport) cnoid::Plugin* getChoreonoidPlugin() \
    {                                    \
        return new PluginTypeName();      \
    }
#else
#define CNOID_IMPLEMENT_PLUGIN_ENTRY(PluginTypeName) \
    extern "C" cnoid::Plugin* getChoreonoidPlugin() \
    {                                    \
        return new PluginTypeName();      \
    }
#endif


#endif