This file is indexed.

/usr/include/libgoffice-0.8/goffice/ms-compat/go-ms-parser.h is in libgoffice-0.8-dev 0.8.17-8.

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
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * go-drawing-ms.h: MS Office Graphic Object I/O support
 *
 * Author:
 *    Michael Meeks (michael@ximian.com)
 *    Jody Goldberg (jody@gnome.org)
 *    Christopher James Lahey <clahey@ximian.com>
 *
 * (C) 1998-2004 Michael Meeks, Jody Goldberg, Chris Lahey
 */

#ifndef GO_MS_PARSER_H
#define GO_MS_PARSER_H

#include <gsf/gsf.h>

G_BEGIN_DECLS

#define GO_MS_PARSER_STACK_TOP(stack) ((stack) ? (GOMSParserRecord *) (stack)->data : NULL)
#define GO_MS_PARSER_STACK_SECOND(stack) ((stack) && (stack)->next ? (GOMSParserRecord *) (stack)->next->data : NULL)

typedef struct
{
	guint  typecode;
	const char *name;
	gboolean    is_container;
	gboolean    do_read; /* If false, data will be NULL.  Ignored for containers. */
	int min_record_size;
	int max_record_size;
} GOMSParserRecordType;

typedef struct {
	guint16 opcode;
	guint8 vers;
	guint16 inst;
	guint32 length;
	guint32 length_remaining;
	gpointer parse_state;
	const GOMSParserRecordType *type;
} GOMSParserRecord;

/* stack is of type GOMSParserRecord */
typedef void (*GOMSParserHandleAtom) (GOMSParserRecord *record, GSList *stack, const guint8 *data, GsfInput *input, GError **err, gpointer user_data);
typedef void (*GOMSParserStartContainer) (GSList *stack, GsfInput *input, GError **err, gpointer user_data);
typedef void (*GOMSParserEndContainer) (GSList *stack, GsfInput *input, GError **err, gpointer user_data);

typedef struct {
	GOMSParserHandleAtom handle_atom;
	GOMSParserStartContainer start_container;
	GOMSParserEndContainer end_container;
} GOMSParserCallbacks;

void go_ms_parser_read        (GsfInput   *input,
			       gsf_off_t   length,
			       const GOMSParserRecordType *types,
			       guint type_count,
			       GOMSParserCallbacks *callbacks,
			       gpointer user_data,
			       GError    **err);
#if 0
int             go_ms_parser_write       (GODrawing  *drawing,
					  GsfOutput  *output);
#endif

G_END_DECLS

#endif /* GO_MS_PARSER_H */