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

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.