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

11 years agodaemon: try to load resolver ruleset if specified in the config file.
Krisztian Litkey [Wed, 5 Sep 2012 08:27:36 +0000 (11:27 +0300)]
daemon: try to load resolver ruleset if specified in the config file.

11 years agocore: don't try to print NULL signature.
Krisztian Litkey [Wed, 5 Sep 2012 08:25:07 +0000 (11:25 +0300)]
core: don't try to print NULL signature.

11 years agocore: initial event infrastructure, daemon and plugin events.
Krisztian Litkey [Tue, 4 Sep 2012 16:43:01 +0000 (19:43 +0300)]
core: initial event infrastructure, daemon and plugin events.

The basic event interface provides a mechanism for
  - registering named events
  - subscribing to events
  - unsubscribing from events
  - emitting events with some attached event-specific data

Event emission relies on the generic messages of the transport
layer to attach data to events. Albeit admittably a bit cumbersome,
this provides a way to gracefully handle different than expected
data on the subscriber side.

11 years agocommon/msg: more convenience macros and functions.
Krisztian Litkey [Tue, 4 Sep 2012 16:36:10 +0000 (19:36 +0300)]
common/msg: more convenience macros and functions.

11 years agocommon: added mrp_list_update_address.
Krisztian Litkey [Tue, 4 Sep 2012 16:27:44 +0000 (19:27 +0300)]
common: added mrp_list_update_address.

11 years agodaemon: added configuration directive for setting resolver ruleset.
Krisztian Litkey [Mon, 3 Sep 2012 10:43:24 +0000 (13:43 +0300)]
daemon: added configuration directive for setting resolver ruleset.

Added a new configuration directive that can be used to set various
configuration settings. Currently it can only be used to set the
resolver ruleset path like this

set resolver-ruleset '/path/to/resolver/ruleset-file'

It can be generalized with a few minor changes to handle other
configuration settings if/when needed.

11 years agocommon: fix mrp_msg_t field (double-)allocation leak.
Krisztian Litkey [Mon, 3 Sep 2012 10:25:02 +0000 (13:25 +0300)]
common: fix mrp_msg_t field (double-)allocation leak.

11 years agocommon: fix leak in I/O watch deletion.
Krisztian Litkey [Mon, 3 Sep 2012 10:20:54 +0000 (13:20 +0300)]
common: fix leak in I/O watch deletion.

11 years agobuild-sys: fix for (re)moved resolver/script.c.
Krisztian Litkey [Mon, 3 Sep 2012 06:37:28 +0000 (09:37 +0300)]
build-sys: fix for (re)moved resolver/script.c.

11 years agobuild-sys: updated debug function mappings.
Krisztian Litkey [Mon, 3 Sep 2012 06:29:49 +0000 (09:29 +0300)]
build-sys: updated debug function mappings.

11 years agobuild-sys: build updates for core and resolver.
Krisztian Litkey [Mon, 3 Sep 2012 06:28:07 +0000 (09:28 +0300)]
build-sys: build updates for core and resolver.

11 years agoresolver: script compilation, function lookup and execution, and more.
Krisztian Litkey [Mon, 3 Sep 2012 06:21:31 +0000 (09:21 +0300)]
resolver: script compilation, function lookup and execution, and more.

Added basic script compilation, function lookup, and script execution
code. Also some of the supporting scripting code (script.c, context.c)
has been lifted over to core.

The current (dres-like) named variable model with nested scoping
probably does not make much sense any more. Needs a bit more thinking
and probably a rewrite...

11 years agorepo-fixing: fixup #2.
Krisztian Litkey [Fri, 26 Oct 2012 15:59:32 +0000 (18:59 +0300)]
repo-fixing: fixup #2.

11 years agocore: initial shot at method export/import; code liftover from resolver.
Krisztian Litkey [Mon, 3 Sep 2012 06:02:52 +0000 (09:02 +0300)]
core: initial shot at method export/import; code liftover from resolver.

Basic method export/import support has been added to core. Plugins
can now declare two sets of methods. One that they wish to export
for others and one that they need to import from others for performing
their basic function. Boilerplate routines for scripting can now be
exported with the same mechanism.

11 years agobuild-sys: updates for building the resolver.
Krisztian Litkey [Thu, 23 Aug 2012 13:33:45 +0000 (16:33 +0300)]
build-sys: updates for building the resolver.

11 years agoresolver: fixes, basic context variable handling.
Krisztian Litkey [Thu, 23 Aug 2012 13:30:43 +0000 (16:30 +0300)]
resolver: fixes, basic context variable handling.

11 years agoresolver: initial scripting infra + a primitive builtin script.
Krisztian Litkey [Tue, 21 Aug 2012 07:36:56 +0000 (10:36 +0300)]
resolver: initial scripting infra + a primitive builtin script.

11 years agocommon: added mrp_list_move for moving full lists between hooks.
Krisztian Litkey [Tue, 21 Aug 2012 07:20:34 +0000 (10:20 +0300)]
common: added mrp_list_move for moving full lists between hooks.

11 years agocommon: test and debug line info update.
Krisztian Litkey [Mon, 13 Aug 2012 07:17:03 +0000 (10:17 +0300)]
common: test and debug line info update.

11 years agobuild-sys: debug table generation fixes/cleanup.
Krisztian Litkey [Mon, 13 Aug 2012 07:12:59 +0000 (10:12 +0300)]
build-sys: debug table generation fixes/cleanup.

11 years agoresolver: initial import of an embrionic dependency resolver.
Krisztian Litkey [Mon, 13 Aug 2012 07:09:03 +0000 (10:09 +0300)]
resolver: initial import of an embrionic dependency resolver.

11 years agocommon: fixed debug control by file basename.
Krisztian Litkey [Fri, 10 Aug 2012 15:15:48 +0000 (18:15 +0300)]
common: fixed debug control by file basename.

11 years agorepo-fixing: fixup #1.
Krisztian Litkey [Fri, 26 Oct 2012 15:43:07 +0000 (18:43 +0300)]
repo-fixing: fixup #1.

11 years agoDebugging function info update (changed because of license insertion).
Krisztian Litkey [Wed, 4 Jul 2012 12:29:31 +0000 (15:29 +0300)]
Debugging function info update (changed because of license insertion).

11 years agobuild-sys: added --enable-gpl configure option.
Krisztian Litkey [Wed, 4 Jul 2012 12:26:26 +0000 (15:26 +0300)]
build-sys: added --enable-gpl configure option.

11 years agolicensing: rewrote COPYING.
Ismo Puustinen [Wed, 4 Jul 2012 11:57:10 +0000 (14:57 +0300)]
licensing: rewrote COPYING.

11 years agoAdded licensing information.
Krisztian Litkey [Wed, 4 Jul 2012 11:35:51 +0000 (14:35 +0300)]
Added licensing information.

11 years agocommon, core: moved debug site listing to common.
Krisztian Litkey [Tue, 3 Jul 2012 16:03:54 +0000 (19:03 +0300)]
common, core: moved debug site listing to common.

12 years agobuild-sys: keep generated linker scripts, debug files around.
Krisztian Litkey [Fri, 29 Jun 2012 15:59:42 +0000 (18:59 +0300)]
build-sys: keep generated linker scripts, debug files around.

To avoid having a hard compile-time dependency on ctags/etags,
we keep generated linker scripts and debug function info files
in the repository and only regenerate them when required. IOW,
they are required for hacking around in but not for just compiling
murphy...

12 years agobuild-sys: install also configuration file.
Krisztian Litkey [Fri, 29 Jun 2012 11:02:14 +0000 (14:02 +0300)]
build-sys: install also configuration file.

12 years agobuild-sys: configure takes list of dynamic plugins now.
Krisztian Litkey [Fri, 29 Jun 2012 11:01:46 +0000 (14:01 +0300)]
build-sys: configure takes list of dynamic plugins now.

12 years agocommon: check custom data counted array consistency on the receiver side.
Krisztian Litkey [Thu, 28 Jun 2012 15:52:16 +0000 (18:52 +0300)]
common: check custom data counted array consistency on the receiver side.

12 years agomurphy-db: eliminating typedef redefinitions
Krisztian Litkey [Thu, 28 Jun 2012 14:59:53 +0000 (17:59 +0300)]
murphy-db: eliminating typedef redefinitions

12 years agomurphy-db: fixes for more recent/pedantic versions of gcc.
Krisztian Litkey [Thu, 28 Jun 2012 13:15:24 +0000 (16:15 +0300)]
murphy-db: fixes for more recent/pedantic versions of gcc.

12 years agocommon/tests: fixes for more recent/pedantic versions of gcc.
Krisztian Litkey [Thu, 28 Jun 2012 13:12:57 +0000 (16:12 +0300)]
common/tests: fixes for more recent/pedantic versions of gcc.

12 years agoconsole: fixes for more recent/pedantic versions of gcc.
Krisztian Litkey [Thu, 28 Jun 2012 13:12:29 +0000 (16:12 +0300)]
console: fixes for more recent/pedantic versions of gcc.

12 years agodbus: fixes for more recent/pedantic versions of gcc.
Krisztian Litkey [Thu, 28 Jun 2012 13:12:13 +0000 (16:12 +0300)]
dbus: fixes for more recent/pedantic versions of gcc.

12 years agocommon: fixes for more recent/pedantic versions of gcc.
Krisztian Litkey [Thu, 28 Jun 2012 13:11:53 +0000 (16:11 +0300)]
common: fixes for more recent/pedantic versions of gcc.

12 years agomurphy-db: eliminating typedef redefinitions
Janos Kovacs [Wed, 27 Jun 2012 14:52:26 +0000 (17:52 +0300)]
murphy-db: eliminating typedef redefinitions

12 years agobuild: added a ctags check to configure.ac.
Ismo Puustinen [Wed, 27 Jun 2012 11:16:41 +0000 (14:16 +0300)]
build: added a ctags check to configure.ac.

12 years agobuild-sys: configure help message cosmetology.
Krisztian Litkey [Wed, 27 Jun 2012 13:21:26 +0000 (16:21 +0300)]
build-sys: configure help message cosmetology.

12 years agobuild-sys: support for disabling individual plugins, and the console.
Krisztian Litkey [Wed, 27 Jun 2012 13:19:05 +0000 (16:19 +0300)]
build-sys: support for disabling individual plugins, and the console.

12 years agobuild-sys: when warning, also tell how to install git hooks.
Krisztian Litkey [Wed, 27 Jun 2012 10:24:44 +0000 (13:24 +0300)]
build-sys: when warning, also tell how to install git hooks.

12 years agocleanup: monsterously huge whitespace cleanup, git pre-commit hook.
Krisztian Litkey [Tue, 26 Jun 2012 16:25:04 +0000 (19:25 +0300)]
cleanup: monsterously huge whitespace cleanup, git pre-commit hook.

From this point on, please configure your editor to
  - use spaces instead of tabs
  - warn about (or colorize) whitespace errors (tabs, trailing
    whitespace, emply line with whitespace, etc.)

Also after having clones/pulled this update, please run a
'make install-git-hooks' at the top level directory. This will
install a custom pre-commit hook that prevents subsequent
commits that would accidentially introduce whitespace errors.