profile/ivi/murphy.git
11 years agolua-utils: fix mrp_lua_to_object() to not leave garbage on the stack
Janos Kovacs [Sun, 6 Jan 2013 03:10:40 +0000 (05:10 +0200)]
lua-utils: fix mrp_lua_to_object() to not leave garbage on the stack

11 years agolua-utils: userdata of objects is aligned as structure not as char array
Janos Kovacs [Wed, 26 Dec 2012 20:11:11 +0000 (22:11 +0200)]
lua-utils: userdata of objects is aligned as structure not as char array

11 years agoMerge branch 'master' of https://github.com/otcshare/policy-internal
Janos Kovacs [Wed, 26 Dec 2012 20:14:46 +0000 (22:14 +0200)]
Merge branch 'master' of https://github.com/otcshare/policy-internal

11 years agoplugin-console: updated debug info.
Krisztian Litkey [Fri, 21 Dec 2012 15:10:57 +0000 (17:10 +0200)]
plugin-console: updated debug info.

11 years agocore: updated debug info.
Krisztian Litkey [Fri, 21 Dec 2012 15:10:34 +0000 (17:10 +0200)]
core: updated debug info.

11 years agocommon: updated debug info.
Krisztian Litkey [Fri, 21 Dec 2012 15:10:25 +0000 (17:10 +0200)]
common: updated debug info.

11 years agocore: updated linker script.
Krisztian Litkey [Fri, 21 Dec 2012 15:09:40 +0000 (17:09 +0200)]
core: updated linker script.

11 years agocommon: updated linker script.
Krisztian Litkey [Fri, 21 Dec 2012 15:09:34 +0000 (17:09 +0200)]
common: updated linker script.

11 years agoplugin-console: possibly uninitialised var fix.
Krisztian Litkey [Fri, 21 Dec 2012 15:08:53 +0000 (17:08 +0200)]
plugin-console: possibly uninitialised var fix.

11 years agocommon: possibly uninitialised var fix.
Krisztian Litkey [Fri, 21 Dec 2012 15:08:35 +0000 (17:08 +0200)]
common: possibly uninitialised var fix.

11 years agoMerge branch 'master' of github.com:otcshare/policy-internal
Krisztian Litkey [Fri, 21 Dec 2012 14:30:30 +0000 (16:30 +0200)]
Merge branch 'master' of github.com:otcshare/policy-internal

11 years agoplugin-console: register (currently only stream-based) consoles as logging targets.
Krisztian Litkey [Fri, 21 Dec 2012 14:27:28 +0000 (16:27 +0200)]
plugin-console: register (currently only stream-based) consoles as logging targets.

11 years agocore: added mrp_console_vprintf.
Krisztian Litkey [Fri, 21 Dec 2012 14:26:23 +0000 (16:26 +0200)]
core: added mrp_console_vprintf.

11 years agocore: added logging configuration commands.
Krisztian Litkey [Fri, 21 Dec 2012 13:19:05 +0000 (15:19 +0200)]
core: added logging configuration commands.

11 years agocommon: improved log setting queriability.
Krisztian Litkey [Fri, 21 Dec 2012 13:18:23 +0000 (15:18 +0200)]
common: improved log setting queriability.

11 years agoconfig: do not load signalling plugin.
Ismo Puustinen [Fri, 21 Dec 2012 13:14:08 +0000 (15:14 +0200)]
config: do not load signalling plugin.

11 years agosignalling: removed the old-style signalling plugin.
Ismo Puustinen [Fri, 21 Dec 2012 13:12:37 +0000 (15:12 +0200)]
signalling: removed the old-style signalling plugin.

11 years agolua-utils: fix in object destructor
Janos Kovacs [Thu, 20 Dec 2012 20:28:15 +0000 (22:28 +0200)]
lua-utils: fix in object destructor

11 years agocommon: updated debug info.
Krisztian Litkey [Thu, 20 Dec 2012 20:06:23 +0000 (22:06 +0200)]
common: updated debug info.

11 years agocommon: updated linker script.
Krisztian Litkey [Thu, 20 Dec 2012 20:05:58 +0000 (22:05 +0200)]
common: updated linker script.

11 years agodaemon: delayed log target activation
Krisztian Litkey [Thu, 20 Dec 2012 18:26:47 +0000 (20:26 +0200)]
daemon: delayed log target activation

To quickly enable the activation of loggers registered by plugins
the log target is now activated from the daemon startup main code
path (used to be done during command line parsing).

This is a quick hack to get dlog going. Probably the right thing
to do is to try activating it as early as possible (during command
line parsing) to get startup messages going to the right place,
take a note if this fails and in this case retry it from the daemon
startup main code path. Later...

11 years agolog: reworked logging to open up logging for external loggers.
Krisztian Litkey [Thu, 20 Dec 2012 14:49:53 +0000 (16:49 +0200)]
log: reworked logging to open up logging for external loggers.

11 years agocommon: fully reset hashtable config.
Krisztian Litkey [Wed, 19 Dec 2012 06:45:49 +0000 (08:45 +0200)]
common: fully reset hashtable config.

11 years agomurphy-db: don't fail for MQL select on an empty table.
Krisztian Litkey [Mon, 17 Dec 2012 11:06:39 +0000 (13:06 +0200)]
murphy-db: don't fail for MQL select on an empty table.

11 years agoresource-native: owners is a non-selectable command.
Krisztian Litkey [Thu, 13 Dec 2012 18:35:39 +0000 (20:35 +0200)]
resource-native: owners is a non-selectable command.

11 years agomurphy-db: handle NULL varchar columns gracefully.
Krisztian Litkey [Thu, 13 Dec 2012 15:39:14 +0000 (17:39 +0200)]
murphy-db: handle NULL varchar columns gracefully.

11 years agocommon: allow NULL path in DBUS signal handlers.
Krisztian Litkey [Thu, 13 Dec 2012 15:38:11 +0000 (17:38 +0200)]
common: allow NULL path in DBUS signal handlers.

11 years agocommon: do not free a NULL D-Bus error.
Ismo Puustinen [Wed, 12 Dec 2012 11:20:52 +0000 (13:20 +0200)]
common: do not free a NULL D-Bus error.

11 years agocommon: the transport I/O watch removal (commit 180802...5e711) seems to triggers...
Krisztian Litkey [Tue, 11 Dec 2012 20:33:31 +0000 (22:33 +0200)]
common: the transport I/O watch removal (commit 180802...5e711) seems to triggers a transport bug, disable it for now.

11 years agoMerge branch 'master' of github.com:otcshare/policy-internal
Krisztian Litkey [Tue, 11 Dec 2012 14:23:44 +0000 (16:23 +0200)]
Merge branch 'master' of github.com:otcshare/policy-internal

11 years agocommon: always remove stream transport I/O watch during disconnect.
Krisztian Litkey [Tue, 11 Dec 2012 14:17:55 +0000 (16:17 +0200)]
common: always remove stream transport I/O watch during disconnect.

11 years agocommon: stop monitoring fd if owner keeps ignoring EPOLLHUP notifications.
Krisztian Litkey [Tue, 11 Dec 2012 14:16:38 +0000 (16:16 +0200)]
common: stop monitoring fd if owner keeps ignoring EPOLLHUP notifications.

11 years agocore: check memory before usage.
Ismo Puustinen [Tue, 11 Dec 2012 09:25:28 +0000 (11:25 +0200)]
core: check memory before usage.

11 years agomdb: check allocation success before use.
Ismo Puustinen [Tue, 11 Dec 2012 09:22:48 +0000 (11:22 +0200)]
mdb: check allocation success before use.

11 years agotransport: do not free transport in the middle of busy block.
Ismo Puustinen [Tue, 11 Dec 2012 09:15:15 +0000 (11:15 +0200)]
transport: do not free transport in the middle of busy block.

The transport reference count is decremented when exiting from the busy
block.

11 years agoresource: check NULL value before getting struct member.
Ismo Puustinen [Tue, 11 Dec 2012 09:10:25 +0000 (11:10 +0200)]
resource: check NULL value before getting struct member.

11 years agoresource: do not crash when querying attributes.
Ismo Puustinen [Tue, 11 Dec 2012 09:08:51 +0000 (11:08 +0200)]
resource: do not crash when querying attributes.

11 years agolua-decision: check for memory allocation success.
Ismo Puustinen [Tue, 11 Dec 2012 08:55:35 +0000 (10:55 +0200)]
lua-decision: check for memory allocation success.

11 years agoresource: do not assign to members of NULL pointers.
Ismo Puustinen [Tue, 11 Dec 2012 08:50:48 +0000 (10:50 +0200)]
resource: do not assign to members of NULL pointers.

11 years agomql: initialize variable before use.
Ismo Puustinen [Tue, 11 Dec 2012 08:46:14 +0000 (10:46 +0200)]
mql: initialize variable before use.

11 years agobreedline: default to 80x25 if size detection fails. 66/2566/1
Krisztian Litkey [Mon, 10 Dec 2012 23:39:20 +0000 (01:39 +0200)]
breedline: default to 80x25 if size detection fails.

11 years agoconsole: use unix domain socket by default. 65/2565/1
Krisztian Litkey [Mon, 10 Dec 2012 22:43:17 +0000 (00:43 +0200)]
console: use unix domain socket by default.

11 years agoresource: use unix domain socket by default for resource-native. 64/2564/1
Krisztian Litkey [Mon, 10 Dec 2012 22:35:59 +0000 (00:35 +0200)]
resource: use unix domain socket by default for resource-native.

11 years agoMerge branch 'master' of github.com:otcshare/policy-internal 63/2563/1
Krisztian Litkey [Mon, 10 Dec 2012 20:40:27 +0000 (22:40 +0200)]
Merge branch 'master' of github.com:otcshare/policy-internal

Conflicts:
src/core/lua-utils/object.c
src/core/lua-utils/object.h

11 years agolua-utils: add object destructor 62/2562/1
Janos Kovacs [Mon, 10 Dec 2012 19:46:18 +0000 (21:46 +0200)]
lua-utils: add object destructor

11 years agolua-decision: add boolean support to funcbridge 61/2561/1
Janos Kovacs [Thu, 6 Dec 2012 02:35:55 +0000 (04:35 +0200)]
lua-decision: add boolean support to funcbridge

11 years agolua-utils: add object destructor 60/2560/1
Janos Kovacs [Thu, 6 Dec 2012 00:40:11 +0000 (02:40 +0200)]
lua-utils: add object destructor

11 years agolua-utils: make check_funcbridge public 59/2559/1
Janos Kovacs [Thu, 6 Dec 2012 00:20:48 +0000 (02:20 +0200)]
lua-utils: make check_funcbridge public

11 years agodocumentation: added some D-Bus resource api documentation. 58/2558/1
Ismo Puustinen [Wed, 5 Dec 2012 15:25:20 +0000 (17:25 +0200)]
documentation: added some D-Bus resource api documentation.

11 years agomainloop-test: get rid of a few unused var warnings.
Krisztian Litkey [Tue, 4 Dec 2012 21:31:56 +0000 (23:31 +0200)]
mainloop-test: get rid of a few unused var warnings.

11 years agobuild-sys: really... try to generate all linker scripts if asked so.
Krisztian Litkey [Tue, 4 Dec 2012 21:20:51 +0000 (23:20 +0200)]
build-sys: really... try to generate all linker scripts if asked so.

11 years agointernal-transport: fix error case handling.
Ismo Puustinen [Tue, 4 Dec 2012 12:32:10 +0000 (14:32 +0200)]
internal-transport: fix error case handling.

11 years agoresource-dbus: fixing error case handling.
Ismo Puustinen [Tue, 4 Dec 2012 12:31:39 +0000 (14:31 +0200)]
resource-dbus: fixing error case handling.

11 years agoresource-library: do not crash when destroying resource sets
Janos Kovacs [Tue, 4 Dec 2012 10:21:43 +0000 (12:21 +0200)]
resource-library: do not crash when destroying resource sets

11 years agocommon, core: fixing broken pkg-config files
Janos Kovacs [Tue, 4 Dec 2012 02:11:12 +0000 (04:11 +0200)]
common, core: fixing broken pkg-config files

11 years agodocumentation: fix broken docdir
Janos Kovacs [Tue, 4 Dec 2012 00:31:03 +0000 (02:31 +0200)]
documentation: fix broken docdir

11 years agobuild-sys: added build rule to forcibly regenerate all linker scripts.
Krisztian Litkey [Mon, 3 Dec 2012 09:02:26 +0000 (11:02 +0200)]
build-sys: added build rule to forcibly regenerate all linker scripts.

This rule really tries to generate _all_ linkers scripts regardless of
what is enabled/disabled.

11 years agobreedline: added licensing information.
Krisztian Litkey [Mon, 3 Dec 2012 08:08:07 +0000 (10:08 +0200)]
breedline: added licensing information.

11 years agomainloop-tests: fix in running qt tests with GLIB_ENABLED
Amarnath Valluri [Fri, 30 Nov 2012 14:06:56 +0000 (16:06 +0200)]
mainloop-tests: fix in running qt tests with GLIB_ENABLED

Qt default uses glib mainloop, so we cannot use same glib as subloop.

11 years agomainloop-test: fix build for disabled qt support, don't install helper lib.
Krisztian Litkey [Fri, 30 Nov 2012 11:05:09 +0000 (13:05 +0200)]
mainloop-test: fix build for disabled qt support, don't install helper lib.

11 years agomainloop-test: pedantic stylistic changes.
Krisztian Litkey [Fri, 30 Nov 2012 11:33:21 +0000 (13:33 +0200)]
mainloop-test: pedantic stylistic changes.

11 years agobuild-sys: AC_PROG_CXX cannot be used conditionally.
Krisztian Litkey [Fri, 30 Nov 2012 10:58:34 +0000 (12:58 +0200)]
build-sys: AC_PROG_CXX cannot be used conditionally.

11 years agobuild-sys: ubuntu deep linking fix for resolver parser-test.
Amarnath Valluri [Fri, 30 Nov 2012 09:11:37 +0000 (11:11 +0200)]
build-sys: ubuntu deep linking fix for resolver parser-test.

11 years agobuild-sys: lua pkg-config naming fix for Ubuntu.
Amarnath Valluri [Fri, 30 Nov 2012 09:10:34 +0000 (11:10 +0200)]
build-sys: lua pkg-config naming fix for Ubuntu.

11 years agocommon/qt-glue: initial Qt mainloop integration.
Amarnath Valluri [Wed, 28 Nov 2012 21:47:30 +0000 (23:47 +0200)]
common/qt-glue: initial Qt mainloop integration.

11 years agobreedline: silence ignored write retval warnings.
Krisztian Litkey [Fri, 30 Nov 2012 08:24:59 +0000 (10:24 +0200)]
breedline: silence ignored write retval warnings.

11 years agobuild-sys: try harder not to brake parallel builds with a bit of gnu-makeism.
Krisztian Litkey [Fri, 30 Nov 2012 09:47:21 +0000 (11:47 +0200)]
build-sys: try harder not to brake parallel builds with a bit of gnu-makeism.

11 years agobuild-sys: fix parallel build problems for murphy-resolver.
Krisztian Litkey [Fri, 30 Nov 2012 09:31:35 +0000 (11:31 +0200)]
build-sys: fix parallel build problems for murphy-resolver.

11 years agobuild-sys: fix parallel build problems for murphy-resource.
Krisztian Litkey [Thu, 29 Nov 2012 16:05:20 +0000 (18:05 +0200)]
build-sys: fix parallel build problems for murphy-resource.

11 years agobuild-sys: fix parallel build problems for murphy DB.
Krisztian Litkey [Thu, 29 Nov 2012 16:02:08 +0000 (18:02 +0200)]
build-sys: fix parallel build problems for murphy DB.

11 years agolua-decision: get rid of uninitialized usage warning.
Krisztian Litkey [Thu, 29 Nov 2012 12:43:44 +0000 (14:43 +0200)]
lua-decision: get rid of uninitialized usage warning.

11 years agolua-decision: get rid of uninitialized usage warning.
Krisztian Litkey [Thu, 29 Nov 2012 12:43:29 +0000 (14:43 +0200)]
lua-decision: get rid of uninitialized usage warning.

11 years agolua-decision: add insert, replace, update and delete mthods to table object
Janos Kovacs [Wed, 28 Nov 2012 20:04:53 +0000 (22:04 +0200)]
lua-decision: add insert, replace, update and delete mthods to table object

11 years agomurphy-db: fix update for index columns
Janos Kovacs [Wed, 28 Nov 2012 20:00:13 +0000 (22:00 +0200)]
murphy-db: fix update for index columns

11 years agolua-utils: fix method registration for objects
Janos Kovacs [Tue, 27 Nov 2012 20:00:33 +0000 (22:00 +0200)]
lua-utils: fix method registration for objects

11 years agomurphy-db: fix floating read/write in column.c
Janos Kovacs [Tue, 27 Nov 2012 12:22:39 +0000 (14:22 +0200)]
murphy-db: fix floating read/write in column.c

11 years agoMerge branch 'master' of github.com:otcshare/policy-internal
Krisztian Litkey [Thu, 29 Nov 2012 12:16:31 +0000 (14:16 +0200)]
Merge branch 'master' of github.com:otcshare/policy-internal

11 years agoresource-backend: don't crash when acquring a non-complete resource set.
Ismo Puustinen [Thu, 29 Nov 2012 08:58:27 +0000 (10:58 +0200)]
resource-backend: don't crash when acquring a non-complete resource set.

11 years agoresource-dbus: work around a crash in resource-backend library.
Ismo Puustinen [Thu, 29 Nov 2012 08:51:04 +0000 (10:51 +0200)]
resource-dbus: work around a crash in resource-backend library.

Make sure resource-dbus plugin calls the resource-backend library
funcions in the order the library is expecting. This works around a
crash in case the requested zone name is not set in the configuration.

11 years agomainloop-test: get rid of unused function warning.
Krisztian Litkey [Thu, 29 Nov 2012 08:00:26 +0000 (10:00 +0200)]
mainloop-test: get rid of unused function warning.

11 years agoplugin-test: no need for murphy-db.
Krisztian Litkey [Thu, 29 Nov 2012 07:59:59 +0000 (09:59 +0200)]
plugin-test: no need for murphy-db.

11 years agobuild: only compile breedline-glib if glib support is enabled.
Ismo Puustinen [Wed, 28 Nov 2012 07:18:24 +0000 (09:18 +0200)]
build: only compile breedline-glib if glib support is enabled.

11 years agobuild: fixed a typo.
Ismo Puustinen [Wed, 28 Nov 2012 07:12:16 +0000 (09:12 +0200)]
build: fixed a typo.

11 years agomainloop-test: omit glib pump if we have a glib superloop.
Krisztian Litkey [Tue, 27 Nov 2012 17:45:15 +0000 (19:45 +0200)]
mainloop-test: omit glib pump if we have a glib superloop.

Don't try to run with glib set up as both our super- and subloops.
It makes no sense and it only ends up in glib's event dispatcher
being called recursively (superloop dispatching us, we dispatching
the subloop which happens to be also our superloop) and aborting
on an assert.

This whole single combined mainloop-test mess should be cleaned up.

11 years agobreedline: added forgotten breedline-{murphy,glib}test.c.
Krisztian Litkey [Tue, 27 Nov 2012 13:53:14 +0000 (15:53 +0200)]
breedline: added forgotten breedline-{murphy,glib}test.c.

11 years agoconsole-client: fix to compile with older gcc.
Krisztian Litkey [Tue, 27 Nov 2012 13:51:27 +0000 (15:51 +0200)]
console-client: fix to compile with older gcc.

11 years agobuild-sys: export also symbols from lua bindings in core.
Krisztian Litkey [Tue, 27 Nov 2012 13:43:42 +0000 (15:43 +0200)]
build-sys: export also symbols from lua bindings in core.

11 years agobuild-sys: warn and emit empty debug tables if no ctags is found.
Krisztian Litkey [Tue, 27 Nov 2012 13:29:55 +0000 (15:29 +0200)]
build-sys: warn and emit empty debug tables if no ctags is found.

11 years agobuild-sys: added missing libraries to daemon linking.
Krisztian Litkey [Tue, 27 Nov 2012 13:27:37 +0000 (15:27 +0200)]
build-sys: added missing libraries to daemon linking.

11 years agoplugin-console: fix to compile with older gcc.
Krisztian Litkey [Tue, 27 Nov 2012 13:24:44 +0000 (15:24 +0200)]
plugin-console: fix to compile with older gcc.

11 years agobuild-sys: bail out if we need to regenerate a linker script but have no ctags.
Krisztian Litkey [Tue, 27 Nov 2012 13:08:20 +0000 (15:08 +0200)]
build-sys: bail out if we need to regenerate a linker script but have no ctags.

11 years agocommon: get rid of uninitialized variable warnings.
Krisztian Litkey [Tue, 27 Nov 2012 12:55:26 +0000 (14:55 +0200)]
common: get rid of uninitialized variable warnings.

11 years agobreedline: avoid strdup as a struct member name.
Krisztian Litkey [Tue, 27 Nov 2012 07:54:45 +0000 (09:54 +0200)]
breedline: avoid strdup as a struct member name.

When compiling with sufficient optimization knobs, gcc/glibc turns
strdup into a macro, breaking all references to similarly named
struct and union members.

11 years agoresource-dbus: link against libmurphy-dbus.
Krisztian Litkey [Tue, 27 Nov 2012 07:35:18 +0000 (09:35 +0200)]
resource-dbus: link against libmurphy-dbus.

11 years agocore: added missing libraries for linking decision-test.
Krisztian Litkey [Tue, 27 Nov 2012 07:33:32 +0000 (09:33 +0200)]
core: added missing libraries for linking decision-test.

11 years agodomain-control: fix to compile with older gcc.
Krisztian Litkey [Tue, 27 Nov 2012 07:26:04 +0000 (09:26 +0200)]
domain-control: fix to compile with older gcc.

11 years agodomain-control: use breedline for test client prompt handling.
Krisztian Litkey [Mon, 26 Nov 2012 15:58:26 +0000 (17:58 +0200)]
domain-control: use breedline for test client prompt handling.

11 years agomurphy-console: use breedline for prompt handling.
Krisztian Litkey [Mon, 26 Nov 2012 15:43:55 +0000 (17:43 +0200)]
murphy-console: use breedline for prompt handling.

11 years agobreedline: added breedline, a BSD-licensed simplistic alternative to readline.
Krisztian Litkey [Sun, 25 Nov 2012 19:49:31 +0000 (21:49 +0200)]
breedline: added breedline, a BSD-licensed simplistic alternative to readline.

11 years agocommon: fix realloc[z] wrapper for size=0.
Krisztian Litkey [Sun, 25 Nov 2012 19:48:38 +0000 (21:48 +0200)]
common: fix realloc[z] wrapper for size=0.