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

12 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.

12 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.

12 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).

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

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

12 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.

12 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

12 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

12 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

12 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

12 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

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

12 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.

12 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

12 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

12 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

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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.

12 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

12 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

12 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

12 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

12 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

12 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

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

12 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

12 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

12 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.

12 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

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

12 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

12 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

12 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

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

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

12 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

12 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

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

12 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.

12 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.

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

12 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.

12 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.

12 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.

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

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

12 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.

12 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...

12 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.

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

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

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

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

12 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.

12 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.

12 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.

12 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.

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

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

12 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.

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

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

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

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

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

12 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.

12 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.

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

12 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.

12 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.

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

12 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...

12 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.

12 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.

12 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}.

12 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