Home | History | Annotate | Download | only in src
      1 /*
      2  *
      3  *  BlueZ - Bluetooth protocol stack for Linux
      4  *
      5  *  Copyright (C) 2000-2001  Qualcomm Incorporated
      6  *  Copyright (C) 2002-2003  Maxim Krasnyansky <maxk (at) qualcomm.com>
      7  *  Copyright (C) 2002-2010  Marcel Holtmann <marcel (at) holtmann.org>
      8  *
      9  *
     10  *  This program is free software; you can redistribute it and/or modify
     11  *  it under the terms of the GNU General Public License as published by
     12  *  the Free Software Foundation; either version 2 of the License, or
     13  *  (at your option) any later version.
     14  *
     15  *  This program is distributed in the hope that it will be useful,
     16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     18  *  GNU General Public License for more details.
     19  *
     20  *  You should have received a copy of the GNU General Public License
     21  *  along with this program; if not, write to the Free Software
     22  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     23  *
     24  */
     25 
     26 struct main_opts {
     27 	char		host_name[40];
     28 	unsigned long	flags;
     29 	char		*name;
     30 	uint32_t	class;
     31 	uint16_t	pageto;
     32 	uint32_t	discovto;
     33 	uint32_t	pairto;
     34 	uint16_t	link_mode;
     35 	uint16_t	link_policy;
     36 	gboolean	remember_powered;
     37 	gboolean	reverse_sdp;
     38 	gboolean	name_resolv;
     39 	gboolean	debug_keys;
     40 	gboolean	attrib_server;
     41 	gboolean	le;
     42 
     43 	uint8_t		mode;
     44 	uint8_t		discov_interval;
     45 	char		deviceid[15]; /* FIXME: */
     46 };
     47 
     48 enum {
     49 	HCID_SET_NAME,
     50 	HCID_SET_CLASS,
     51 	HCID_SET_PAGETO,
     52 	HCID_SET_DISCOVTO,
     53 };
     54 
     55 extern struct main_opts main_opts;
     56 
     57 void btd_start_exit_timer(void);
     58 void btd_stop_exit_timer(void);
     59 
     60 gboolean plugin_init(GKeyFile *config, const char *enable,
     61 							const char *disable);
     62 void plugin_cleanup(void);
     63 
     64 void rfkill_init(void);
     65 void rfkill_exit(void);
     66