This file is indexed.

/usr/include/phoneui/phoneui-utils-sound.h is in libphone-ui-dev 1:0.0.1+git20110825-3build2.

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
/*
 *  Copyright (C) 2009, 2010
 *      Authors (alphabetical) :
 *		Tom "TAsn" Hacohen <tom@stosb.com>
 *
 * 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 Street, Fifth Floor, Boston, MA  02110-1301
 */

#ifndef _PHONEUI_UTILS_SOUND_H
#define _PHONEUI_UTILS_SOUND_H
#include <glib.h>

enum SoundControlType {
	CONTROL_SPEAKER = 0,
	CONTROL_MICROPHONE,
	CONTROL_END /* used to mark end */
};

enum SoundState {
	SOUND_STATE_CALL = 0,
	SOUND_STATE_IDLE,
	SOUND_STATE_SPEAKER,
	SOUND_STATE_NULL /* MUST BE LAST */
};

enum SoundStateType {
	SOUND_STATE_TYPE_DEFAULT = 0, /*make HANDSET the default*/
	SOUND_STATE_TYPE_HANDSET = 0,
	SOUND_STATE_TYPE_HEADSET,
	SOUND_STATE_TYPE_BLUETOOTH,
	SOUND_STATE_TYPE_NULL /* MUST BE LAST */
};

int phoneui_utils_sound_volume_get(enum SoundControlType type);
long phoneui_utils_sound_volume_raw_get(enum SoundControlType type);

int phoneui_utils_sound_volume_set(enum SoundControlType type, int percent);
int phoneui_utils_sound_volume_raw_set(enum SoundControlType type, long value);

int phoneui_utils_sound_volume_mute_get(enum SoundControlType type);
int phoneui_utils_sound_volume_mute_set(enum SoundControlType type, int mute);

int phoneui_utils_sound_volume_change_callback_set(void (*cb)(enum SoundControlType, int, void *), void *userdata);
int phoneui_utils_sound_volume_mute_change_callback_set(void (*cb)(enum SoundControlType, int, void *), void *userdata);
int phoneui_utils_sound_volume_save(enum SoundControlType type);

int phoneui_utils_sound_init(GKeyFile *keyfile);

int phoneui_utils_sound_deinit();

int phoneui_utils_sound_state_set(enum SoundState state, enum SoundStateType type);
enum SoundState phoneui_utils_sound_state_get();
enum SoundStateType phoneui_utils_sound_state_type_get();

void phoneui_utils_sound_profile_list(void (*callback)(GError *, char **, int, gpointer),
				void *userdata);

void phoneui_utils_sound_profile_set(const char *profile,
				void (*callback)(GError *, gpointer),
				void *userdata);

void phoneui_utils_sound_profile_get(void (*callback)(GError *, char *, gpointer),
					void *userdata);

void phoneui_utils_sound_play(const char *name, int loop, int length,
				void (*callback)(GError *, gpointer),
				void *userdata);
void phoneui_utils_sound_stop(const char *name,
				void (*callback)(GError *, gpointer),
				void *userdata);
#endif