Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
|
|
OhmConfObj exists no more, so remove the test.
|
|
Covert OhmKeystore to use new ohm_conf_keys_foreach.
|
|
Adds ohm_conf_keys_length method to OhmConf to return the number of keys stored.
|
|
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.
|
|
Allow a plugin to have no defaults ini file, just output a debug message in this
case rather than g_error.
|
|
If run-ohm.sh is not invoked with --skip-plugin-install, clean out the temp dir
before installing the plugins.
|
|
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.
|
|
|
|
In preparation for having to cope with gtk-doc's limitations, prefix struct
names with underscore in ohm-plugin.h.
|
|
Last commit missed adding ohm-plugin-internal.h to ohmd_SOURCES in ohmd/Makefile.am, causing make dist to not include it.
|
|
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.
|
|
Was bring done in _new, which was a little odd.
|
|
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...
|
|
Removes massif-ohm.sh and valgrind-ohm.sh as no longer needed.
|
|
Adds a --time option to run-ohm.sh to measure startup time.
|
|
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.
|
|
Modified ohm-keystore and ohm-manager to unref owned objects in dispose, not finalize.
|
|
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.
|
|
Switches off g_slice and run with a supression file.
|
|
Adds options to run ohmd with electric-fence, checking both underruns and overruns.
|
|
ohm_plugin_free_hal_table was removing items from hal_udis as it iterated them. That's bad, mmkay?
|
|
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).
|
|
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
|
|
Add a SIGINT handler that quits the mainloop. Good for testing exiting..
|
|
Adds options --memcheck and --massif for running ohmd with the corresponding
valgrid tools. Also adds a --help option.
|
|
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.
|
|
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.
|
|
Fix Robs last commit which broke installation on the OLPC
|
|
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
|
|
Corrects documentation for ohm_conf_get_keys, ohm_conf_free_keys and
ohm_conf_add_key
|
|
To cut down abi exposure, don't expose key-added and key-change in the class structure.
|
|
For cross compile buildtools, use $(LIBTOOL) rather than executing libtool directly for running dbus-binding-tool.
|
|
|
|
|
|
|
|
|
|
|
|
Also make the plugins conf have a .ini extension
|
|
|
|
|
|
|
|
|
|
|
|
|
|
libohm. Also Impliment GetVersion
|
|
|
|
|
|
|