This file is indexed.

/usr/include/gnokii/call.h is in libgnokii-dev 0.6.30+dfsg-1+b3.

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
89
90
91
92
93
94
95
96
97
98
/*

  $Id$

  G N O K I I

  A Linux/Unix toolset and driver for the mobile phones.

  This file is part of gnokii.

  Gnokii 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 2 of the License, or
  (at your option) any later version.

  Gnokii 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 gnokii; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

  Copyright (C) 1999-2000 Hugh Blemings, Pavel Janik
  Copyright (C) 2002-2003 Pawel Kot, BORBELY Zoltan <bozo@andrews.hu>

  Include file for the call management library.

*/

#ifndef _gnokii_call_h
#define _gnokii_call_h

#include <gnokii/error.h>

typedef enum {
	GN_CALL_Voice,		/* Voice call */
	GN_CALL_NonDigitalData,	/* Data call on non digital line */
	GN_CALL_DigitalData	/* Data call on digital line */
} gn_call_type;

typedef enum {
	GN_CALL_Never,			/* Never send my number */
	GN_CALL_Always,			/* Always send my number */
	GN_CALL_Default			/* Use the network default settings */
} gn_call_send_number;

typedef enum {
	GN_CALL_Idle,
	GN_CALL_Ringing,
	GN_CALL_Dialing,
	GN_CALL_Incoming,		/* Incoming call */
	GN_CALL_LocalHangup,		/* Local end terminated the call */
	GN_CALL_RemoteHangup,		/* Remote end terminated the call */
	GN_CALL_Established,		/* Remote end answered the call */
	GN_CALL_Held,			/* Call placed on hold */
	GN_CALL_Resumed			/* Held call resumed */
} gn_call_status;

typedef struct {
	gn_call_type type;
	char number[GN_PHONEBOOK_NUMBER_MAX_LENGTH + 1];
	char name[GN_PHONEBOOK_NAME_MAX_LENGTH + 1];
	gn_call_send_number send_number;
	int call_id;
} gn_call_info;

typedef struct {
	int call_id;
	int channel;
	char number[GN_PHONEBOOK_NUMBER_MAX_LENGTH + 1];
	char name[GN_PHONEBOOK_NAME_MAX_LENGTH + 1];
	gn_call_status state;
	gn_call_status prev_state;
} gn_call_active;

/* Call functions and structs */
typedef struct {
	struct gn_statemachine *state;
	int call_id;
	gn_call_status status;
	gn_call_type type;
	char remote_number[GN_PHONEBOOK_NUMBER_MAX_LENGTH + 1];
	char remote_name[GN_PHONEBOOK_NAME_MAX_LENGTH + 1];
	struct timeval start_time;
	struct timeval answer_time;
	int local_originated;
} gn_call;

#define	GN_CALL_MAX_PARALLEL 2

GNOKII_API void gn_call_notifier(gn_call_status call_status, gn_call_info *call_info, struct gn_statemachine *state);
GNOKII_API gn_call *gn_call_get_active(int call_id);
GNOKII_API gn_error gn_call_answer(int call_id);
GNOKII_API gn_error gn_call_cancel(int call_id);

#endif /* _gnokii_call_h */