summaryrefslogtreecommitdiff
path: root/ohmd
AgeCommit message (Collapse)AuthorFilesLines
2007-09-24add initializing stage to ohm-confRob Taylor3-4/+49
Adds an initializing state to OhmConf in which no key-changed signals are emitted. Any keys changed in this state are flagged as touched. When switched out of initialising state, key-changed signals are emitted for all touched keys. Modifies OhmModule to switch the OhmConf into initalising state when calling the init method of the loaded modules, swithing back to normal when all modules have been initialised.
2007-09-05add some debug for which plugin changed which keyRob Taylor1-0/+1
2007-08-22remove test for OhmConfObj from ohm-test.cRob Taylor1-6/+0
OhmConfObj exists no more, so remove the test.
2007-08-22covert OhmKeystore to use new OhmCOnf key iteratorRob Taylor1-18/+16
Covert OhmKeystore to use new ohm_conf_keys_foreach.
2007-08-22Add ohm_conf_keys_length methodRob Taylor2-3/+10
Adds ohm_conf_keys_length method to OhmConf to return the number of keys stored.
2007-08-22replace ohm_conf_get_keys with ohm_conf_keys_foreach and remove OhmConfobjRob Taylor3-134/+76
Replace the inefficent and abi-messy ohm_conf_get_keys with an g_hash style iterator. Remove OhmConfObj and replace with a small slice-allocated struct.
2007-08-22allow a plugin to have no defaults ini file.Rob Taylor1-1/+1
Allow a plugin to have no defaults ini file, just output a debug message in this case rather than g_error.
2007-08-22clean out the temp plugin install directory in run-ohm.shRob Taylor1-0/+1
If run-ohm.sh is not invoked with --skip-plugin-install, clean out the temp dir before installing the plugins.
2007-08-22support for a plugin to listen on its own keysRob Taylor3-3/+19
Allow a plugin to listen to changes on a key it sets. A plugin will not be notified when it sets the key itself only when another plugin sets the key.
2007-08-16ohm-plugin fixRob Taylor1-1/+1
2007-08-15prefix struct names with underscore in public apiRob Taylor2-9/+11
In preparation for having to cope with gtk-doc's limitations, prefix struct names with underscore in ohm-plugin.h.
2007-08-13add ohm-plugin-internal.h to ohmd_SOURCESRob Taylor1-0/+1
Last commit missed adding ohm-plugin-internal.h to ohmd_SOURCES in ohmd/Makefile.am, causing make dist to not include it.
2007-08-13split ohm-plugin.h into ohm-plugin.h and ohm-plugin-internal.hRob Taylor4-48/+75
For less abi visibility to plugins and for better docs, strip ohm-plugin.h down to the bare essentials and make OhmPlugin an opaque pointer. The actual Gobject definition and the methods used by ohmd are now in ohm-plugin-internal.h.
2007-08-13initialise plugin's conf in initRob Taylor1-1/+1
Was bring done in _new, which was a little odd.
2007-08-08try to free up some more memoryRob Taylor1-1/+3
Moves g_option_context_free earlier, and calls dbus_shutdown at end. The dbus_shutdown call is not really necessary but lets us know when we're leaking dbus connections. Moving g_option_context_free earlier doesnt help an awful lot as valgrind still reports leaks in the GOptionContext code...
2007-08-08remove unneeded scriptsRob Taylor2-22/+0
Removes massif-ohm.sh and valgrind-ohm.sh as no longer needed.
2007-08-08add --time option to run-ohm.shRob Taylor1-3/+10
Adds a --time option to run-ohm.sh to measure startup time.
2007-08-04fix valgrind warnings in OhmPluginRob Taylor1-1/+6
Actually free the libhal context if allocated. Unload the module at the end - we can assume that OhmModule isn't holding onto any data by the time it unloads the plugin.
2007-08-04unref owned objects in dispose, not finalizeRob Taylor2-9/+46
Modified ohm-keystore and ohm-manager to unref owned objects in dispose, not finalize.
2007-08-04fix valgrind warnings in OhmModuleRob Taylor1-24/+17
Changes the 'interested' hash table to store a GList * in its key rather than GList **, saves a 4 byte alloc that valgrind complained about. Free up mod_loaded after plugin loading.
2007-08-04make run-ohm.sh's valgrind running more usefulRob Taylor2-2/+760
Switches off g_slice and run with a supression file.
2007-08-03add --efence and --underfence options to run-ohm.shRob Taylor3-0/+14
Adds options to run ohmd with electric-fence, checking both underruns and overruns.
2007-08-03fix crasher in ohmd/ohm-plugin.cRob Taylor1-1/+0
ohm_plugin_free_hal_table was removing items from hal_udis as it iterated them. That's bad, mmkay?
2007-08-03fix memleak in OhmModuleRob Taylor1-1/+1
Fixes a memleak in ohm_module_read_defaults, where module->priv->mod_require was still being filled with strdups of the requires. (a3d42549 changed the logic so the results of g_key_file_get_string_list were kept around until the mod_* lists were empty).
2007-08-03add command line options for --g-fatal-warnings and --g-fatal-criticalRob Taylor2-2/+18
Gives ohmd two new command line options: --g-fatal-warnings that makes g_warnings fatal and exits, and --g-fatal-critical, which makes g_critical cause a fatal error. Updates run-ohm.sh to always run with --g-fatal-critical
2007-08-03add SIGINT handler to ohmdRob Taylor1-2/+14
Add a SIGINT handler that quits the mainloop. Good for testing exiting..
2007-08-03make run-ohm.sh more capableRob Taylor1-4/+25
Adds options --memcheck and --massif for running ohmd with the corresponding valgrid tools. Also adds a --help option.
2007-08-01change plugin interface to be more efficientRob Taylor4-327/+248
This patch converts the plugin interface to use static dats for interested, requires, provides, suggests and prevents. It defines a set of macros for plugin authors to use to make declaring these nice and simple. It also changes OhmPluginInfo to OhmPluginDesc, cutting down the functions a plugin author needs to export to initialize, destroy and notify - of course, all optional. As the keys are all now const data, this cuts down strcpys dramitically so memory use and fragmentation should be better. This also fixes a few memory leaks.
2007-08-01add --debug option to run-ohm.shRob Taylor1-1/+8
Adds an extra option --debug to run-ohm.sh that runs ohmd in gdb, passing in --no-daemon -- verbose and the remaining flags as the arguments to run with.
2007-07-25fix loading of the plugin conf directory when installed properlyRichard Hughes2-13/+18
Fix Robs last commit which broke installation on the OLPC
2007-07-23allow running of ohmd uninstalledRob Taylor4-23/+37
This allows you to use ohmd/run-ohmd.sh to run ohmd uninstalled. It will installed the plugins and config to a temporary directory, a la hal. The install step can be skipped with --skit-plugin-install. This also cleans up a lot of automake usage and ups automake dependancy to 1.10
2007-07-23Correct some documentation of OhmConf.Rob Taylor1-8/+20
Corrects documentation for ohm_conf_get_keys, ohm_conf_free_keys and ohm_conf_add_key
2007-07-23Don't expose signals in class structure of OhmConfRob Taylor2-8/+2
To cut down abi exposure, don't expose key-added and key-change in the class structure.
2007-07-23Use $(LIBTOOL) rather then executing libtool directlyRob Taylor1-2/+2
For cross compile buildtools, use $(LIBTOOL) rather than executing libtool directly for running dbus-binding-tool.
2007-07-12watch the hal device for either a property changed _or_ a device conditionRichard Hughes1-2/+4
2007-07-11don't send hal changes to plugins that don't careRichard Hughes1-1/+1
2007-07-11fix two typosRichard Hughes1-2/+2
2007-07-11add xrandr functionalityRichard Hughes2-0/+21
2007-07-11support more than one udi per plugin, fixes lid detetection in buttons pluginRichard Hughes2-38/+104
2007-07-11add a new buttons plugin to detect a hal power button eventRichard Hughes3-10/+51
Also make the plugins conf have a .ini extension
2007-07-05use ohm path. oopsRichard Hughes1-1/+1
2007-06-25have a move aroundRichard Hughes1-0/+1
2007-06-25actually change the backlight brightnessRichard Hughes2-0/+8
2007-06-25more fixups, and less memoryRichard Hughes5-130/+146
2007-06-13licence under lgplRichard Hughes17-17/+17
2007-06-08no multiuser stuffRichard Hughes4-278/+1
2007-01-28fix module unloading (make static) and also inprove error handling in ↵Richard Hughes3-20/+9
libohm. Also Impliment GetVersion
2007-01-28export the version string into the codeRichard Hughes2-4/+8
2007-01-27rename the methods from the gpm names to GetVersion and GetPluginsRichard Hughes3-29/+20
2007-01-27move user test from manager to test programRichard Hughes3-86/+107