This file is indexed.

/usr/include/alsaplayer/prefs.h is in libalsaplayer-dev 0.99.81-1ubuntu3.

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
/*  prefs.h - Preferences system header
 *  Copyright (C) 2002 Andy Lo A Foe <andy@alsaplayer.org>
 *
 *  This file is part of AlsaPlayer.
 *
 *  AlsaPlayer is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  AlsaPlayer 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 General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, see <http://www.gnu.org/licenses/>.
 *
 *  Inspired by xine's prefs 
 *
 *
 *
 *  $Id: prefs.h 1344 2010-11-07 20:38:05Z dominique_libre $
 *
*/ 
#ifndef __prefs_h__
#define __prefs_h__

#ifdef __cplusplus
extern "C" {
#endif

struct _prefs_key {
	char *section;
	char *key;
	char *value;
	struct _prefs_key *next;
};

typedef struct _prefs_key prefs_key_t;

struct _prefs_handle {
	char *filename;
	int loaded;
	int count;
	prefs_key_t *keys;
	prefs_key_t *last;
};

typedef struct _prefs_handle prefs_handle_t;

prefs_handle_t *prefs_load(const char *filename);
void prefs_free(prefs_handle_t *prefs);

void prefs_set_int(prefs_handle_t *prefs, const char *section, const char *key, int val);
void prefs_set_string(prefs_handle_t *prefs, const char *section, const char *key, const char *val);
void prefs_set_float(prefs_handle_t *prefs, const char *section, const char *key, float val);
void prefs_set_bool(prefs_handle_t *prefs, const char *section, const char *key, int val);

int prefs_get_int(prefs_handle_t *prefs, const char *section, const char *key, int default_val);
const char *prefs_get_string(prefs_handle_t *prefs, const char *section, const char *key, const char *default_val);
float prefs_get_float(prefs_handle_t *prefs, const char *section, const char *key, float default_val);
int prefs_get_bool(prefs_handle_t *prefs, const char *section, const char *key, int default_val);

prefs_key_t* prefs_sort(prefs_handle_t *prefs);

int prefs_save(prefs_handle_t *prefs);

/* Global alsaplayer prefs handle. Only use if !NULL of course! */

extern prefs_handle_t *ap_prefs;

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* __prefs_h__ */