This file is indexed.

/usr/include/c_icap/commands.h is in libicapapi-dev 1:0.1.6-1ubuntu1.

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
/*
 *  Copyright (C) 2004-2008 Christos Tsantilas
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This program 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
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *  MA  02110-1301  USA.
 */

#ifndef __COMMANDS_H
#define __COMMANDS_H

#include "c-icap.h"

#define COMMANDS_BUFFER_SIZE 128

#define NULL_CMD              0
#define MONITOR_PROC_CMD      1
#define CHILDS_PROC_CMD       2
#define MONITOR_PROC_POST_CMD 4
#define ALL_PROC_CMD          7
#define CHILD_START_CMD       8

typedef struct ci_command{
     char *name;
     int type;
     void *data;
     union {
         void (*command_action)(char *name,int type,char **argv);
         void (*command_action_extend)(char *name, int type, void *data);
     };
} ci_command_t;


CI_DECLARE_FUNC(void) register_command(char *name,int type, void (*command_action)(char *name,int type, char **argv));
CI_DECLARE_FUNC(void) register_command_extend(char *name, int type, void *data,
                                              void (*command_action) (char *name, int type, void *data));
CI_DECLARE_FUNC(void) reset_commands();
CI_DECLARE_FUNC(int) execute_command(ci_command_t *command,char *cmdline,int exec_type);
CI_DECLARE_FUNC(ci_command_t) *find_command(char *cmd_line);
CI_DECLARE_FUNC(int) execure_start_child_commands();

#endif /*__COMMANDS_H*/