Commit Graph

160 Commits

Author SHA1 Message Date
Niels Grewe
a1e198bd70 Remove redundant fixup for atomic operations linkage errors on 32bit intel platforms.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32546 72102866-910b-0410-8b05-ffd578937521
2011-03-13 12:56:19 +00:00
Niels Grewe
49f9cf02e9 Fixes to link libgcc for atomic operations when needed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32414 72102866-910b-0410-8b05-ffd578937521
2011-02-28 16:04:54 +00:00
Niels Grewe
7d3ca59a1c Attempt to fix linkage errors for 32bit intel platforms.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32411 72102866-910b-0410-8b05-ffd578937521
2011-02-28 14:27:39 +00:00
Richard Frith-MacDonald
d9585b46d0 remove unused check
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32408 72102866-910b-0410-8b05-ffd578937521
2011-02-28 12:49:14 +00:00
Richard Frith-MacDonald
692689ec0d Some fixups for varying compilers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32407 72102866-910b-0410-8b05-ffd578937521
2011-02-28 12:42:54 +00:00
Niels Grewe
5e7f448c7b Documentation improvements. Avoid starting the worker thread before we
really need it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32394 72102866-910b-0410-8b05-ffd578937521
2011-02-27 22:52:24 +00:00
Niels Grewe
4917bb947a Add draft release announcement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32306 72102866-910b-0410-8b05-ffd578937521
2011-02-22 21:17:37 +00:00
Niels Grewe
c566432b75 Fixed bug with method cache generation in the single-threaded case.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32288 72102866-910b-0410-8b05-ffd578937521
2011-02-22 11:24:08 +00:00
Niels Grewe
74bd4d9c3b Add packaging metadata.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32286 72102866-910b-0410-8b05-ffd578937521
2011-02-22 10:40:57 +00:00
Niels Grewe
6d94ad960b Document failure recovery procedures.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32283 72102866-910b-0410-8b05-ffd578937521
2011-02-22 09:38:57 +00:00
Niels Grewe
6cc8f6c069 Finish implementing reconnection logic for bus objects and notification centers.
This works flawlessly for the system bus (jolly good!).
Note: Don't assume it will work for the session bus, because that's just not
possible. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32282 72102866-910b-0410-8b05-ffd578937521
2011-02-22 09:19:27 +00:00
Niels Grewe
a4c6c826a1 Bugfixes to get connection recovery to work. Recovery will now work exactly once
because the notification center does not yet update the new D-Bus connection to
match its local state (hence we miss any subsequent disconnection signals).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32269 72102866-910b-0410-8b05-ffd578937521
2011-02-21 21:47:12 +00:00
Niels Grewe
ab2546c5b4 Implement recovery of D-Bus connections for the bus objects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32237 72102866-910b-0410-8b05-ffd578937521
2011-02-19 21:44:56 +00:00
Niels Grewe
9039c429a8 Fix a bug where the field index for a structure was not properly incremented
when deserialising a D-Bus message.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32233 72102866-910b-0410-8b05-ffd578937521
2011-02-19 19:40:48 +00:00
Niels Grewe
d9f58ad17d Fix a bug where deserializing an empty array would erroneously trigger an
assertion failure.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32232 72102866-910b-0410-8b05-ffd578937521
2011-02-19 18:53:03 +00:00
Niels Grewe
88cc5afc55 Be more verbose when failing assertions from type mismatches
between introspection data and what we actually receive from the bus.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32227 72102866-910b-0410-8b05-ffd578937521
2011-02-19 17:32:13 +00:00
Niels Grewe
27e02097dd Start working on recovery of the bus objects after disconnection from the bus.
Also sanitize the dependencies of DKNotificationCenter and DKDBus (previously,
certain conditions could trigger them to go into an infinite loop calling each
other).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32210 72102866-910b-0410-8b05-ffd578937521
2011-02-18 21:20:19 +00:00
Niels Grewe
1583593054 Actually create the name tables in DKPortNameServer, add missing -dealloc
method to DKEndpointManager (although it will never be called because the
manager is a singleton).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32195 72102866-910b-0410-8b05-ffd578937521
2011-02-16 12:55:09 +00:00
Niels Grewe
a338decf45 Fix sel_getType_np configure check.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32194 72102866-910b-0410-8b05-ffd578937521
2011-02-16 11:54:11 +00:00
Niels Grewe
0581388c0e Add stub implementation of a port name server.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32190 72102866-910b-0410-8b05-ffd578937521
2011-02-16 08:41:24 +00:00
Niels Grewe
e3386ee18d Add missing files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32183 72102866-910b-0410-8b05-ffd578937521
2011-02-16 06:19:29 +00:00
Niels Grewe
383d61bf75 Merge DBusKit-ThreadRewrite branch. DBusKit now offloads all interactions with
libdbus to a separate thread and uses DKEndpointManager as a gateway to do so.
The new behaviour is disabled by default and can be enabled by calling [DKPort
enableWorkerThread].
This also contains various smaller improvements and fixes bugs that were exposed
when stuff was taking place asynchronously.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@32178 72102866-910b-0410-8b05-ffd578937521
2011-02-15 22:05:24 +00:00
Niels Grewe
b9a9de726a Use correct buffer type when generating standins.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31874 72102866-910b-0410-8b05-ffd578937521
2011-01-10 21:15:29 +00:00
Niels Grewe
f0a2fc2bfd Attempt to fix a reentrancy problem in DKNotificationCenter.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31873 72102866-910b-0410-8b05-ffd578937521
2011-01-10 19:15:20 +00:00
Niels Grewe
60de2e7271 Tweak for compatibility with different XML parser versions in gnustep-base.
Fix typo in README.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31824 72102866-910b-0410-8b05-ffd578937521
2011-01-03 08:05:54 +00:00
Niels Grewe
0914e44a52 Fix crash in -[DKPort isEqual:] when the receiver is being compared with a
NSPort subclass other than DKPort (reported by Philippe Roussel).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31723 72102866-910b-0410-8b05-ffd578937521
2010-12-10 12:48:01 +00:00
Niels Grewe
152f17447f Fix memory leaks in the test suite.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31563 72102866-910b-0410-8b05-ffd578937521
2010-10-26 08:25:59 +00:00
Niels Grewe
130a035758 Implement automatic invalidation of ports when their remote disappears from
D-Bus.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31533 72102866-910b-0410-8b05-ffd578937521
2010-10-19 13:01:23 +00:00
Niels Grewe
2a84ad20c8 Follow-up changes for DKProxy API change, based on suggestions by Fred Kiefer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31397 72102866-910b-0410-8b05-ffd578937521
2010-09-22 19:22:49 +00:00
Niels Grewe
45facafd9e Minor tweak.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31377 72102866-910b-0410-8b05-ffd578937521
2010-09-19 11:42:39 +00:00
Niels Grewe
cd0f6cb33e Make DKProxy use a DKPort instead of a DKEndpoint/service name-pair. This is the
level of abstraction that will be used by DKPortNameServer to handle connection
invalidation etc.
Note: This breaks binary compatibility for DKPort subclasses when using the
fragile ABI.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31376 72102866-910b-0410-8b05-ffd578937521
2010-09-19 11:23:50 +00:00
Niels Grewe
d4c8db1da4 Documentation fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31335 72102866-910b-0410-8b05-ffd578937521
2010-09-12 13:22:56 +00:00
Niels Grewe
658c08dac0 Generate declarations for properties and add some documentation since property
support semes to be working now.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31334 72102866-910b-0410-8b05-ffd578937521
2010-09-12 10:30:30 +00:00
Niels Grewe
29f75f3cc1 Bugfix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31333 72102866-910b-0410-8b05-ffd578937521
2010-09-12 09:55:53 +00:00
Niels Grewe
58120862d1 Include string.h where necessary (patch by Phillipe Roussel)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31332 72102866-910b-0410-8b05-ffd578937521
2010-09-12 09:16:28 +00:00
Niels Grewe
41b9d0bc3a Enabled property support. Getters are already working, setters not so much.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31331 72102866-910b-0410-8b05-ffd578937521
2010-09-12 09:09:13 +00:00
Niels Grewe
5203580ec2 Fix bugs found by the clang static analyzer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31330 72102866-910b-0410-8b05-ffd578937521
2010-09-12 07:11:10 +00:00
Niels Grewe
87e2e53689 Further work on property support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31329 72102866-910b-0410-8b05-ffd578937521
2010-09-11 21:26:12 +00:00
Niels Grewe
24c6338b5a Further work on properties. (Not yet connected to the build)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31328 72102866-910b-0410-8b05-ffd578937521
2010-09-11 16:50:27 +00:00
Niels Grewe
150f789354 Fix copy and paste error.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31327 72102866-910b-0410-8b05-ffd578937521
2010-09-11 14:09:24 +00:00
Niels Grewe
03bcf231fb Begin conceptualizing property support. Add ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31325 72102866-910b-0410-8b05-ffd578937521
2010-09-11 13:59:37 +00:00
Richard Frith-MacDonald
475c00aa6f warn if gnustep-make not found
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31298 72102866-910b-0410-8b05-ffd578937521
2010-09-10 13:56:59 +00:00
Niels Grewe
d234607bd1 * Source/DKProxy.m: Fix bug reported by Philippe Roussel. (Note to self: Unit
tests are only useful if you actually run them…)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31274 72102866-910b-0410-8b05-ffd578937521
2010-09-09 20:02:35 +00:00
Niels Grewe
3f9f2466bf * Tests/GNUmakefile
Tests/GNUmakefile.postamble
  Tests/TestDKArgument.m
  Tests/TestDKMethodCall.m
  Tests/TestDKPort.m
  Tests/TestDKProxy.m:
  Fix compilation of testcases if DBusKit is not yet installed.

 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31237 72102866-910b-0410-8b05-ffd578937521
2010-09-05 19:09:05 +00:00
Niels Grewe
71b9ccbb30 * Tools/GNUmakefile.postamble: Fix build by creating link to the header dir.
(reported by Philippe Roussel).
* Documentation/GNUmakefile.postamble: Fix removal of documentation on
  `make uninstall'.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31193 72102866-910b-0410-8b05-ffd578937521
2010-08-23 20:59:25 +00:00
Niels Grewe
c3f8992cab * GNUmakefile: Only build documentation if makeinfo and texi2pdf are available.
* Source/DKNotificationCenter.m: Fix bug that caused a sanity check to be
  skipped.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31189 72102866-910b-0410-8b05-ffd578937521
2010-08-20 12:05:02 +00:00
Niels Grewe
b0f4427c15 * Documentation/install.texi: Mention the nonstrict flag.
* INSTALL: Regenerate.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31181 72102866-910b-0410-8b05-ffd578937521
2010-08-18 07:00:06 +00:00
Niels Grewe
44de5edca1 Fix cast
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31180 72102866-910b-0410-8b05-ffd578937521
2010-08-18 06:52:51 +00:00
Niels Grewe
08f7a3918f Improve documentation for -[DKObservable matchesUserInfo:], simplified
generation of observables by the notification center.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31174 72102866-910b-0410-8b05-ffd578937521
2010-08-17 08:27:27 +00:00
Niels Grewe
3b177d7c9c * COPYING: Add LGPL.
* GNUmakefile: Add documentation to the build.
* GNUmakefile.preamble: Add version variable.
* Documentation/GNUmakefile
  Documentation/GNUmakefile.postamble
  Documentation/readme.texi
  Documentation/install.texi
  Documentation/DBusKit.gsdoc:
  Build README and INSTALL as well as reference documentation.
* Headers/DKProxy.h
  Headers/DKPort.h
  Headers/DNotificationCenter.h:
  Mark ivars as private. Minor documentation improvements.
* README
  INSTALL:
  Regenerate.

Improvements to the documentation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@31169 72102866-910b-0410-8b05-ffd578937521
2010-08-16 13:47:57 +00:00