profile/ivi/murphy.git
11 years agodaemon: lua-related test config updates.
Krisztian Litkey [Wed, 7 Nov 2012 20:48:11 +0000 (22:48 +0200)]
daemon: lua-related test config updates.

11 years agodaemon: ruleset creation/parsing vs. plugin loading/starting ordering fixes.
Krisztian Litkey [Wed, 7 Nov 2012 20:45:39 +0000 (22:45 +0200)]
daemon: ruleset creation/parsing vs. plugin loading/starting ordering fixes.

11 years agolua-decision: added basic resolver target generation.
Krisztian Litkey [Wed, 7 Nov 2012 20:42:27 +0000 (22:42 +0200)]
lua-decision: added basic resolver target generation.

11 years agoresolver: support for plain resolver context creation, prepared target fixes.
Krisztian Litkey [Wed, 7 Nov 2012 20:33:41 +0000 (22:33 +0200)]
resolver: support for plain resolver context creation, prepared target fixes.

Resolver context creation and input parsing can now be done in
two phases. This is especially useful if one needs to have both
programmatically created (pre-prepared) targets and static targets
from a resolver input file.

This commits also fixes a few bugs related to handling preprepared
targets.

11 years agolua-bindings: initialize lua-utils and lua-decision.
Krisztian Litkey [Wed, 7 Nov 2012 20:30:26 +0000 (22:30 +0200)]
lua-bindings: initialize lua-utils and lua-decision.

11 years agoplugins/lua: added lua interpreter skeleton.
Krisztian Litkey [Wed, 7 Nov 2012 16:59:03 +0000 (18:59 +0200)]
plugins/lua: added lua interpreter skeleton.

11 years agobuild-sys: fix incorrect build dependencies/linkage.
Krisztian Litkey [Wed, 7 Nov 2012 16:57:25 +0000 (18:57 +0200)]
build-sys: fix incorrect build dependencies/linkage.

11 years agoresolver: allow scriptlet type to be specified.
Krisztian Litkey [Wed, 7 Nov 2012 16:53:22 +0000 (18:53 +0200)]
resolver: allow scriptlet type to be specified.

11 years agocore/scripting: fix interpreter registration to not depend on resolver.
Krisztian Litkey [Wed, 7 Nov 2012 16:19:27 +0000 (18:19 +0200)]
core/scripting: fix interpreter registration to not depend on resolver.

11 years agolua-bindings: added support for evaluating Lua from the console.
Krisztian Litkey [Tue, 6 Nov 2012 20:32:07 +0000 (22:32 +0200)]
lua-bindings: added support for evaluating Lua from the console.

You can now evaluate Lua code snippets or Lua files from the console.
Please note that currently you need to fully quote Lua code you enter
via the console to protect it from the console input tokenizer. This
limitation will be lifted once we have implemented support for non-
pre-tokenized console commands.

Also note that all output produced by Lua code is currently going to
the standard output of the murphy daemon and not to the console where
you entered the Lua snippet. Consider this a bug which should be fixed.
Fixing this is a bit harder that it was with the old ohm-time console
implementation. In all its crudeness (whenever 'grabbed') the old ohm
console was simply dup2ing stdout to the socket fd of the console
connection during the execution of console commands. With our current
console things this is not so easy: we have mrp_console_printf to print
to the console which is not fd-based but is using glibc's custom stream
handler support...

11 years agocore: warn only once about lack of signature check.
Krisztian Litkey [Tue, 6 Nov 2012 11:53:15 +0000 (13:53 +0200)]
core: warn only once about lack of signature check.

11 years agoWiP-core: murphy lua bindings prototype for basic daemon configuration.
Krisztian Litkey [Fri, 2 Nov 2012 16:38:34 +0000 (18:38 +0200)]
WiP-core: murphy lua bindings prototype for basic daemon configuration.

This prototype provides equivalent functionality to the built-in
configuration language of the daemon. IOW, it provides functions
for

  - testing the existence of plugins
  - loading plugin instances with optional parameters
  - basic info, error, warning message logging

This proto currently does not use or depend on the common lua-utils
or lua-decision 'convenience libraries'. However it can be easily
moved on top of those if needed. This would probably make sense if
we start adding bindings to more complex bits of functionality
(such as the mainloop, transports, events, etc).

11 years agobuild-sys: don't claim to support that old Lua.
Krisztian Litkey [Fri, 2 Nov 2012 16:32:07 +0000 (18:32 +0200)]
build-sys: don't claim to support that old Lua.

11 years agolua-decision: add select_install() to print dependencies
Janos Kovacs [Mon, 29 Oct 2012 23:10:21 +0000 (01:10 +0200)]
lua-decision: add select_install() to print dependencies

11 years agobuild: do not link murphyd agains the resource library if --with-resources=no
Janos Kovacs [Mon, 29 Oct 2012 23:08:58 +0000 (01:08 +0200)]
build: do not link murphyd agains the resource library if --with-resources=no

11 years agolua-decision: first prototype of the 'element' object
Janos Kovacs [Mon, 29 Oct 2012 22:06:33 +0000 (00:06 +0200)]
lua-decision: first prototype of the 'element' object

11 years agobuild: conditional build of resource management (--with-resources)
Janos Kovacs [Fri, 26 Oct 2012 13:24:54 +0000 (16:24 +0300)]
build: conditional build of resource management (--with-resources)

11 years agobuilding: build support for lua-decision library
Janos Kovacs [Fri, 26 Oct 2012 04:12:55 +0000 (07:12 +0300)]
building: build support for lua-decision library

11 years agolua-decision: initial sources
Janos Kovacs [Fri, 26 Oct 2012 04:11:41 +0000 (07:11 +0300)]
lua-decision: initial sources

11 years agolua-utils: add local Makefile to compile locally, ie. not in the src dir
Janos Kovacs [Fri, 26 Oct 2012 04:01:44 +0000 (07:01 +0300)]
lua-utils: add local Makefile to compile locally, ie. not in the src dir

11 years agolua-utils: fix funcbridge.c
Janos Kovacs [Fri, 26 Oct 2012 03:49:03 +0000 (06:49 +0300)]
lua-utils: fix funcbridge.c

- to avoid namespace clash use builtin.method instead of builtin
- mrp_create_funcbridge_class() do not leave garbage on the stack

11 years agolua-utils: fix mrp_lua_push_strarray()
Janos Kovacs [Thu, 25 Oct 2012 00:08:29 +0000 (03:08 +0300)]
lua-utils: fix mrp_lua_push_strarray()

11 years agolua-library: add MRP_LUA_OVERRIDE_STRINGIFY
Janos Kovacs [Thu, 25 Oct 2012 00:03:55 +0000 (03:03 +0300)]
lua-library: add MRP_LUA_OVERRIDE_STRINGIFY

11 years agolua-utils: fix MRP_LUA_CLASS_DEF to work with multiple constructors
Janos Kovacs [Wed, 24 Oct 2012 19:35:27 +0000 (22:35 +0300)]
lua-utils: fix MRP_LUA_CLASS_DEF to work with multiple constructors

11 years agobuilding: make the lua-utils library
Janos Kovacs [Tue, 23 Oct 2012 01:05:15 +0000 (04:05 +0300)]
building: make the lua-utils library

11 years agoscripting: add sources of LUA scripting support library
Janos Kovacs [Tue, 23 Oct 2012 01:02:19 +0000 (04:02 +0300)]
scripting: add sources of LUA scripting support library

11 years agoresolver: added support for precompiled (pre-prepared) targets.
Krisztian Litkey [Wed, 24 Oct 2012 07:30:44 +0000 (10:30 +0300)]
resolver: added support for precompiled (pre-prepared) targets.

Precompiled targets skip the target compilation (preparation)
phase altogether. They get added with a pre-prepared scripting
context readily provided by the one creating the target. Hence
it is possible, using precompiled targets, to avoid altogether
the textual representation of target update 'rules' in cases
where this would be difficult or inconvenient.

11 years agoplugins: removed decision-proto plugin.
Krisztian Litkey [Tue, 30 Oct 2012 09:29:39 +0000 (11:29 +0200)]
plugins: removed decision-proto plugin.

11 years agodomain-control: added domain-control plugin (modified decision-proto).
Krisztian Litkey [Mon, 22 Oct 2012 10:07:00 +0000 (13:07 +0300)]
domain-control: added domain-control plugin (modified decision-proto).

11 years agocommon: added support for type-agnostic message field iteration.
Krisztian Litkey [Fri, 26 Oct 2012 13:43:55 +0000 (16:43 +0300)]
common: added support for type-agnostic message field iteration.

11 years agomurphy-db: added column 'introspection' for mql_result_rows.
Krisztian Litkey [Wed, 24 Oct 2012 19:42:50 +0000 (22:42 +0300)]
murphy-db: added column 'introspection' for mql_result_rows.

11 years agobuild-sys: fix to handle plugins with dashes in their names.
Krisztian Litkey [Mon, 22 Oct 2012 07:14:06 +0000 (10:14 +0300)]
build-sys: fix to handle plugins with dashes in their names.

11 years agoAdded README to make automake happy.
Krisztian Litkey [Fri, 26 Oct 2012 16:45:31 +0000 (19:45 +0300)]
Added README to make automake happy.

11 years agobuild-sys: make gen-linkedin-loader executable.
Krisztian Litkey [Fri, 26 Oct 2012 16:34:24 +0000 (19:34 +0300)]
build-sys: make gen-linkedin-loader executable.

11 years agoresource-native: set default config only for our own start event.
Krisztian Litkey [Thu, 18 Oct 2012 15:58:35 +0000 (18:58 +0300)]
resource-native: set default config only for our own start event.

11 years agobuild-sys: --with-dynamic-plugins handling fix.
Krisztian Litkey [Thu, 18 Oct 2012 15:29:43 +0000 (18:29 +0300)]
build-sys: --with-dynamic-plugins handling fix.

11 years agobuild-sys: linkedin loader generation fixes.
Krisztian Litkey [Thu, 18 Oct 2012 15:28:45 +0000 (18:28 +0300)]
build-sys: linkedin loader generation fixes.

11 years agoresolver: targets and target aliasen can now be added programmatically.
Krisztian Litkey [Tue, 16 Oct 2012 17:38:54 +0000 (20:38 +0300)]
resolver: targets and target aliasen can now be added programmatically.

Note that a separate alias addition function is merely API-sugar.
Adding an alias is equivalent to adding a new target of the form:

target <alias>
    depends on <target>

11 years agocore/scripting: script type name is const.
Krisztian Litkey [Tue, 16 Oct 2012 17:37:34 +0000 (20:37 +0300)]
core/scripting: script type name is const.

11 years agodocs: updated README and moved it to README.md.
Ismo Puustinen [Wed, 17 Oct 2012 08:15:49 +0000 (11:15 +0300)]
docs: updated README and moved it to README.md.

11 years agoresource-dbus: add client tracking.
Ismo Puustinen [Tue, 16 Oct 2012 09:44:43 +0000 (12:44 +0300)]
resource-dbus: add client tracking.

Add optional client tracking to release resources when a D-Bus client
leaves the bus without cleaning up the resources manually. This is
configured via the plugin configuration file.

11 years agoresource-dbus: filter out the events before first resource set acquisition.
Ismo Puustinen [Tue, 16 Oct 2012 07:45:08 +0000 (10:45 +0300)]
resource-dbus: filter out the events before first resource set acquisition.

11 years agocommon/glib-glue: emulate deferred with 0 msec delay, not 10.
Krisztian Litkey [Fri, 12 Oct 2012 13:24:18 +0000 (16:24 +0300)]
common/glib-glue: emulate deferred with 0 msec delay, not 10.

11 years agoresource-dbus: filter out events before acquiring the resource set.
Ismo Puustinen [Fri, 12 Oct 2012 08:20:28 +0000 (11:20 +0300)]
resource-dbus: filter out events before acquiring the resource set.

11 years agocommon: slight cleanup of mainloop test wrt. to superloops.
Krisztian Litkey [Thu, 11 Oct 2012 20:17:54 +0000 (23:17 +0300)]
common: slight cleanup of mainloop test wrt. to superloops.

11 years agocommon/ecore: fix copy-paste'os in ecore .pc.in and ecore pkg-config check.
Krisztian Litkey [Thu, 11 Oct 2012 10:46:19 +0000 (13:46 +0300)]
common/ecore: fix copy-paste'os in ecore .pc.in and ecore pkg-config check.

11 years agobuild-sys: don't link unconditionally against glib and dbus libs.
Krisztian Litkey [Thu, 11 Oct 2012 20:13:10 +0000 (23:13 +0300)]
build-sys: don't link unconditionally against glib and dbus libs.

11 years agocommon/glib-glue: added libmurphy-glib, a glib murphy superloop.
Krisztian Litkey [Thu, 11 Oct 2012 10:44:12 +0000 (13:44 +0300)]
common/glib-glue: added libmurphy-glib, a glib murphy superloop.

libmurphy-glib provides the necessary gluing code to enable the
murphy mainloop to be pumped by a GMainLoop. Don't try to run glib
subloops (glib plugin/glib-pump) with glib superloops.

11 years agoresource-dbus: fixed a few TODO items.
Ismo Puustinen [Wed, 10 Oct 2012 14:23:56 +0000 (17:23 +0300)]
resource-dbus: fixed a few TODO items.

11 years agoresource-dbus: made constants of some strings.
Ismo Puustinen [Wed, 10 Oct 2012 09:53:13 +0000 (12:53 +0300)]
resource-dbus: made constants of some strings.

11 years agoresource-dbus: added a Python resource client under docs.
Ismo Puustinen [Mon, 8 Oct 2012 13:31:43 +0000 (16:31 +0300)]
resource-dbus: added a Python resource client under docs.

11 years agoresource-dbus: added D-Bus API spec.
Ismo Puustinen [Mon, 8 Oct 2012 13:10:39 +0000 (16:10 +0300)]
resource-dbus: added D-Bus API spec.

11 years agobuild-sys: fix the libresource link-time deps.
Ismo Puustinen [Tue, 2 Oct 2012 08:27:47 +0000 (11:27 +0300)]
build-sys: fix the libresource link-time deps.

11 years agoresource-dbus: compiles again after resource library changes.
Ismo Puustinen [Mon, 8 Oct 2012 13:03:24 +0000 (16:03 +0300)]
resource-dbus: compiles again after resource library changes.

11 years agoresource-dbus: work towards the attribute maps.
Ismo Puustinen [Wed, 3 Oct 2012 14:30:48 +0000 (17:30 +0300)]
resource-dbus: work towards the attribute maps.

11 years agoresource-dbus: started resource library integration.
Ismo Puustinen [Tue, 2 Oct 2012 13:40:13 +0000 (16:40 +0300)]
resource-dbus: started resource library integration.

11 years agoresource-dbus: started the work on D-Bus resource frontend plugin.
Ismo Puustinen [Fri, 21 Sep 2012 14:02:23 +0000 (17:02 +0300)]
resource-dbus: started the work on D-Bus resource frontend plugin.

11 years agoresource: added a function to get the resource id from resource name.
Ismo Puustinen [Thu, 4 Oct 2012 14:18:58 +0000 (17:18 +0300)]
resource: added a function to get the resource id from resource name.

11 years agobuild: updated debug infos.
Krisztian Litkey [Mon, 8 Oct 2012 11:28:41 +0000 (14:28 +0300)]
build: updated debug infos.

11 years agomurphy.conf: load decision proto plugin if it is available.
Krisztian Litkey [Mon, 8 Oct 2012 11:27:53 +0000 (14:27 +0300)]
murphy.conf: load decision proto plugin if it is available.

11 years agorepo-fixing: fixup #6.
Krisztian Litkey [Fri, 26 Oct 2012 16:32:40 +0000 (19:32 +0300)]
repo-fixing: fixup #6.

11 years agodecision-proto: build lib and test client whenever the plugin is enabled.
Krisztian Litkey [Mon, 8 Oct 2012 11:27:02 +0000 (14:27 +0300)]
decision-proto: build lib and test client whenever the plugin is enabled.

11 years agobuild-sys: get rid of a compile-time warning.
Krisztian Litkey [Mon, 8 Oct 2012 11:17:49 +0000 (14:17 +0300)]
build-sys: get rid of a compile-time warning.

11 years agobuild-sys: fix src/Makefile.am (broken during conflict-resolution).
Krisztian Litkey [Mon, 8 Oct 2012 11:16:43 +0000 (14:16 +0300)]
build-sys: fix src/Makefile.am (broken during conflict-resolution).

11 years agocommon: updated linker script.
Krisztian Litkey [Mon, 8 Oct 2012 10:23:21 +0000 (13:23 +0300)]
common: updated linker script.

11 years agorepo-fixing: fixup #5.
Krisztian Litkey [Fri, 26 Oct 2012 16:24:24 +0000 (19:24 +0300)]
repo-fixing: fixup #5.

11 years agoplugins: added a prototype decision plugin.
Krisztian Litkey [Thu, 4 Oct 2012 06:47:48 +0000 (09:47 +0300)]
plugins: added a prototype decision plugin.

The decision-proto plugin provides a client library through which
enfocement points can publish their own data to the murphy DB and
also subscribe for data published by ohter entities (not just
enforement points) to the DB.

11 years agodocumentation: copy .svg files to prevent installation errors
Janos Kovacs [Sun, 7 Oct 2012 22:23:25 +0000 (01:23 +0300)]
documentation: copy .svg files to prevent installation errors

11 years agoresource: resource set state changes no-request => release when got installed
Janos Kovacs [Sun, 7 Oct 2012 21:46:56 +0000 (00:46 +0300)]
resource: resource set state changes no-request => release when got installed

11 years agoresource: send resource event when resource set get installed
Janos Kovacs [Sun, 7 Oct 2012 21:36:48 +0000 (00:36 +0300)]
resource: send resource event when resource set get installed

11 years agoresource: do not advice a subset of mandatory resources
Janos Kovacs [Sun, 7 Oct 2012 21:15:26 +0000 (00:15 +0300)]
resource: do not advice a subset of mandatory resources

11 years agoresource: instead of global request numbers use per resource set request numbers
Janos Kovacs [Sun, 7 Oct 2012 20:48:04 +0000 (23:48 +0300)]
resource: instead of global request numbers use per resource set request numbers

11 years agoresource-client: report request numbers
Janos Kovacs [Sun, 7 Oct 2012 20:36:17 +0000 (23:36 +0300)]
resource-client: report request numbers

11 years agoresource: do not filter duplicate request
Janos Kovacs [Sun, 7 Oct 2012 20:10:40 +0000 (23:10 +0300)]
resource: do not filter duplicate request

Earlier subsequent identical requests were filtered and left
unanswered. Now every request is answered. Subsequent acquire
requests are treated as new resource acquisition request.

11 years agoresource: add support for resource set autoreleasing
Janos Kovacs [Sun, 7 Oct 2012 19:42:34 +0000 (22:42 +0300)]
resource: add support for resource set autoreleasing

11 years agoresource: always reply to client requests, even if nothing has changed
Janos Kovacs [Sun, 7 Oct 2012 18:22:47 +0000 (21:22 +0300)]
resource: always reply to client requests, even if nothing has changed

11 years agoresource-native-plugin: renaming resource-plugin => resource-plugin-native
Janos Kovacs [Sun, 7 Oct 2012 17:49:45 +0000 (20:49 +0300)]
resource-native-plugin: renaming resource-plugin => resource-plugin-native

11 years agoresource: fixing pkg-config file
Janos Kovacs [Tue, 2 Oct 2012 13:58:31 +0000 (16:58 +0300)]
resource: fixing pkg-config file

11 years agoresource-client: fix example in help printout
Janos Kovacs [Tue, 2 Oct 2012 12:56:46 +0000 (15:56 +0300)]
resource-client: fix example in help printout

11 years agoresource-client: add command line option parsing and help
Janos Kovacs [Tue, 2 Oct 2012 00:34:32 +0000 (03:34 +0300)]
resource-client: add command line option parsing and help

11 years agoresource-client: add flag support for resource definitions
Janos Kovacs [Mon, 1 Oct 2012 22:25:18 +0000 (01:25 +0300)]
resource-client: add flag support for resource definitions

11 years agoresource-client: add a test client
Janos Kovacs [Mon, 1 Oct 2012 00:21:15 +0000 (03:21 +0300)]
resource-client: add a test client

11 years agoresource-plugin: complete first version of protocol
Janos Kovacs [Sun, 30 Sep 2012 23:30:40 +0000 (02:30 +0300)]
resource-plugin: complete first version of protocol

11 years agoresource: extend client api to support plugin-resource
Janos Kovacs [Sun, 30 Sep 2012 23:26:24 +0000 (02:26 +0300)]
resource: extend client api to support plugin-resource

11 years agoplugin-resource: add messages for querying and setting up resource sets
Janos Kovacs [Fri, 28 Sep 2012 14:56:45 +0000 (17:56 +0300)]
plugin-resource: add messages for querying and setting up resource sets

11 years agoresource-plugin: add protocol support for querying resources, classes and zones
Janos Kovacs [Wed, 26 Sep 2012 16:21:23 +0000 (19:21 +0300)]
resource-plugin: add protocol support for querying resources, classes and zones

11 years agoplugins: make separate subdir for resource plugin
Janos Kovacs [Tue, 25 Sep 2012 19:44:01 +0000 (22:44 +0300)]
plugins: make separate subdir for resource plugin

11 years agoplugins: initial version of resource plugin
Janos Kovacs [Tue, 25 Sep 2012 00:43:16 +0000 (03:43 +0300)]
plugins: initial version of resource plugin

11 years agoresource: insert application classes into the database
Janos Kovacs [Mon, 24 Sep 2012 02:09:41 +0000 (05:09 +0300)]
resource: insert application classes into the database

11 years agoresource: renamed resource-class => application class
Janos Kovacs [Mon, 24 Sep 2012 00:48:35 +0000 (03:48 +0300)]
resource: renamed resource-class => application class

The difference between resource-definition and resource-class
was apparently not clear for some folks and caused some confusion.
The resource-definitions, like 'audio_playback', are indeed resource
classes, while the former resource-classes like 'phone', 'navigator',
'camera', 'game', 'player' etc. are actually application classes.
For better clarity the resource-class was renamed to application-class.

11 years agoresource: add client query function to resource sets
Janos Kovacs [Mon, 24 Sep 2012 00:17:58 +0000 (03:17 +0300)]
resource: add client query function to resource sets

11 years agoresource: add destructor for resource set + integrate it with clients
Janos Kovacs [Mon, 24 Sep 2012 00:08:00 +0000 (03:08 +0300)]
resource: add destructor for resource set + integrate it with clients

11 years agoresource: add resource name query & attribute read/write functions to client api
Janos Kovacs [Sun, 23 Sep 2012 22:31:46 +0000 (01:31 +0300)]
resource: add resource name query & attribute read/write functions to client api

11 years agoresource: add callback support for events
Janos Kovacs [Sat, 22 Sep 2012 21:10:08 +0000 (00:10 +0300)]
resource: add callback support for events

11 years agoresource: add database table for zones
Janos Kovacs [Tue, 18 Sep 2012 00:33:27 +0000 (03:33 +0300)]
resource: add database table for zones

11 years agoresource: add database table for resource owners
Janos Kovacs [Tue, 18 Sep 2012 00:32:05 +0000 (03:32 +0300)]
resource: add database table for resource owners

11 years agoresource: api improvements
Janos Kovacs [Sun, 16 Sep 2012 23:26:48 +0000 (02:26 +0300)]
resource: api improvements

11 years agoresource: make separate api includes for clients managers and configurators
Janos Kovacs [Sun, 16 Sep 2012 21:40:30 +0000 (00:40 +0300)]
resource: make separate api includes for clients managers and configurators

11 years agoresource: add read/write attribute functions to resource and zone
Janos Kovacs [Sun, 16 Sep 2012 20:21:45 +0000 (23:21 +0300)]
resource: add read/write attribute functions to resource and zone

11 years agoresource: add support for resource managers
Janos Kovacs [Sun, 16 Sep 2012 09:44:41 +0000 (12:44 +0300)]
resource: add support for resource managers

Enforcement plugins could hook-into the resource allocation
process by providing some function pointers when they define the
resource(s) they manage. During the resource allocation process
these functions are called back. Such way the enfrocement plugin
could implement some actual actions that might be needed to manage
the actual resource(s) or they can block the resource allocation for
instance.