xref: /onnv-gate/usr/src/cmd/hal/hald/hald.h (revision 2912:85ea316d9c18)
1*2912Sartem /***************************************************************************
2*2912Sartem  * CVSID: $Id$
3*2912Sartem  *
4*2912Sartem  * device_store.h : device store interface
5*2912Sartem  *
6*2912Sartem  * Copyright (C) 2003 David Zeuthen, <david@fubar.dk>
7*2912Sartem  *
8*2912Sartem  * Licensed under the Academic Free License version 2.1
9*2912Sartem  *
10*2912Sartem  * This program is free software; you can redistribute it and/or modify
11*2912Sartem  * it under the terms of the GNU General Public License as published by
12*2912Sartem  * the Free Software Foundation; either version 2 of the License, or
13*2912Sartem  * (at your option) any later version.
14*2912Sartem  *
15*2912Sartem  * This program is distributed in the hope that it will be useful,
16*2912Sartem  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*2912Sartem  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*2912Sartem  * GNU General Public License for more details.
19*2912Sartem  *
20*2912Sartem  * You should have received a copy of the GNU General Public License
21*2912Sartem  * along with this program; if not, write to the Free Software
22*2912Sartem  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
23*2912Sartem  *
24*2912Sartem  **************************************************************************/
25*2912Sartem 
26*2912Sartem #ifndef HALD_H
27*2912Sartem #define HALD_H
28*2912Sartem 
29*2912Sartem #include <stdarg.h>
30*2912Sartem #include <stdint.h>
31*2912Sartem #include <dbus/dbus.h>
32*2912Sartem 
33*2912Sartem #include "device_store.h"
34*2912Sartem 
35*2912Sartem /**
36*2912Sartem  *  @addtogroup HalDaemon
37*2912Sartem  *
38*2912Sartem  *  @{
39*2912Sartem  */
40*2912Sartem 
41*2912Sartem HalDeviceStore *hald_get_gdl (void);
42*2912Sartem HalDeviceStore *hald_get_tdl (void);
43*2912Sartem 
44*2912Sartem void property_atomic_update_begin ();
45*2912Sartem void property_atomic_update_end ();
46*2912Sartem 
47*2912Sartem extern dbus_bool_t hald_is_verbose;
48*2912Sartem extern dbus_bool_t hald_use_syslog;
49*2912Sartem extern dbus_bool_t hald_is_initialising;
50*2912Sartem extern dbus_bool_t hald_is_shutting_down;
51*2912Sartem 
52*2912Sartem /* If this is defined, the amount of time, in seconds, before hald
53*2912Sartem  * does an exit where resources are freed - useful for valgrinding
54*2912Sartem  * and finding memory leaks; e.g. plug in a device, do something
55*2912Sartem  * with the hal daemon and then look at the report
56*2912Sartem  *
57*2912Sartem  * Use hald/valgrind-hald.sh for this
58*2912Sartem  */
59*2912Sartem /*#define HALD_MEMLEAK_DBG 60*/
60*2912Sartem 
61*2912Sartem /**
62*2912Sartem  *  @}
63*2912Sartem  */
64*2912Sartem 
65*2912Sartem #endif				/* HALD_H */
66