summaryrefslogtreecommitdiff
path: root/hald/logger.c
AgeCommit message (Collapse)AuthorFilesLines
2006-08-21remove shared.h for addons/prober and some little fixesDanny Kukawka1-21/+85
This remove hald/linux2/probing/shared.h for better reuse of related functions and to avoid compiler warnings about defined but unused functions. Major changes: * removed shared.h and switched addons and prober to use with logger.[c,h] the same functions and format as the hal daemon. * split off powermanagement related code from util.c/h to a new file util_pm.[c,h]. * added a new file util_helper.[c,h] to collect functions drop_privileges() and hal_set_proc_title*(). * removed unused function strdup_valid_utf8() from probe-storage.c and updated hal_util_strdup_valid_utf8() to do the same as strdup_valid_utf8() before. * fixed compiler warning in ids.c (use now *_ids_free() functions instead of call free() directly without checks). * fixed compiler warning in addon-macbookpro-backlight.c (added '#if 0' around unused function)
2006-08-14share is_mounted_by_hald() and non-gcc nitsArtem Kachitchkine1-1/+1
Moved linux2/blockdev.c:is_mounted_by_hald() to util.c:hal_util_is_mounted_by_hald() so all backends can use it. Fixed some compilation warnings when compiling with non-GNU compiler and libc.
2005-11-02Update to Academic Free License 2.1. Also fix all C source and headerDavid Zeuthen1-1/+1
files.
2005-10-26; hald/hald.h : Added new command line option '--use-syslog' to write debugDanny Kukawka1-9/+37
messages to syslog instead of stderr. With this option HAL writes debug messages also if run as daemon. Removed useless call of logger_init (). Moved first debug message to reduce unneeded double check of opt_become_daemon. ; hald/logger.h: Added write to syslog instead of stderr. Remove empty and useless function logger_init ().
2005-07-29The FSF moved to a new address, so I updated all license headers and theDavid Zeuthen1-1/+1
COPYING file. Patch from Danny Kukawka <danny.kukawka@web.de>.
2004-08-22Only invoke callouts if they have the .hal extension. Export HALD_VERBOSEDavid Zeuthen1-6/+38
if the hald instance is started with verbose. Add HALD_STARTUP resp. HALD_SHUTDOWN only if the callout is in response to hald starting up/shutting down. Add an verbose option. Use the HALD_VERBOSE environment variable. Postpone daemonization until we are done probing. Move hald_is_[verbose|initialising|is_shutting_down] here We can now always assume we got a parent We can now always assume we got a parent Complete rewrite of probing code; now we construct a list of ''coldplug events'' and feed them to the two new functions add_device() and rem_device(); this unifies a few codepaths and it's much faster, cleaner and just yummier. Also ensure that callouts are run sequentially. New functions (logger_emit): Print time and don't print function name Add logger_[enable|disable]. Use /tmp for the temporary file (fs_table_has_volume): Remove debug spew (add_udi): Log a message to the syslog on success (remove_udi): Log a message to the syslog on success (clean): Log a message to the syslog on success (main): Use HALD_VERBOSE. When invoked for the ''computer'' device object on hald startup, automatically clean the fstab (but only if using a managed keyword). Don't remove entries on hald shutdown. In line with the osspec.c changes (sequential callouts) we now get a fully sanitized /etc/fstab at hald startup, Yay! Less syslog spamming Less syslog spamming (main): Less syslog spamming
2004-04-03Merge hal-gobject-branch back to HEADDavid Zeuthen1-2/+1
2004-03-14Added first stab of rewrite of linux specific parts - the new code is a lotDavid Zeuthen1-1/+2
more object oriented and thus more compact; it's currently disabled until it's more tested; you have to manually enable by editing hald/Makefile.am Add new linux specific parts; currently disabled add ds_device_async_wait_for_property() Add device member used in for wait_for_property (async_find_check_new_addition): add wait_for_property check (ds_device_async_wait_for_property): new function new file new files new files new file new file new file new file new file new files new file new file new file new file
2004-03-03Major reformatting patch - seems that everyone is following another codingDavid Zeuthen1-29/+41
style than me so I chose the GNOME coding guidelines, indent -kr -i8 -pcs -lps -psl, and did some manual reformatting
2003-12-21add tools directoryDavid Zeuthen1-1/+4
fixup doxygen grouping fixup doxygen grouping Don't print out trace priority logging statements Add mount point detection by monitoring /etc and looking at /etc/mtab. Several new functions. new function Add _detection_done() method that is called when device detection (on startup of the HAL daemon) is done Call _detection_done (ospec_hotplug): Handle input being hotplugged added doxygen comments added doxygen comments added doxygen comments
2003-12-20Remove agents/linux26/sysfs, Add hald/linux and tools/linux. ChangeDavid Zeuthen1-0/+103
RECURSIVE to NO. Add AM_PATH_PYTHON. Add --with-hwdata option and search for places normally placed at RedHat and Debian. Require version 0.20 of D-BUS (Martin Waitz). Make USE_MAINTAINER_MODE an AM_CONDITIONAL. Don't check for libpci. Default D-BUS system.d directory to our own prefix. Add --with-hotplug option to specify the hotplug.d directory. Default to /etc/hotplug.d. Add tools/device-manager/Makefile. Print out HWDATA_DIR, LINUX_HOTPLUG_DIR. All source files, s/LOG_/HAL_/. Fixup Doxygen documentation new file change logging macros add logger.c to SOURCES Use EV_SYN if EV_RST is not defined add device-manager to SUBDIRS new file; generates Const.py with correct version and paths. Installs into the python program and data into $(datadir)/hal/device-manager. Links from $(bindir) to the installation location. new file Removed from CVS; now autogenerated from Const.py.in Prefix with Const.DATADIR when loading png files Prefix with Const.DATADIR when loading glade file