• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *
3  *  BlueZ - Bluetooth protocol stack for Linux
4  *
5  *  Copyright (C) 2002-2010  Marcel Holtmann <marcel@holtmann.org>
6  *
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21  *
22  */
23 
24 extern int lineno;
25 
26 struct keyword_t {
27 	char *string;
28 	int type;
29 };
30 
31 extern struct keyword_t rfcomm_keyword[];
32 
33 int rfcomm_find_keyword(struct keyword_t *keyword, char *string);
34 
35 #define MAXCOMMENTLEN  100
36 
37 struct rfcomm_opts {
38 	int bind;
39 	bdaddr_t bdaddr;
40 	int channel;
41 	char comment[MAXCOMMENTLEN + 1];
42 };
43 
44 extern struct rfcomm_opts rfcomm_opts[RFCOMM_MAX_DEV];
45 
46 int rfcomm_read_config(char *filename);
47