profile/ivi/murphy.git
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.

11 years agoresource: richer get and set functionality
Janos Kovacs [Fri, 14 Sep 2012 12:50:10 +0000 (15:50 +0300)]
resource: richer get and set functionality

- attributes now have an access field to control gets/sets
- added some more functions to fetch (ie. get) individual
  attribute values or obtain the list of all readable attributes

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

11 years agobuild: fix Makefile.am to have right include pathes for resource compilation
Janos Kovacs [Fri, 14 Sep 2012 12:48:32 +0000 (15:48 +0300)]
build: fix Makefile.am to have right include pathes for resource compilation

11 years agoresource: fix bugs to get libmurphy-resource compiled and linked
Janos Kovacs [Tue, 11 Sep 2012 01:44:12 +0000 (04:44 +0300)]
resource: fix bugs to get libmurphy-resource compiled and linked

11 years agoresource: add libmurphy-resource building section to Makefile.am
Janos Kovacs [Tue, 11 Sep 2012 01:42:28 +0000 (04:42 +0300)]
resource: add libmurphy-resource building section to Makefile.am

11 years agoresource: add packaging info
Janos Kovacs [Tue, 11 Sep 2012 01:41:38 +0000 (04:41 +0300)]
resource: add packaging info

11 years agoresource: add source files
Janos Kovacs [Tue, 11 Sep 2012 00:20:54 +0000 (03:20 +0300)]
resource: add source files

11 years agoplugin-test: add mqi_open() that db-cmd's work even if noone else opens the DB
Janos Kovacs [Sun, 7 Oct 2012 16:31:38 +0000 (19:31 +0300)]
plugin-test: add mqi_open() that db-cmd's work even if noone else opens the DB

11 years agomurphy-db: fix memory corruption when dropping mdb tables
Janos Kovacs [Sat, 6 Oct 2012 21:40:10 +0000 (00:40 +0300)]
murphy-db: fix memory corruption when dropping mdb tables

11 years agomurphy-db: fix transaction iterator
Janos Kovacs [Sat, 6 Oct 2012 21:34:28 +0000 (00:34 +0300)]
murphy-db: fix transaction iterator

11 years agotest plugin: use transactions when fiddling with the DB.
Krisztian Litkey [Thu, 4 Oct 2012 06:44:24 +0000 (09:44 +0300)]
test plugin: use transactions when fiddling with the DB.

11 years agocore: added MRP_PLUGIN_ARGUMENTS convenience macro.
Krisztian Litkey [Thu, 4 Oct 2012 06:42:43 +0000 (09:42 +0300)]
core: added MRP_PLUGIN_ARGUMENTS convenience macro.

11 years agocommon: fix missing include.
Krisztian Litkey [Thu, 4 Oct 2012 06:41:41 +0000 (09:41 +0300)]
common: fix missing include.

11 years agobuild-sys: gen-linkedin-loader helper script.
Krisztian Litkey [Thu, 4 Oct 2012 06:38:56 +0000 (09:38 +0300)]
build-sys: gen-linkedin-loader helper script.

11 years agocommon: added iterating version of mrp_msg_get.
Krisztian Litkey [Thu, 4 Oct 2012 06:37:05 +0000 (09:37 +0300)]
common: added iterating version of mrp_msg_get.

11 years agobuild-sys: handle no exports by gen-inker-script.
Krisztian Litkey [Thu, 4 Oct 2012 06:35:13 +0000 (09:35 +0300)]
build-sys: handle no exports by gen-inker-script.

11 years agocommon: update debug function info.
Krisztian Litkey [Fri, 28 Sep 2012 14:21:55 +0000 (17:21 +0300)]
common: update debug function info.

11 years agobuild-sys: better include defaults.
Krisztian Litkey [Fri, 28 Sep 2012 14:21:14 +0000 (17:21 +0300)]
build-sys: better include defaults.

11 years agocommon/ecore-glue: try to emulate HUP I/O events
Krisztian Litkey [Thu, 27 Sep 2012 11:34:32 +0000 (14:34 +0300)]
common/ecore-glue: try to emulate HUP I/O events

Try to emulate HUP I/O events on top of ecore main loop using
recv/MSG_PEEK whenever the fd becomes readable and the user has
subscribed for HUP events. Fortunately this is not needed as we
only use ecore I/O watches to monitor our epoll fd. I've added
it just for the sake of completeness.

11 years agocommon/ecore-glue: added libmurphy-ecore, an EFL/ecore murphy superloop.
Krisztian Litkey [Thu, 27 Sep 2012 08:23:31 +0000 (11:23 +0300)]
common/ecore-glue: added libmurphy-ecore, an EFL/ecore murphy superloop.

libmurphy-ecore provides the necessary gluing code to enable the murphy
mainloop to be pumped by an EFL/ecore mainloop. Since ecore internally
uses glib, we'll probably have eventually a similar glib-glue library
and use that for ecore-glue as well...

11 years agocommon: a bit better superloop abstraction with improvement cleanup
Krisztian Litkey [Thu, 27 Sep 2012 08:04:50 +0000 (11:04 +0300)]
common: a bit better superloop abstraction with improvement cleanup

Cleaned up a little bit the superloop abstraction with repect to
cleanup/unregistration. Now the superloop glue code provides a
cleanup handler which is invoked by the mainloop during unregistration.
The dangerous bits of passing the opaque glue data between the mainloop
and the superloop glue via the user are now gone.

Updated the pulse glue accordingly.

11 years agocommon/transport: uninitialized variable fix.
Krisztian Litkey [Thu, 27 Sep 2012 07:59:13 +0000 (10:59 +0300)]
common/transport: uninitialized variable fix.

11 years agomurphy-db: return MQI_STAMP_NONE as stamp for non-existing tables.
Krisztian Litkey [Wed, 26 Sep 2012 13:21:46 +0000 (16:21 +0300)]
murphy-db: return MQI_STAMP_NONE as stamp for non-existing tables.

11 years agocommon: added mrp_msg_set, mrp_msg_iterate, mrp_msg_find for arrays.
Krisztian Litkey [Wed, 26 Sep 2012 13:18:39 +0000 (16:18 +0300)]
common: added mrp_msg_set, mrp_msg_iterate, mrp_msg_find for arrays.

11 years agodaemon: handle correctly log levels given with -l.
Krisztian Litkey [Tue, 25 Sep 2012 17:08:21 +0000 (20:08 +0300)]
daemon: handle correctly log levels given with -l.

11 years agomurphy-db: get_table_handle should return MQI_INVALID_HANDLE for non-existing tables.
Krisztian Litkey [Mon, 24 Sep 2012 07:39:32 +0000 (10:39 +0300)]
murphy-db: get_table_handle should return MQI_INVALID_HANDLE for non-existing tables.

11 years agomurphy-db: fix some initialization macros to compile cleaner with -Wextra.
Krisztian Litkey [Mon, 24 Sep 2012 07:36:22 +0000 (10:36 +0300)]
murphy-db: fix some initialization macros to compile cleaner with -Wextra.

11 years agocommon: fix incorrect index usage in default decoding of arrays.
Krisztian Litkey [Fri, 14 Sep 2012 18:58:32 +0000 (21:58 +0300)]
common: fix incorrect index usage in default decoding of arrays.

11 years agoscripts: report autotools failures in bootstrap.
Krisztian Litkey [Thu, 13 Sep 2012 06:56:39 +0000 (09:56 +0300)]
scripts: report autotools failures in bootstrap.

11 years agocommon/msg: added mrp_msg_get for fetching multiple message fields.
Krisztian Litkey [Wed, 12 Sep 2012 19:54:32 +0000 (22:54 +0300)]
common/msg: added mrp_msg_get for fetching multiple message fields.

You can use mrp_msg_get to fetch multiple fields from a message with
a single function call. Moreover, the implementation will do its best
to avoid scanning the message more than once. IOW, mrp_msg_get can be
used to fetch multiple fields from a message efficiently if the fields
to fetch are specified in the same order (with potential fields missing
in between) as they are present in the actual message.

11 years agoAdded missing licensing information.
Krisztian Litkey [Wed, 12 Sep 2012 11:55:58 +0000 (14:55 +0300)]
Added missing licensing information.

11 years agoscripts: added build-aux/enlicense.
Krisztian Litkey [Wed, 12 Sep 2012 11:49:00 +0000 (14:49 +0300)]
scripts: added build-aux/enlicense.

11 years agocommon: fix the stream-transport read handling.
Ismo Puustinen [Wed, 12 Sep 2012 09:25:42 +0000 (12:25 +0300)]
common: fix the stream-transport read handling.

11 years agoconfig: try to load the signalling plugin.
Ismo Puustinen [Thu, 21 Jun 2012 15:15:36 +0000 (18:15 +0300)]
config: try to load the signalling plugin.

11 years agobuild-sys: regenerated common-func-info.
Ismo Puustinen [Tue, 11 Sep 2012 09:27:37 +0000 (12:27 +0300)]
build-sys: regenerated common-func-info.

11 years agocommon: removed extra debug messages from internal transport.
Ismo Puustinen [Tue, 11 Sep 2012 09:33:21 +0000 (12:33 +0300)]
common: removed extra debug messages from internal transport.

11 years agobuild-sys: correct tabulation.
Ismo Puustinen [Tue, 11 Sep 2012 09:23:30 +0000 (12:23 +0300)]
build-sys: correct tabulation.

11 years agosignalling: import methods.
Ismo Puustinen [Fri, 7 Sep 2012 08:25:10 +0000 (11:25 +0300)]
signalling: import methods.

11 years agobuild-sys: no longer generate symbols for signalling.
Ismo Puustinen [Fri, 7 Sep 2012 10:33:44 +0000 (13:33 +0300)]
build-sys: no longer generate symbols for signalling.

11 years agosignalling: plugin compiles again.
Ismo Puustinen [Fri, 7 Sep 2012 07:24:05 +0000 (10:24 +0300)]
signalling: plugin compiles again.

11 years agobuild-sys: added missing header files to install.
Ismo Puustinen [Thu, 6 Sep 2012 11:43:30 +0000 (14:43 +0300)]
build-sys: added missing header files to install.

11 years agocommon: bug fixes in internal transport and tests.
Ismo Puustinen [Mon, 27 Aug 2012 10:36:05 +0000 (13:36 +0300)]
common: bug fixes in internal transport and tests.

11 years agotests: basic test for creating internal enforcement point.
Ismo Puustinen [Tue, 21 Aug 2012 13:43:38 +0000 (16:43 +0300)]
tests: basic test for creating internal enforcement point.

11 years agocommon: initial support for internal transport.
Ismo Puustinen [Thu, 12 Jul 2012 10:54:27 +0000 (13:54 +0300)]
common: initial support for internal transport.

11 years agosignalling: started working on multiple endpoint support.
Ismo Puustinen [Thu, 5 Jul 2012 13:00:15 +0000 (16:00 +0300)]
signalling: started working on multiple endpoint support.

11 years agotest: parametrized the test enforcement point.
Ismo Puustinen [Thu, 5 Jul 2012 07:25:35 +0000 (10:25 +0300)]
test: parametrized the test enforcement point.

11 years agosignalling: added license headers.
Ismo Puustinen [Wed, 4 Jul 2012 13:35:46 +0000 (16:35 +0300)]
signalling: added license headers.

11 years agotest: more tests for signalling.
Ismo Puustinen [Wed, 4 Jul 2012 13:30:35 +0000 (16:30 +0300)]
test: more tests for signalling.

11 years agosignalling: fixed API error handling.
Ismo Puustinen [Wed, 4 Jul 2012 13:30:23 +0000 (16:30 +0300)]
signalling: fixed API error handling.

11 years agotest: added a function to test plugin for testing signalling interface.
Ismo Puustinen [Tue, 3 Jul 2012 15:07:57 +0000 (18:07 +0300)]
test: added a function to test plugin for testing signalling interface.

11 years agosignalling: fixes to transactions, better debug messages.
Ismo Puustinen [Tue, 3 Jul 2012 14:57:53 +0000 (17:57 +0300)]
signalling: fixes to transactions, better debug messages.

11 years agosignalling: support for transaction timeouts.
Ismo Puustinen [Tue, 3 Jul 2012 13:14:16 +0000 (16:14 +0300)]
signalling: support for transaction timeouts.

11 years agosignalling: add an initial signalling plugin.
Ismo Puustinen [Fri, 29 Jun 2012 11:21:51 +0000 (14:21 +0300)]
signalling: add an initial signalling plugin.

11 years agoplugin-test: test hack console command for testing target updates.
Krisztian Litkey [Tue, 11 Sep 2012 08:11:26 +0000 (11:11 +0300)]
plugin-test: test hack console command for testing target updates.

11 years agocore: debug table update.
Krisztian Litkey [Tue, 11 Sep 2012 08:05:33 +0000 (11:05 +0300)]
core: debug table update.

11 years agoresolver: emit target update events, run autoupdate from a deferred cb.
Krisztian Litkey [Tue, 11 Sep 2012 07:50:01 +0000 (10:50 +0300)]
resolver: emit target update events, run autoupdate from a deferred cb.

Deferring autoupdates requires deferring functions from the main
loop. These are available from the main murphy context on which
the resolver did not have any dependency so far. Direct dependency
could have been avoided by hiding the deferring functions behind
externally provided callbacks.

However, since eventually we probably want to be able to demand-
load (mrp_request_plugin) scriptlet interpreter plugins it's easier
to just provide access to the main context (and its mainloop) for
the resolver. The downside is that this creates an ugly cross-
dependency between the main context and the resolver context...

11 years agoresolver: added basic event emission support.
Krisztian Litkey [Tue, 11 Sep 2012 07:22:42 +0000 (10:22 +0300)]
resolver: added basic event emission support.

11 years agocore, common/msg: enabled sentinel check for safer event emitting.
Krisztian Litkey [Tue, 11 Sep 2012 07:16:10 +0000 (10:16 +0300)]
core, common/msg: enabled sentinel check for safer event emitting.

11 years agocommon: added mrp_list_insert_{before,after}.
Krisztian Litkey [Tue, 11 Sep 2012 07:12:52 +0000 (10:12 +0300)]
common: added mrp_list_insert_{before,after}.

11 years agocommon: including macros.h in hashtbl.h
Janos Kovacs [Mon, 10 Sep 2012 22:53:46 +0000 (01:53 +0300)]
common: including macros.h in hashtbl.h

11 years agocore: force exported/imported methods to be static.
Krisztian Litkey [Fri, 7 Sep 2012 17:37:22 +0000 (20:37 +0300)]
core: force exported/imported methods to be static.

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

11 years agoplugin-test: ugly hacks for DB/resolver testing.
Krisztian Litkey [Fri, 7 Sep 2012 17:29:14 +0000 (20:29 +0300)]
plugin-test: ugly hacks for DB/resolver testing.

11 years agodaemon: minor cleanup.
Krisztian Litkey [Fri, 7 Sep 2012 17:28:27 +0000 (20:28 +0300)]
daemon: minor cleanup.

11 years agoresolver: preliminary DB integration, autoupdate&script preparation support.
Krisztian Litkey [Fri, 7 Sep 2012 17:25:38 +0000 (20:25 +0300)]
resolver: preliminary DB integration, autoupdate&script preparation support.

11 years agocore: added scriptlet preparation support.
Krisztian Litkey [Fri, 7 Sep 2012 17:14:58 +0000 (20:14 +0300)]
core: added scriptlet preparation support.

Added a prepare operation to scriptlet interpreter. If provided by an
interpreter, preparing a scriptlet should carry out any and all actions
necessary to finalize a compiled scriptlet for execution. For instance,
the simple builtin resolver scriptlet interpreter uses the preparation
phase to link function names to exported functions. The normal sequence
to run a scriptlet is now create - compile - prepare - execute.

11 years agodaemon: enable debug logs if debug options are set.
Krisztian Litkey [Fri, 7 Sep 2012 16:05:53 +0000 (19:05 +0300)]
daemon: enable debug logs if debug options are set.

11 years agodaemon: active logging/debugging options immediately.
Krisztian Litkey [Thu, 6 Sep 2012 15:17:17 +0000 (18:17 +0300)]
daemon: active logging/debugging options immediately.

11 years agodaemon: added forgotten daemon.h
Krisztian Litkey [Thu, 6 Sep 2012 14:04:30 +0000 (17:04 +0300)]
daemon: added forgotten daemon.h

11 years agoresolver: added forgotten scanner.h.
Krisztian Litkey [Thu, 6 Sep 2012 14:04:15 +0000 (17:04 +0300)]
resolver: added forgotten scanner.h.

11 years agocommon: updated debug function info.
Krisztian Litkey [Thu, 6 Sep 2012 13:57:45 +0000 (16:57 +0300)]
common: updated debug function info.

11 years agomurphy-db: don't start failing transaction creation from the MQI_TXDEPTH_MAX-1'th...
Krisztian Litkey [Thu, 6 Sep 2012 11:58:08 +0000 (14:58 +0300)]
murphy-db: don't start failing transaction creation from the MQI_TXDEPTH_MAX-1'th transaction.

11 years agomurphy-db: correctly return the number of affected rows for 'delete all's.
Krisztian Litkey [Thu, 6 Sep 2012 11:53:41 +0000 (14:53 +0300)]
murphy-db: correctly return the number of affected rows for 'delete all's.

11 years agomurphy-db: added mqi and mdb support for table stamping.
Krisztian Litkey [Thu, 6 Sep 2012 11:44:35 +0000 (14:44 +0300)]
murphy-db: added mqi and mdb support for table stamping.

Each table has now a modification stamp. The modification stamp
is a monotonically increasing integer that is incremented every
time a new transaction modifies a table, ie. the stamp is the
number of transactions that have modified the table (and have
eventually been fully committed). Stamps are preserved across
commits and rolled back during rollbacks. Stamps can be queried
by table handle.

11 years agoresolver: 's/cleanup/destroy/g'.
Krisztian Litkey [Thu, 6 Sep 2012 06:14:54 +0000 (09:14 +0300)]
resolver: 's/cleanup/destroy/g'.

11 years agoresolver: removed unused/moved context typedefs.
Krisztian Litkey [Wed, 5 Sep 2012 11:13:14 +0000 (14:13 +0300)]
resolver: removed unused/moved context typedefs.

11 years agoresolver: added builtin echo.
Krisztian Litkey [Wed, 5 Sep 2012 10:29:29 +0000 (13:29 +0300)]
resolver: added builtin echo.

11 years agoresolver: better relative path handling for includes.
Krisztian Litkey [Wed, 5 Sep 2012 08:46:58 +0000 (11:46 +0300)]
resolver: better relative path handling for includes.

11 years agocore: allow including method.h without including plugin.h first.
Krisztian Litkey [Wed, 5 Sep 2012 10:09:46 +0000 (13:09 +0300)]
core: allow including method.h without including plugin.h first.