This file is indexed.

/usr/include/libmemphis-0.2/memphis/memphis-rule-set.h is in libmemphis-0.2-dev 0.2.3-2.

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
/*
 * Memphis - Cairo Rederer for OSM in C
 * Copyright (C) 2009  Simon Wenner <simon@wenner.ch>
 *
 * This library 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 library 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 St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef _MEMPHIS_RULE_SET
#define _MEMPHIS_RULE_SET

#include <glib-object.h>
#include "memphis-rule.h"

G_BEGIN_DECLS

#define MEMPHIS_TYPE_RULE_SET memphis_rule_set_get_type()

#define MEMPHIS_RULE_SET(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), MEMPHIS_TYPE_RULE_SET, MemphisRuleSet))

#define MEMPHIS_RULE_SET_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), MEMPHIS_TYPE_RULE_SET, MemphisRuleSetClass))

#define MEMPHIS_IS_RULE_SET(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MEMPHIS_TYPE_RULE_SET))

#define MEMPHIS_IS_RULE_SET_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), MEMPHIS_TYPE_RULE_SET))

#define MEMPHIS_RULE_SET_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), MEMPHIS_TYPE_RULE_SET, MemphisRuleSetClass))

typedef struct {
  GObject parent;
} MemphisRuleSet;

typedef struct {
  GObjectClass parent_class;
} MemphisRuleSetClass;

GType memphis_rule_set_get_type (void);

MemphisRuleSet* memphis_rule_set_new ();
void memphis_rule_set_free (MemphisRuleSet *rules);

void memphis_rule_set_load_from_file (MemphisRuleSet *rules,
    const gchar *filename,
    GError **error);
void memphis_rule_set_load_from_data (MemphisRuleSet *rules,
    const gchar *data,
    guint size,
    GError **error);

void memphis_rule_set_set_bg_color (MemphisRuleSet *rules,
    guint8 r, guint8 g, guint8 b, guint8 a);
void memphis_rule_set_get_bg_color (MemphisRuleSet *rules,
    guint8 *r, guint8 *g, guint8 *b, guint8 *a);

GList* memphis_rule_set_get_rule_ids (MemphisRuleSet *rules);

void memphis_rule_set_set_rule (MemphisRuleSet *rules, MemphisRule *rule);
MemphisRule* memphis_rule_set_get_rule (MemphisRuleSet *rules, const gchar *id);

gboolean memphis_rule_set_remove_rule (MemphisRuleSet *rules, const gchar *id);

G_END_DECLS

#endif /* _MEMPHIS_RULE_SET */