profile/ivi/murphy.git
11 years agomurphy-db: fix floating read/write in column.c
Janos Kovacs [Tue, 27 Nov 2012 12:22:39 +0000 (14:22 +0200)]
murphy-db: fix floating read/write in column.c

11 years agoMerge branch 'master' of github.com:otcshare/policy-internal
Krisztian Litkey [Thu, 29 Nov 2012 12:16:31 +0000 (14:16 +0200)]
Merge branch 'master' of github.com:otcshare/policy-internal

11 years agoresource-backend: don't crash when acquring a non-complete resource set.
Ismo Puustinen [Thu, 29 Nov 2012 08:58:27 +0000 (10:58 +0200)]
resource-backend: don't crash when acquring a non-complete resource set.

11 years agoresource-dbus: work around a crash in resource-backend library.
Ismo Puustinen [Thu, 29 Nov 2012 08:51:04 +0000 (10:51 +0200)]
resource-dbus: work around a crash in resource-backend library.

Make sure resource-dbus plugin calls the resource-backend library
funcions in the order the library is expecting. This works around a
crash in case the requested zone name is not set in the configuration.

11 years agomainloop-test: get rid of unused function warning.
Krisztian Litkey [Thu, 29 Nov 2012 08:00:26 +0000 (10:00 +0200)]
mainloop-test: get rid of unused function warning.

11 years agoplugin-test: no need for murphy-db.
Krisztian Litkey [Thu, 29 Nov 2012 07:59:59 +0000 (09:59 +0200)]
plugin-test: no need for murphy-db.

11 years agobuild: only compile breedline-glib if glib support is enabled.
Ismo Puustinen [Wed, 28 Nov 2012 07:18:24 +0000 (09:18 +0200)]
build: only compile breedline-glib if glib support is enabled.

11 years agobuild: fixed a typo.
Ismo Puustinen [Wed, 28 Nov 2012 07:12:16 +0000 (09:12 +0200)]
build: fixed a typo.

11 years agomainloop-test: omit glib pump if we have a glib superloop.
Krisztian Litkey [Tue, 27 Nov 2012 17:45:15 +0000 (19:45 +0200)]
mainloop-test: omit glib pump if we have a glib superloop.

Don't try to run with glib set up as both our super- and subloops.
It makes no sense and it only ends up in glib's event dispatcher
being called recursively (superloop dispatching us, we dispatching
the subloop which happens to be also our superloop) and aborting
on an assert.

This whole single combined mainloop-test mess should be cleaned up.

11 years agobreedline: added forgotten breedline-{murphy,glib}test.c.
Krisztian Litkey [Tue, 27 Nov 2012 13:53:14 +0000 (15:53 +0200)]
breedline: added forgotten breedline-{murphy,glib}test.c.

11 years agoconsole-client: fix to compile with older gcc.
Krisztian Litkey [Tue, 27 Nov 2012 13:51:27 +0000 (15:51 +0200)]
console-client: fix to compile with older gcc.

11 years agobuild-sys: export also symbols from lua bindings in core.
Krisztian Litkey [Tue, 27 Nov 2012 13:43:42 +0000 (15:43 +0200)]
build-sys: export also symbols from lua bindings in core.

11 years agobuild-sys: warn and emit empty debug tables if no ctags is found.
Krisztian Litkey [Tue, 27 Nov 2012 13:29:55 +0000 (15:29 +0200)]
build-sys: warn and emit empty debug tables if no ctags is found.

11 years agobuild-sys: added missing libraries to daemon linking.
Krisztian Litkey [Tue, 27 Nov 2012 13:27:37 +0000 (15:27 +0200)]
build-sys: added missing libraries to daemon linking.

11 years agoplugin-console: fix to compile with older gcc.
Krisztian Litkey [Tue, 27 Nov 2012 13:24:44 +0000 (15:24 +0200)]
plugin-console: fix to compile with older gcc.

11 years agobuild-sys: bail out if we need to regenerate a linker script but have no ctags.
Krisztian Litkey [Tue, 27 Nov 2012 13:08:20 +0000 (15:08 +0200)]
build-sys: bail out if we need to regenerate a linker script but have no ctags.

11 years agocommon: get rid of uninitialized variable warnings.
Krisztian Litkey [Tue, 27 Nov 2012 12:55:26 +0000 (14:55 +0200)]
common: get rid of uninitialized variable warnings.

11 years agobreedline: avoid strdup as a struct member name.
Krisztian Litkey [Tue, 27 Nov 2012 07:54:45 +0000 (09:54 +0200)]
breedline: avoid strdup as a struct member name.

When compiling with sufficient optimization knobs, gcc/glibc turns
strdup into a macro, breaking all references to similarly named
struct and union members.

11 years agoresource-dbus: link against libmurphy-dbus.
Krisztian Litkey [Tue, 27 Nov 2012 07:35:18 +0000 (09:35 +0200)]
resource-dbus: link against libmurphy-dbus.

11 years agocore: added missing libraries for linking decision-test.
Krisztian Litkey [Tue, 27 Nov 2012 07:33:32 +0000 (09:33 +0200)]
core: added missing libraries for linking decision-test.

11 years agodomain-control: fix to compile with older gcc.
Krisztian Litkey [Tue, 27 Nov 2012 07:26:04 +0000 (09:26 +0200)]
domain-control: fix to compile with older gcc.

11 years agodomain-control: use breedline for test client prompt handling.
Krisztian Litkey [Mon, 26 Nov 2012 15:58:26 +0000 (17:58 +0200)]
domain-control: use breedline for test client prompt handling.

11 years agomurphy-console: use breedline for prompt handling.
Krisztian Litkey [Mon, 26 Nov 2012 15:43:55 +0000 (17:43 +0200)]
murphy-console: use breedline for prompt handling.

11 years agobreedline: added breedline, a BSD-licensed simplistic alternative to readline.
Krisztian Litkey [Sun, 25 Nov 2012 19:49:31 +0000 (21:49 +0200)]
breedline: added breedline, a BSD-licensed simplistic alternative to readline.

11 years agocommon: fix realloc[z] wrapper for size=0.
Krisztian Litkey [Sun, 25 Nov 2012 19:48:38 +0000 (21:48 +0200)]
common: fix realloc[z] wrapper for size=0.

11 years agoresource-dbus: fix a memory leak.
Ismo Puustinen [Mon, 26 Nov 2012 09:33:40 +0000 (11:33 +0200)]
resource-dbus: fix a memory leak.

11 years agolua-utils, lua-decision: use lua_pcall() in funcbridge to avoid exits on errors
Janos Kovacs [Mon, 26 Nov 2012 07:43:36 +0000 (09:43 +0200)]
lua-utils, lua-decision: use lua_pcall() in funcbridge to avoid exits on errors

11 years agobuild: install lua-bindings/murphy.h to correct place.
Ismo Puustinen [Fri, 23 Nov 2012 13:51:52 +0000 (15:51 +0200)]
build: install lua-bindings/murphy.h to correct place.

11 years agoconfig: added dbus resource plugin loading to lua configuration.
Ismo Puustinen [Fri, 23 Nov 2012 08:57:13 +0000 (10:57 +0200)]
config: added dbus resource plugin loading to lua configuration.

11 years agoresource-dbus: added support for configuring the D-Bus bus.
Ismo Puustinen [Fri, 23 Nov 2012 08:42:54 +0000 (10:42 +0200)]
resource-dbus: added support for configuring the D-Bus bus.

This is supposed to be used for zone support. For instance, if there
are multiple session buses in the system, they can be assigned to
different zones by running several resource-dbus plugin instances.  At
the moment there is only one-to-one mapping between zones and buses,
but this could change later.

11 years agoresource-dbus: added configurability for default zone and default class.
Ismo Puustinen [Thu, 22 Nov 2012 14:57:06 +0000 (16:57 +0200)]
resource-dbus: added configurability for default zone and default class.

11 years agodbus: refcount and reuse existing D-Bus connections if necessary.
Krisztian Litkey [Thu, 22 Nov 2012 14:45:46 +0000 (16:45 +0200)]
dbus: refcount and reuse existing D-Bus connections if necessary.

11 years agodbus: don't crash if connection fails.
Ismo Puustinen [Thu, 22 Nov 2012 09:09:37 +0000 (11:09 +0200)]
dbus: don't crash if connection fails.

11 years agoresource-dbus: don't define the resources anymore.
Ismo Puustinen [Thu, 22 Nov 2012 09:16:21 +0000 (11:16 +0200)]
resource-dbus: don't define the resources anymore.

11 years agoMerge branch 'master' of github.com:otcshare/policy-internal
Krisztian Litkey [Thu, 22 Nov 2012 07:58:03 +0000 (09:58 +0200)]
Merge branch 'master' of github.com:otcshare/policy-internal

11 years agoresolver: fixes to allow running without a resolver file.
Krisztian Litkey [Thu, 22 Nov 2012 07:55:56 +0000 (09:55 +0200)]
resolver: fixes to allow running without a resolver file.

11 years agotests: compiles without glib support.
Ismo Puustinen [Thu, 22 Nov 2012 07:43:36 +0000 (09:43 +0200)]
tests: compiles without glib support.

11 years agoresolver: fix target creation error-path crash.
Krisztian Litkey [Thu, 22 Nov 2012 07:01:30 +0000 (09:01 +0200)]
resolver: fix target creation error-path crash.

11 years agoDisabled binaries that required readline.
Krisztian Litkey [Mon, 19 Nov 2012 19:11:12 +0000 (21:11 +0200)]
Disabled binaries that required readline.

These will get enabled again once we have a readline replacement
in some shape.

11 years agocore-lua-decision: updated mdb lua bindings with "unsigned" support.
Ismo Puustinen [Mon, 19 Nov 2012 12:26:06 +0000 (14:26 +0200)]
core-lua-decision: updated mdb lua bindings with "unsigned" support.

11 years agoresource-dbus: added a system configuration file.
Ismo Puustinen [Mon, 19 Nov 2012 13:34:21 +0000 (15:34 +0200)]
resource-dbus: added a system configuration file.

The configuration file is not installed by default.

11 years agoresource-dbus: fix bugs.
Ismo Puustinen [Wed, 14 Nov 2012 14:33:24 +0000 (16:33 +0200)]
resource-dbus: fix bugs.

11 years agogenerated-files: update core-func-info.c
Janos Kovacs [Fri, 16 Nov 2012 17:33:22 +0000 (19:33 +0200)]
generated-files: update core-func-info.c

11 years agoresource-native plugin: get rid of unnamed structures
Janos Kovacs [Fri, 16 Nov 2012 17:28:34 +0000 (19:28 +0200)]
resource-native plugin: get rid of unnamed structures

To keep things symmetric, similar to murphy-db,  we got rid of
some unnamed unions in native-resource plugin.

11 years agomurphy-db: get rid of unnamed unions
Janos Kovacs [Fri, 16 Nov 2012 17:21:59 +0000 (19:21 +0200)]
murphy-db: get rid of unnamed unions

Older gcc versions do not support static member initialisation
of unnamed unions. Consequently many MQI macro fail to compile
with older gcc. This patch is to give a one letter identifier
('u' or 'v') to the unamed unions and fix the gazillion referense
to such union members.

11 years agogeneral: added missing license to a bunch of files.
Krisztian Litkey [Fri, 16 Nov 2012 11:26:59 +0000 (13:26 +0200)]
general: added missing license to a bunch of files.

11 years agoscripts: added exclusion-pattern support for enlicense.
Krisztian Litkey [Fri, 16 Nov 2012 11:24:29 +0000 (13:24 +0200)]
scripts: added exclusion-pattern support for enlicense.

11 years agodebug info updated.
Krisztian Litkey [Fri, 16 Nov 2012 09:43:38 +0000 (11:43 +0200)]
debug info updated.

11 years agoconsole: minor console command cleanup.
Krisztian Litkey [Fri, 16 Nov 2012 09:42:44 +0000 (11:42 +0200)]
console: minor console command cleanup.

11 years agocore: added support for raw and catch-all console command handlers.
Krisztian Litkey [Fri, 16 Nov 2012 09:22:18 +0000 (11:22 +0200)]
core: added support for raw and catch-all console command handlers.

Raw command handlers get their input in the original raw/untokenized
format only with the command group and command name separated from
the actual arguments.

Catch-all command handlers are fallback command handlers that get
invoked for all group commands without a matchink handler. IOW, if
a group has a catch-all handler the core console will never give an
error about unrecognized commands but rather invoke the catch-all
handler for these.

11 years agoMerge branch 'murphy-lua-bindings' of github.com:otcshare/policy-internal into murphy-lua
Krisztian Litkey [Wed, 14 Nov 2012 12:33:55 +0000 (14:33 +0200)]
Merge branch 'murphy-lua-bindings' of github.com:otcshare/policy-internal into murphy-lua

11 years agocommon/core: updated debug info.
Krisztian Litkey [Wed, 14 Nov 2012 12:33:36 +0000 (14:33 +0200)]
common/core: updated debug info.

11 years agodomain-control: less misleading startup message in test client.
Krisztian Litkey [Wed, 14 Nov 2012 12:32:42 +0000 (14:32 +0200)]
domain-control: less misleading startup message in test client.

11 years agogeneral: improve compiler SNR by removing a few unused variable warnings.
Krisztian Litkey [Wed, 14 Nov 2012 12:19:21 +0000 (14:19 +0200)]
general: improve compiler SNR by removing a few unused variable warnings.

11 years agocore: get rid of ignored retval warning.
Krisztian Litkey [Wed, 14 Nov 2012 12:15:39 +0000 (14:15 +0200)]
core: get rid of ignored retval warning.

11 years agocommon: get rid of false positive of uninitialized variable warning.
Krisztian Litkey [Wed, 14 Nov 2012 12:14:51 +0000 (14:14 +0200)]
common: get rid of false positive of uninitialized variable warning.

11 years agolua-bindings: get rid of unused variable warning, better luaL_error usage.
Krisztian Litkey [Wed, 14 Nov 2012 11:42:14 +0000 (13:42 +0200)]
lua-bindings: get rid of unused variable warning, better luaL_error usage.

We now adhere to the Lua-wide idiom of using luaL_error with a
(technically pointless) return.

11 years agodomain-control: support for automatic reconnection.
Krisztian Litkey [Wed, 14 Nov 2012 11:34:55 +0000 (13:34 +0200)]
domain-control: support for automatic reconnection.

11 years agocommon: clear any potential superloop when destroying a mainloop.
Krisztian Litkey [Wed, 14 Nov 2012 08:29:48 +0000 (10:29 +0200)]
common: clear any potential superloop when destroying a mainloop.

11 years agodaemon: fix the update method of test element in config script to cope with nil
Janos Kovacs [Wed, 14 Nov 2012 01:36:49 +0000 (03:36 +0200)]
daemon: fix the update method of test element in config script to cope with nil

11 years agolua-decision: invoke the elements update method in resolver callbacks
Janos Kovacs [Wed, 14 Nov 2012 01:34:17 +0000 (03:34 +0200)]
lua-decision: invoke the elements update method in resolver callbacks

11 years agolua-decision: support for table dependencies
Janos Kovacs [Wed, 14 Nov 2012 01:31:19 +0000 (03:31 +0200)]
lua-decision: support for table dependencies

11 years agolua-utils: add mrp_lua_find_object()
Janos Kovacs [Wed, 14 Nov 2012 01:28:54 +0000 (03:28 +0200)]
lua-utils: add mrp_lua_find_object()

11 years agomurphy-db: fix mqi_data_type_str() to handle mqi_floating's correctly
Janos Kovacs [Wed, 14 Nov 2012 01:26:37 +0000 (03:26 +0200)]
murphy-db: fix mqi_data_type_str() to handle mqi_floating's correctly

11 years agocore,common: updated debug info.
Krisztian Litkey [Tue, 13 Nov 2012 16:56:27 +0000 (18:56 +0200)]
core,common: updated debug info.

11 years agodaemon: prepare targets before generating autoupdate target.
Krisztian Litkey [Tue, 13 Nov 2012 16:55:24 +0000 (18:55 +0200)]
daemon: prepare targets before generating autoupdate target.

11 years agoresolver: include targets with indirect depdndencies on facts in generated autoupdate...
Krisztian Litkey [Tue, 13 Nov 2012 16:53:48 +0000 (18:53 +0200)]
resolver: include targets with indirect depdndencies on facts in generated autoupdate targets.

11 years agoresolver: don't generate fuly NULL update scriptlets for precompiled targets.
Krisztian Litkey [Tue, 13 Nov 2012 16:51:58 +0000 (18:51 +0200)]
resolver: don't generate fuly NULL update scriptlets for precompiled targets.

11 years agolua-decision: resolver integration fixes.
Krisztian Litkey [Tue, 13 Nov 2012 16:49:03 +0000 (18:49 +0200)]
lua-decision: resolver integration fixes.

11 years agolua-bindings: handle plugin boolean arguments correctly.
Krisztian Litkey [Mon, 12 Nov 2012 17:26:22 +0000 (19:26 +0200)]
lua-bindings: handle plugin boolean arguments correctly.

11 years agodomain-controller: install header and pkg-config file.
Krisztian Litkey [Mon, 12 Nov 2012 17:25:38 +0000 (19:25 +0200)]
domain-controller: install header and pkg-config file.

11 years agodaemon: add a test element to lua config
Janos Kovacs [Tue, 13 Nov 2012 02:48:18 +0000 (04:48 +0200)]
daemon: add a test element to lua config

11 years agolua-decision: fix elemen_install() to install correct dependencies
Janos Kovacs [Tue, 13 Nov 2012 02:44:54 +0000 (04:44 +0200)]
lua-decision: fix elemen_install() to install correct dependencies

11 years agolua-decision: add create field to mdb.table
Janos Kovacs [Tue, 13 Nov 2012 02:42:16 +0000 (04:42 +0200)]
lua-decision: add create field to mdb.table

11 years agoplugin-resource-native: replace printf's with mrp_debug
Janos Kovacs [Mon, 12 Nov 2012 21:24:31 +0000 (23:24 +0200)]
plugin-resource-native: replace printf's with mrp_debug

11 years agolua-decision: start to use MRP_LUA_[ENTER|LEAVE] and replace printf's mrp_debug
Janos Kovacs [Mon, 12 Nov 2012 21:02:47 +0000 (23:02 +0200)]
lua-decision: start to use MRP_LUA_[ENTER|LEAVE] and replace printf's mrp_debug

11 years agoresource-library: replace printf's with MRP_LUA_[ENTER|LEAVE] and mrp_log_info()
Janos Kovacs [Mon, 12 Nov 2012 19:10:12 +0000 (21:10 +0200)]
resource-library: replace printf's with MRP_LUA_[ENTER|LEAVE] and mrp_log_info()

11 years agolua-utils: add MRP_LUA_[ENTER|LEAVE] macros
Janos Kovacs [Mon, 12 Nov 2012 19:08:44 +0000 (21:08 +0200)]
lua-utils: add MRP_LUA_[ENTER|LEAVE] macros

11 years agolua-utils: fix an argument check what prevented tor run in load-plugin context
Janos Kovacs [Mon, 12 Nov 2012 17:23:36 +0000 (19:23 +0200)]
lua-utils: fix an argument check what prevented tor run in load-plugin context

11 years agobuild: re-building core-func-info.c
Janos Kovacs [Mon, 12 Nov 2012 14:42:52 +0000 (16:42 +0200)]
build: re-building core-func-info.c

11 years agoMerge branch 'murphy-lua-bindings' of https://github.com/otcshare/policy-internal...
Janos Kovacs [Mon, 12 Nov 2012 14:29:48 +0000 (16:29 +0200)]
Merge branch 'murphy-lua-bindings' of https://github.com/otcshare/policy-internal into murphy-lua-bindings

11 years agodaemon: lua configuration for application_classes, zones and resource classes
Janos Kovacs [Mon, 12 Nov 2012 14:26:06 +0000 (16:26 +0200)]
daemon: lua configuration for application_classes, zones and resource classes

11 years agoplugin-resource-native: replace hardwired config with lua based config
Janos Kovacs [Mon, 12 Nov 2012 14:22:29 +0000 (16:22 +0200)]
plugin-resource-native: replace hardwired config with lua based config

11 years agobuild: support for building lua configuration in resource library
Janos Kovacs [Mon, 12 Nov 2012 14:17:16 +0000 (16:17 +0200)]
build: support for building lua configuration in resource library

11 years agoresource: add lua configuration
Janos Kovacs [Mon, 12 Nov 2012 14:12:37 +0000 (16:12 +0200)]
resource: add lua configuration

11 years agolua-decision: fix a typo in mdb's table_setfield()
Janos Kovacs [Mon, 12 Nov 2012 14:00:15 +0000 (16:00 +0200)]
lua-decision: fix a typo in mdb's table_setfield()

11 years agolua-utils: fix mrp_lua_create_object() to handle correctly names
Janos Kovacs [Mon, 12 Nov 2012 13:57:51 +0000 (15:57 +0200)]
lua-utils: fix mrp_lua_create_object() to handle correctly names

11 years agocore: automatically start plugins loaded while starting plugins.
Krisztian Litkey [Mon, 12 Nov 2012 13:28:28 +0000 (15:28 +0200)]
core: automatically start plugins loaded while starting plugins.

When running with a Lua config script, all subsequent plugins are
loaded by the Lua plugin while this is executing the config script.
Normally the config script core references some Lua objects or
functions that are registered by these plugins. If we simply let
these plugins start normally the config script would fail as the
plugins would get a chance to extend Lua only after the Lua plugin
finished starting up and executing the script. For the time being
to work around this once we begin starting up plugins, we always
immediately start any newly loaded plugin.

Note that this can easily trigger bugs related to non-reentrant code
on the plugin loading and startup code pathes, so keep your eyes
open...
(except the basic Lua plugin) are loaded by the

11 years agolua-decision: add .single_value field to select as shorthand for [1][1] indexing
Janos Kovacs [Fri, 9 Nov 2012 21:49:00 +0000 (23:49 +0200)]
lua-decision: add .single_value field to select as shorthand for [1][1] indexing

11 years agocommon, core: updated debug infos.
Krisztian Litkey [Fri, 9 Nov 2012 17:28:13 +0000 (19:28 +0200)]
common, core: updated debug infos.

11 years agoresolver: include alloca directly.
Krisztian Litkey [Fri, 9 Nov 2012 17:25:56 +0000 (19:25 +0200)]
resolver: include alloca directly.

11 years agoconsole: best-effort std{out,err} redirection during console commands.
Krisztian Litkey [Fri, 9 Nov 2012 17:25:10 +0000 (19:25 +0200)]
console: best-effort std{out,err} redirection during console commands.

11 years agoresource: add db transactions for resurce acquistitions and releases
Janos Kovacs [Fri, 9 Nov 2012 16:41:39 +0000 (18:41 +0200)]
resource: add db transactions for resurce acquistitions and releases

11 years agoresource: add Makefile for local builds requests
Janos Kovacs [Fri, 9 Nov 2012 16:38:58 +0000 (18:38 +0200)]
resource: add Makefile for local builds requests

11 years agoMerge branch 'murphy-lua-bindings' of https://github.com/otcshare/policy-internal...
Janos Kovacs [Thu, 8 Nov 2012 23:38:53 +0000 (01:38 +0200)]
Merge branch 'murphy-lua-bindings' of https://github.com/otcshare/policy-internal into murphy-lua-bindings

11 years agolua-decision: complete select object
Janos Kovacs [Thu, 8 Nov 2012 23:35:06 +0000 (01:35 +0200)]
lua-decision: complete select object

11 years agolua-utils: add MRP_LUA_OVERRIDE_GETLENGTH macro
Janos Kovacs [Thu, 8 Nov 2012 23:22:13 +0000 (01:22 +0200)]
lua-utils: add MRP_LUA_OVERRIDE_GETLENGTH macro

11 years agomurphy-db: fix comment typo
Janos Kovacs [Thu, 8 Nov 2012 23:18:41 +0000 (01:18 +0200)]
murphy-db: fix comment typo

11 years agocore: updated debug info.
Krisztian Litkey [Thu, 8 Nov 2012 13:39:26 +0000 (15:39 +0200)]
core: updated debug info.

11 years agoresolver: test config changes.
Krisztian Litkey [Thu, 8 Nov 2012 13:38:59 +0000 (15:38 +0200)]
resolver: test config changes.