Michael Bauer [Fri, 4 Apr 2014 10:44:09 +0000 (12:44 +0200)]
making Unittests.vcxproj compile and adapting README to tell developer how he is able to run UnitTests.exe
Michael Bauer [Fri, 4 Apr 2014 10:23:45 +0000 (12:23 +0200)]
modified vcxproj file of UnitTests to now use environment variables and relative paths, adapted build execution order in .sln
Michael Bauer [Fri, 4 Apr 2014 09:47:47 +0000 (11:47 +0200)]
modified vcxproj file of CommonAPI-DBus to now use environment variables and relative paths, adapted README accordingly
Stefan Laner [Fri, 28 Mar 2014 09:30:31 +0000 (10:30 +0100)]
added unit tests for broadcast subscriptions. renamed unit test
DBusSelectiveBroadcastTest to DBusBroadcastTest
Stefan Laner [Thu, 13 Mar 2014 13:15:28 +0000 (14:15 +0100)]
Implemented stub support for org.freedesktop.DBus.Properties
Change-Id: I75abc2e75643ff8da51795787970d55cf4e470c2
Juergen Gehring [Mon, 10 Mar 2014 11:58:57 +0000 (12:58 +0100)]
Better CMake support in pc file for examples, adapted git config files for windows files
Patrick Sattler [Tue, 11 Mar 2014 13:15:20 +0000 (14:15 +0100)]
Some minor changes in the configure script
- added the option --with-loose-version-check to the configure script
(GLIPCI-216)
- more informative warning in configure.ac for missing glib
Change-Id: I6bcd845616b136b7e748875e5a46c7bfada3d858
Stefan Laner [Wed, 19 Mar 2014 15:12:34 +0000 (16:12 +0100)]
increased library interface revision number
Patrick Sattler [Mon, 10 Mar 2014 16:39:29 +0000 (17:39 +0100)]
Added a test to control if it isnt possible to access the Stubadapter
-added also the generated files from the updated generator
Change-Id: I0cb0a025167d5945dec6c6ecb7d814cf6c5982c1
Patrick Sattler [Mon, 10 Mar 2014 12:38:10 +0000 (13:38 +0100)]
Fixed a compile warning
Philip Rauwolf [Fri, 29 Nov 2013 16:26:38 +0000 (17:26 +0100)]
Removed fulfilling of purely internal promises in ServiceRegistry.
Relevant code parts in DBusServiceRegistry.cpp were tagged with "fulfill
all open promises on object path resolution". Removed as it seemed to be
unnecessary and required error handling to be enabled, which may well
not be the case in context of the HMI.
Change-Id: Icddad61f50cbd8fccaeab0c6782b4966bd7b2505
Stefan Laner [Fri, 7 Mar 2014 18:41:32 +0000 (19:41 +0100)]
fix for GENIVI bug 164 "Interface names starting with org.freedesktop.*
are ignored"
Stefan Laner [Mon, 3 Mar 2014 11:01:58 +0000 (12:01 +0100)]
All public inline functions arn't anymore inline
- methods with templates excluded
Stefan Laner [Fri, 28 Feb 2014 17:25:03 +0000 (18:25 +0100)]
Timeout for introspection call in DBusServiceRegistry set to default
value
Patrick Sattler [Tue, 18 Feb 2014 13:51:07 +0000 (14:51 +0100)]
Fixed some compile warnings
Change-Id: I2a35fc2adc0c3e2484a1be260da20d0a4ab92ed6
Stefan Laner [Mon, 24 Feb 2014 08:57:40 +0000 (09:57 +0100)]
Windows support, fixed attribute handling with inherited interfaces
Change-Id: I8c0248d25f267333878166dbab790e4ffa353e54
Patrick Sattler [Mon, 17 Feb 2014 11:15:29 +0000 (12:15 +0100)]
Changed doxygen title to GENIVI IPC Common API DBus C++ and increased
required CommonAPI version to 2.1.6
Change-Id: Ib0671cf3bff7913c5f8516cf759065534d7dbcfd
Stefan Laner [Fri, 31 Jan 2014 13:23:23 +0000 (14:23 +0100)]
increased version number to 2.1.5 and regenerated code for test fidl
files with 2.1.5 code generators
Arnaud Fietzke [Mon, 11 Nov 2013 13:22:29 +0000 (14:22 +0100)]
LoadTest using async calls
Change-Id: Ib58ab810586bd13261da4cea2d30461f34bdf667
Stefan Laner [Mon, 9 Dec 2013 18:21:37 +0000 (19:21 +0100)]
Extended DBusManagedTest
Change-Id: I62457137eff21850744ed22058e119a4a850160e
Stefan Laner [Wed, 4 Dec 2013 18:57:20 +0000 (19:57 +0100)]
Broke shared_ptr cycle between generated stub, DBusStubAdapter and
DBusStubAdapterHelper by using a weak_ptr. Also removed some cout calls
in tests and updated generated code for tests.
Change-Id: I54399dabeedb2960b91df36772d64d1efc6030d6
Stefan Laner [Thu, 28 Nov 2013 17:41:45 +0000 (18:41 +0100)]
Fixed bug that prevents proxy connections from being destroyed because
of a circular dependency between DBusConnection and DBusServiceRegistry.
Also removed bug that prevented ServiceRegistry-callbacks from being
deregistered correctly. Extended tests, some formatting issues, fixed
one spelling error.
Change-Id: I6cf2148375f4c086e60f0ad642415056bd808759
Stefan Laner [Wed, 27 Nov 2013 10:01:23 +0000 (11:01 +0100)]
Merged fix for inherited interfaces and version attribute. Regenerated
code.
Change-Id: I555557d42f1849d6ac517b24b88c974f3d1536ae
Stefan Laner [Sat, 23 Nov 2013 00:14:27 +0000 (01:14 +0100)]
Fix for inherited interfaces and tests for that including generated code
Arnaud Fietzke [Thu, 21 Nov 2013 09:16:41 +0000 (10:16 +0100)]
Fix for GLIPCI-165.
Once resumeDispatching() is called,
readWriteDispatch() may dispatch the
reply, causing replyAsyncHandler to
be deleted.
Also added a test to check whether
sync and async calls may be mixed.
Change-Id: I15954e1e1190cbdea01aef871dac763cc06479ef
Stefan Laner [Thu, 14 Nov 2013 01:09:54 +0000 (02:09 +0100)]
Fixed interfaceVersion attribute and added test for that
Stefan Laner [Mon, 11 Nov 2013 18:55:26 +0000 (19:55 +0100)]
removed test which does not compile because code generator does not
allow to define that anymore.
Stefan Laner [Mon, 11 Nov 2013 18:53:51 +0000 (19:53 +0100)]
Revert "added missing type / method in fidl-files for tests updated generated code"
This reverts commit
aacc7b4ffd70271c534156b1a063bd2b883410c9.
Stefan Laner [Mon, 11 Nov 2013 17:59:37 +0000 (18:59 +0100)]
added missing type / method in fidl-files for tests
updated generated code
Stefan Laner [Mon, 11 Nov 2013 14:54:39 +0000 (15:54 +0100)]
added test for two managers for the same interface
extended test for sending structs that have a map with enum key as
member
Change-Id: Ib245bf1a9132c1494513d4e8eee512a2eca68449
Johannes Schanda [Mon, 11 Nov 2013 12:22:01 +0000 (13:22 +0100)]
Update version to 2.1.4
Juergen Gehring [Tue, 5 Nov 2013 16:44:53 +0000 (17:44 +0100)]
Add missing return statement
Philip Rauwolf [Wed, 30 Oct 2013 09:19:46 +0000 (10:19 +0100)]
Removed merging relics
Stefan Laner [Thu, 24 Oct 2013 17:57:58 +0000 (19:57 +0200)]
Fixed (de-)serialization of polymorphic structs.
Added unit test for polymorphic structs.
Change-Id: I577a94e3d14ff13a6a3ef56802cbf78c4f26b52c
Philip Rauwolf [Tue, 29 Oct 2013 15:39:46 +0000 (16:39 +0100)]
Re-generated code
Stefan Laner [Tue, 29 Oct 2013 09:21:54 +0000 (10:21 +0100)]
added struct containing a map with enum key to
DerivedTypeCollection.fidl and regenerated code for tests
Philip Rauwolf [Wed, 2 Oct 2013 16:54:41 +0000 (18:54 +0200)]
Removed limitation on Managed Services
It now is possible to register more than one manager interface for a
given D-Bus object path. Also did some random fixes and improvements
wherever I saw them.
Change-Id: I6616ef0bf9e46de99e1fb326f9038545af8af324
Johannes Schanda [Wed, 23 Oct 2013 15:53:56 +0000 (17:53 +0200)]
Fix include dir to be only major.minor version
Stefan Laner [Wed, 23 Oct 2013 11:38:16 +0000 (13:38 +0200)]
Fixed issue in (de-)serialization of arrays of maps.
Added convenience method to DBusTestUtils for printing a DBusMessage.
Philip Rauwolf [Wed, 16 Oct 2013 09:00:07 +0000 (11:00 +0200)]
Added micro version and check on it
Johannes Schanda [Wed, 9 Oct 2013 09:57:11 +0000 (11:57 +0200)]
Deprecated facotry-based registration for stubs fixed
Stefan Laner [Wed, 2 Oct 2013 16:14:33 +0000 (18:14 +0200)]
Fixed Bug in DemoMainLoop implementation and a corresponding test.
Poll on wakeFd now really blocks if wakeup was not called yet.
Johannes Schanda [Tue, 1 Oct 2013 12:40:59 +0000 (14:40 +0200)]
Correct packaging issues
Philip Rauwolf [Mon, 30 Sep 2013 13:44:33 +0000 (15:44 +0200)]
Marked commented test as DISABLED so that it is not forgotten entirely.
Philip Rauwolf [Thu, 26 Sep 2013 09:22:02 +0000 (11:22 +0200)]
Prevented crash on unanticipated name changes
DBusServiceRegistry now can cope with reversed order of NameOwnerChanged
signals. Also, as a side effect, now it copes well with name transfers.
Tests for both were added, though the test for the first issue requires
one private member of the ServiceRegistry to be public and therefore is
commented.
On the road one small performance improvement and some formatting issues
were tackled.
Johannes Schanda [Tue, 17 Sep 2013 11:58:27 +0000 (13:58 +0200)]
Add managed services
- Add proxy manager for controling client side of managed proxies
- Add object manager for controling managed stubs
- rework service registry and serviec publishing to use same code paths
as managed objects
- Unmanaged objects are now managed by the "/" object manager
- Connection names are now only claimed after all object are activated
- isAvailableBlocking public api on proxies
- Proxies now require init to be called to allow for immediate callbacks
on availability form the registry
- Changed default commonp address transformation to use object path as
base of instance
- Fix issues with selective
- Add pugixml for xml parsing to properly understand introspection
ressponses
- adds creating factory to objects held by proxy and stub adapter so
that childeren can be safely constructed
Change-Id: I8f2e660043d5e0348933513d39f332b7032288b1
Philip Rauwolf [Fri, 13 Sep 2013 16:51:47 +0000 (18:51 +0200)]
Added version information to MiddlewareInfo.
The version information used for compilation is taken from the version
given in the Makefile.am.
Philip Rauwolf [Mon, 16 Sep 2013 15:36:44 +0000 (17:36 +0200)]
Revert "Install pugixml header where needed"
This reverts commit
167eb533d7ed8af7b977f8e26508cb233fdb76a9.
Johannes Schanda [Fri, 13 Sep 2013 16:12:44 +0000 (18:12 +0200)]
Fix incorrect transmission of selective signals
Johannes Schanda [Fri, 13 Sep 2013 15:05:34 +0000 (17:05 +0200)]
Install pugixml header where needed
Johannes Schanda [Fri, 13 Sep 2013 13:29:30 +0000 (15:29 +0200)]
Makefile rule doc for all documentation
Johannes Schanda [Fri, 6 Sep 2013 14:11:42 +0000 (16:11 +0200)]
Corrected bug in ObservableReadony attributes
- Observable attribute must always pass through the out signature, so
add to readony attribute
Philip Rauwolf [Tue, 10 Sep 2013 13:33:03 +0000 (15:33 +0200)]
Fixed some subtle bugs.
Two pointers to temporaries, one testcase, plus the possibility to
destruct the Connection from within the handling of timed out calls.
Johannes Schanda [Thu, 5 Sep 2013 15:07:10 +0000 (17:07 +0200)]
Update library api version number for 2.1
Johannes Schanda [Thu, 5 Sep 2013 12:52:41 +0000 (14:52 +0200)]
Doxygen main page description
Stefan Laner [Fri, 9 Aug 2013 09:12:07 +0000 (11:12 +0200)]
Added support for selective broadcasts
-Add subclass for event to support additional API for selective
-StubAdapter handles all management, only callbacks exposed
Change-Id: I2af3c6bcc8b6d0cfd7362eeed7d518a57cf804c6
Johannes Schanda [Tue, 27 Aug 2013 16:03:33 +0000 (18:03 +0200)]
Merge "Fixed logic error in tests on dynamic loading"
Philip Rauwolf [Fri, 23 Aug 2013 14:03:33 +0000 (16:03 +0200)]
Fixed logic error in tests on dynamic loading
Result of this fix was the fix of the actual proceedings of the dynamic
loading mechanism in CommonAPI.
Johannes Schanda [Fri, 23 Aug 2013 13:36:18 +0000 (15:36 +0200)]
Works correctly on GCC 4.8
Johannes Schanda [Thu, 22 Aug 2013 14:08:54 +0000 (16:08 +0200)]
Linker flags in pkgconfig ensure all symbols
Change-Id: Idc938f91b1ad33fee21f3cfa03896990327be213
Johannes Schanda [Wed, 7 Aug 2013 14:36:26 +0000 (16:36 +0200)]
Corrected comments with regard to mainloop integration
Manfred Bathelt [Wed, 31 Jul 2013 15:03:57 +0000 (08:03 -0700)]
changed project version to 2.1
Aleksandar Kanchev [Wed, 31 Jul 2013 15:07:30 +0000 (17:07 +0200)]
Merge "doc: configured doxygen document generation"
Manfred Bathelt [Wed, 31 Jul 2013 14:43:35 +0000 (07:43 -0700)]
doc: configured doxygen document generation
added excludes for unit tests
excluded murmurhash
excluded namespace "std"
added UML diagrams
Stefan Laner [Wed, 24 Jul 2013 09:58:21 +0000 (11:58 +0200)]
Introduced DBusClientId to identify callers within stubs.
As a prerequisite for selective broadcasts one has to identify the
callers on stub side. The CommonAPI::ClientId is used for that. This
commit contains the dbus specific implementation for that concept.
Also introduced unit test for DBusClientId.
Change-Id: I886bc28d656dd715de1c199cc18246a1abc171ab
Aleksandar Kanchev [Wed, 24 Jul 2013 07:49:59 +0000 (09:49 +0200)]
Merge "Introduced dynamic loading and Configuration files for CommonAPI."
Johannes Schanda [Wed, 10 Jul 2013 08:31:03 +0000 (10:31 +0200)]
Check for illegal proxy builds in callbacks
Philip Rauwolf [Tue, 9 Jul 2013 12:24:50 +0000 (14:24 +0200)]
Introduced dynamic loading and Configuration files for CommonAPI.
Introduced possibility to dynamically load generated code for D-Bus at
runtime. Moved parsing of configuration out of AddressTranslator. Added
several unit tests to confirm correctness. Updated generated test files.
gitignore and README updated accordingly.
Change-Id: I44e8ccd904780cb7392fd5ddf82b070759647ad4
Johannes Schanda [Mon, 8 Jul 2013 14:54:02 +0000 (16:54 +0200)]
Fix build error in make check
Philip Rauwolf [Fri, 5 Jul 2013 15:18:35 +0000 (17:18 +0200)]
Improved DBusConnection lifetime and timeout handling for async calls.
Problem was that if some calls never returned, they indirectly kept
a shared_ptr to the Connection for the rest of the program lifetime. The
current workaround in DBusServiceRegistry handled the issue from
application perspective, but did not destroy the libdbus pending calls.
Change-Id: Iacabacec8367924bacf9698211e3f2b63c804dd5
Philip Rauwolf [Mon, 1 Jul 2013 09:35:54 +0000 (11:35 +0200)]
Fixed Demo Mainloop
Philip Rauwolf [Mon, 1 Jul 2013 09:34:16 +0000 (11:34 +0200)]
Re-generated test sources
Philip Rauwolf [Tue, 25 Jun 2013 08:32:06 +0000 (10:32 +0200)]
Removed unnecessary API
Philip Rauwolf [Mon, 24 Jun 2013 12:19:41 +0000 (14:19 +0200)]
Added runtime check that mainloop context is initialized
Stefan Laner [Mon, 17 Jun 2013 14:09:25 +0000 (16:09 +0200)]
Named factory creation
Extended factory creation to use the CommonAPI-D-Bus configuration file.
Change-Id: Iea1fa10df8ebfde88fd891540f60e1cffce58889
Johannes Schanda [Mon, 17 Jun 2013 13:54:39 +0000 (15:54 +0200)]
Clean up registered names on disconnect
Johannes Schanda [Mon, 17 Jun 2013 09:53:18 +0000 (11:53 +0200)]
Add compile guard macro
- Sets a macro preventing inclusion of internal files
- Adds makefile defenition to enable build
- Chnage tests to compile with macro compile guard
Johannes Schanda [Tue, 11 Jun 2013 15:34:44 +0000 (17:34 +0200)]
Multiple connection names from one factory
- Corrects the obsolete check for multiple connection name claims when
registering stubs
- Moves claimedNames set in to DBusConnection
- DBusConnection now handles whether or not it needs to claim or release
names, users can safely call the provided methods without external
checks
- when releasing the last stub using a particular connection name, the
name is released also
Philip Rauwolf [Mon, 10 Jun 2013 14:07:21 +0000 (16:07 +0200)]
Removed commented code
Johannes Schanda [Mon, 10 Jun 2013 13:01:58 +0000 (15:01 +0200)]
Remove internal files
Johannes Schanda [Mon, 10 Jun 2013 12:38:34 +0000 (14:38 +0200)]
Update unit tests
- removes obsolete benchmark tests
- removes known broken main loop test
Johannes Schanda [Mon, 10 Jun 2013 12:28:39 +0000 (14:28 +0200)]
Correct thread teardown failure
-Correct thread teardown failure on smart pointer destruction for
internal dispatch
- Correct incorrect service async functionality due to empty master
service list
Johannes Schanda [Fri, 7 Jun 2013 15:20:06 +0000 (17:20 +0200)]
Correct object path handling for nested trees
Philip Rauwolf [Fri, 7 Jun 2013 08:51:13 +0000 (10:51 +0200)]
Merge changes Ia821835a,I1a2f334b,I8912bdc8
* changes:
tests: refactor to support clang compiler
stream: fix assert logic for signature length
object manager: add explicit map instantiation
Johannes Schanda [Fri, 7 Jun 2013 08:28:28 +0000 (10:28 +0200)]
More build correction of self reference
Aleksandar Kanchev [Thu, 6 Jun 2013 09:55:21 +0000 (11:55 +0200)]
tests: refactor to support clang compiler
Aleksandar Kanchev [Thu, 6 Jun 2013 08:28:23 +0000 (10:28 +0200)]
stream: fix assert logic for signature length
signature length is uint8 so checking for length < 256
will always assert true. This also currects logic when
serializing std::string::length() might have different
size than uint8
Aleksandar Kanchev [Thu, 6 Jun 2013 08:38:17 +0000 (10:38 +0200)]
object manager: add explicit map instantiation
fix clang compiler error by explicitly calling the DBusDaemonProxy::PropertyDictStub()
constructor, while constructing the object path and interface names dictionary.
Philip Rauwolf [Thu, 6 Jun 2013 16:44:00 +0000 (18:44 +0200)]
Extended validation for CommonAPI Addresses
Change-Id: I11b234c167092484851f168c2d449ca2e3d1f0a3
Philip Rauwolf [Thu, 6 Jun 2013 15:21:55 +0000 (17:21 +0200)]
Extended documentation for gtest
Philip Rauwolf [Thu, 6 Jun 2013 15:06:05 +0000 (17:06 +0200)]
Added a basic check on validity of CommonAPI addresses for the
DBusAddressTranslator.
Philip Rauwolf [Thu, 6 Jun 2013 11:24:46 +0000 (13:24 +0200)]
Removed "old" inclusions, added inclusion of "CommonAPI.h" instead.
Philip Rauwolf [Thu, 6 Jun 2013 11:24:16 +0000 (13:24 +0200)]
Further fixing the dispatch-issue in DBusConnection
This time for newer compilers that are more strict at differentiating
references and copies when starting a thread
Johannes Schanda [Thu, 6 Jun 2013 09:26:02 +0000 (11:26 +0200)]
Working client side for legacy dbus attributes as fixed types and unions
in franca
Johannes Schanda [Thu, 6 Jun 2013 09:15:12 +0000 (11:15 +0200)]
Pass saftey pointer to dispatch thread as reference to prevent unwanted
copy in thread holder object
Philip Rauwolf [Tue, 4 Jun 2013 11:15:23 +0000 (13:15 +0200)]
Replaced calls to deprecated part of the Factory interface with the
corresponding newly introduced calls.
Aleksandar Kanchev [Tue, 28 May 2013 14:43:15 +0000 (16:43 +0200)]
add support for polymorphic structs
Implement the CommonAPI interface for SerializablePolymorphicStruct
Philip Rauwolf [Mon, 3 Jun 2013 13:00:11 +0000 (15:00 +0200)]
Integrated the DBusServicePublisher to manage services and added an
interface for asynchronous service discovery in the factory. Dedicated
unit tests for both are included. Additionally, some code cleanup was
done.
Change-Id: I0d3ce3a69832d0ce9525ecfd12008f4bdb0c0e85
Philip Rauwolf [Mon, 3 Jun 2013 11:04:56 +0000 (13:04 +0200)]
Some cleanup
Johannes Schanda [Fri, 17 May 2013 15:23:59 +0000 (17:23 +0200)]
Introspection handling for entire tree of superpaths of a registered object path