xref: /titanic_44/usr/src/cmd/hal/hald/hald.h (revision a38ddfee9c8c6b6c5a2947ff52fd2338362a4444)
1 /***************************************************************************
2  * CVSID: $Id$
3  *
4  * device_store.h : device store interface
5  *
6  * Copyright (C) 2003 David Zeuthen, <david@fubar.dk>
7  *
8  * Licensed under the Academic Free License version 2.1
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 #ifndef HALD_H
27 #define HALD_H
28 
29 #include <stdarg.h>
30 #include <stdint.h>
31 #include <dbus/dbus.h>
32 
33 #include "device_store.h"
34 
35 /**
36  *  @addtogroup HalDaemon
37  *
38  *  @{
39  */
40 
41 HalDeviceStore *hald_get_gdl (void);
42 HalDeviceStore *hald_get_tdl (void);
43 
44 void property_atomic_update_begin ();
45 void property_atomic_update_end ();
46 
47 extern dbus_bool_t hald_is_verbose;
48 extern dbus_bool_t hald_use_syslog;
49 extern dbus_bool_t hald_is_initialising;
50 extern dbus_bool_t hald_is_shutting_down;
51 
52 /* If this is defined, the amount of time, in seconds, before hald
53  * does an exit where resources are freed - useful for valgrinding
54  * and finding memory leaks; e.g. plug in a device, do something
55  * with the hal daemon and then look at the report
56  *
57  * Use hald/valgrind-hald.sh for this
58  */
59 /*#define HALD_MEMLEAK_DBG 60*/
60 
61 /**
62  *  @}
63  */
64 
65 #endif				/* HALD_H */
66