This file is indexed.

/usr/include/TeXmacs.h is in texmacs 1:1.0.7.14-1.

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
83
84
85
86
87
88
/******************************************************************************
* MODULE     : TeXmacs.h
* DESCRIPTION: Include file for communication of extern packages with TeXmacs
* COPYRIGHT  : (C) 1999  Joris van der Hoeven
*******************************************************************************
* This software falls under the GNU general public license version 3 or later.
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
*******************************************************************************
* The TeXmacs communication protocol works as follows:
*   - First of all, the protocol is dynamic. All protocols define
*     the abstract structures 'TeXmacs_exports' and 'package_exports'.
*     These structures contain the version of the protocol used
*     and the versions of TeXmacs and the package
*   - Version n of the concrete protocol implements two structures
*     'TeXmacs_exports_n' and 'package_exports_n'.
*     The first structure contains all routines and data of TeXmacs,
*     which may be necessary for the package.
*     The structure 'package_exports' contains all routines and data
*     of the package, which should be visible for TeXmacs
*   - Now the package has to be a dynamically linkable library,
*     which implements a function
*        package_exports* get_my_package (int version);
*     In order to link your package to TeXmacs, you will now have to
*     call the TeXmacs function
*        void package_declare (string name, string lib, string f, string init);
*     Here 'name' is the name of your package under TeXmacs,
*     'lib' the name of the library, 'f' the function 'get_my_package' and
*     'init' an initialization string.
******************************************************************************/

#ifndef __TEXMACS_H
#define __TEXMACS_H

#if defined (__cplusplus)
extern "C" {
#endif

/******************************************************************************
* Any communication protocol contains at least the following
******************************************************************************/

typedef struct TeXmacs_exports {
  char* version_protocol;
  char* version_TeXmacs;
} TeXmacs_exports;

typedef struct package_exports {
  char* version_protocol;
  char* version_package;
} package_exports;

/******************************************************************************
* The first TeXmacs <-> package communication protocol from September 1999
******************************************************************************/

typedef struct TeXmacs_exports_1 {
  char* version_protocol; /* "TeXmacs communication protocol 1" */
  char* version_TeXmacs;
} TeXmacs_exports_1;

typedef struct package_exports_1 {
  char* version_protocol; /* "TeXmacs communication protocol 1" */
  char* version_package;

  char* (*install) (TeXmacs_exports_1* TeXmacs,
		    char* options, char** errors);
  /* Installation routine for extern package.
     TeXmacs: pointer to routines exported by TeXmacs
     options: a string with installation option (freed by TeXmacs)
     *errors: contains error and warning messages (freed by TeXmacs)
     returned string: status of installation (freed by TeXmacs)
                    : NULL indicates a pure error */

  char* (*evaluate) (char* what, char* session, char** errors);
  /* Interactive evaluation routine for shells.
     what: string to be evaluated (freed by TeXmacs)
     session: name of your session ("default" by default, freed by TeXmacs)
     *errors: contains error and warning messages (freed by TeXmacs)
     returned string: result of the evaluation (freed by TeXmacs)
                    : NULL indicates a pure error */
} package_exports_1;

#if defined (__cplusplus)
}
#endif

#endif /* __TEXMACS_H */