ChangeLog 457 KB
Newer Older
Thiago Macieira's avatar
Thiago Macieira committed
1 2 3 4
2006-06-12  Thiago Macieira <thiago.macieira@trolltech.com>

	* Released 0.62

5 6 7 8 9 10 11
2006-06-12  Thiago Macieira <thiago.macieira@trolltech.com>

	* dbus/dbus-arch-deps.h.in: Remove spurious semi-colons that
        break pedantic builds. Closes bug 6043 (patch approved by
        Havoc back in February).

2006-06-12  Thiago Macieira <thiago.macieira@trolltech.com>
12 13 14 15 16 17 18

	* qt/src/qdbusintegrator.cpp: Fix bug in parsing async methods
        that took a QDBusMessage parameter.
	* qt/src/qdbusbus.h: Add a default flag for RequestName.
	* qt/tools/dbus.cpp: Don't use automatic call because we might
        be calling an async method: request a reply.

19 20 21 22 23 24 25
2006-06-11  Thiago Macieira <thiago.macieira@trolltech.com>

	* test/qt/*: Update the testcases, including testing the new
        functionality of sending null QByteArray and QString over the
        bus. Add new headertest test and restore the old
        qdbusxmlparser test.

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
2006-06-11  Thiago Macieira <thiago.macieira@trolltech.com>

	* qt/tools/dbuscpp2xml.cpp: Compile on Windows.
	* qt/tools/dbusidl2cpp.cpp: Add missing newline.

	* qt/examples/Makefile.am:
	* qt/examples/chat.h: Use UI-generated files with the ui_*.h
	form.

	* qt/src/qdbusmarshall.cpp: Allow sending of QString() and
	QByteArray() (nulls) over the bus.
	* qt/src/qdbusabstractinterface.cpp: Use the correct variable,
	the one that has the signature suffix stripped.
	* qt/src/qdbusreply.h: Make some methods const.

41 42 43 44 45 46 47 48 49 50 51
2006-06-09  Thiago Macieira <thiago.macieira@trolltech.com>

	Patch from Timo Hoenig <thoenig@suse.de>.

	* qt/dbus/Makefile.am: New file.  Fix "make dist", add all headers
	required during build to EXTRA_DIST.
	* qt/src/Makefile.am: Fix "make dist", add 'qdbus.h' to EXTRA_DIST.
	* qt/Makefile.am: Fix "make dist", add 'dbus' to DIST_SUBDIRS.
	* configure.in: Fix "make dist", take care that the Makefile for
	qt/dbus is being generated.

52 53 54 55
2006-06-07  John (J5) Palmieri  <johnp@redhat.com>

	* bus/bus.c: Fix eavesdropping on method calls

John Palmieri's avatar
John Palmieri committed
56 57 58 59 60 61
2006-06-07  John (J5) Palmieri  <johnp@redhat.com>

	* configure.in:
	* dbus/dbus-userdb-util.c:
	Add Solaris console owner patch from Artem Kachitchkine

Thiago Macieira's avatar
Thiago Macieira committed
62 63 64 65 66 67 68
2006-06-07  Thiago Macieira <thiago.macieira@trolltech.com>

	* qt/Makfile.am:
	* qt/src/Makefile.am: Fix the EXTRA_DIST after the
	reorganisation. Thanks to Timo Hoenig for pointing this out.

2006-06-06  Robert McQueen  <robot101@debian.org>
69 70 71 72

	* glib/dbus-gtype-specialized.c: Fix obvious leak of GArray in every
	  call to dbus_g_type_get_struct.

Thiago Macieira's avatar
Thiago Macieira committed
73
2006-06-06  Robert McQueen  <robot101@debian.org>
74 75 76 77 78 79 80 81 82 83

	* glib/dbus-gvalue-utils.c: Fix the failing test where static string
	  pointers were put into a GPtrArray-based specialised collection, and
	  then freed along with the array. GValues which you add into
	  collections or maps which have the NOCOPY flag set are assumed to not
	  belong to the caller, so rather than the existing pointer-stealing
	  semantics, they are copied instead. Given that the main consumers of
	  this abstraction are the bindings themselves, I don't think this is
	  too bad, but others should watch their choice of take vs set_static.

Thiago Macieira's avatar
Thiago Macieira committed
84
2006-06-06  Robert McQueen  <robot101@debian.org>
85 86 87 88 89 90 91

	* glib/dbus-gvalue-utils.c: Spotted a warning about the return value
	  of g_slist_prepend not being used. Fixed copying of slist-based
	  specialised collections, then wrote a test case and found that it was
	  all broken. Went on to fix iterating and appending too. Good thing
	  nobody uses this code yet.

Thiago Macieira's avatar
Thiago Macieira committed
92
2006-06-06  Robert McQueen  <robot101@debian.org>
93 94 95 96 97 98 99 100 101

	* glib/dbus-gvalue-utils.c: Remove duplicated code by having all of
	  the iterators use gvalue_take_ptrarray_value (the GValues themselves
	  are discarded without unsetting, so it makes no difference whether
	  we take or set_static). Remove cases for G_TYPE_POINTER because
	  there really is nothing useful we can do with them in our
	  specialised types - we *need* boxed copy/free functions at the very
	  least.

102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
2006-06-05  Thiago Macieira <thiago.macieira@trolltech.com>

	* qt/dbus: Add directory. I had forgotten to add this
	yesterday after the move...

	* qt/examples/Makefile.am:
	* qt/examples/dbus.cpp: Moved to qt/tools/dbus.cpp.

	* qt/tools/Makefile.am:
	* qt/tools/dbus.cpp: Moved from qt/examples/dbus.cpp.
	Added feature to get and set properties.
	Added validation of service, object path and interface names.

	* qt/tools/dbusidl2cpp.cpp: Two new features:
	1) Allow specifying both the header and the source file names,
	by separating them with a colon.
	2) Don't write an interface output if the -p switch wasn't
	given, but the -a was.

	* qt/src/*: Fix usage of Iterators and ConstIterators.
	Fix shadowing of variables by other variables (-Wshadow).
	Fix keyword-cleanliness in headers.
	Fix ASCII-cast (QLatin1String, QLatin1Char).
	Fix validation of member names.
	Add extra checking of introspection data during XML parsing.
	Various bug fixes.

Thiago Macieira's avatar
Thiago Macieira committed
129 130 131 132 133 134
2006-06-04  Thiago Macieira <thiago.macieira@trolltech.com>

	* dbus/Makefile.am:
	* dbus/qdbus.h: Remove unnecessary file. This is mirrored into
        qt/dbus/qdbus.h now.

135 136 137 138 139
2006-06-04  Thiago Macieira <thiago.macieira@trolltech.com>

	* configure.in: Make --disable-qt actually do
          something. Patch inspired by Zack Rusin.

140 141 142 143 144 145
2006-06-04  Thiago Macieira <thiago.macieira@trolltech.com>

	* qt/: Update to Subversion r548032.
	This includes a big reorganisation of the files inside the
	subdir.

146 147 148 149 150 151 152 153 154 155
2006-05-30  Sjoerd Simons  <sjoerd@luon.net>

	* dbus/dbus-sysdeps.c: Make tcp socket connection error somewhat more
	clear:  
	"Failed to connect to socket <host>:<port> <error>" instead of
	"Failed to connect to socket <host>: <error>:<port>"

	* dbus/dbus-transport-unix.c: Fix crash when no host option is given
	for a tcp transport. 

156 157 158 159 160 161 162
2006-05-29  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/*: Update the QtDBus bindings up to revision 546310 in
        Subversion.
	This adds the dbuscpp2xml tool, that parses a C++ header and
        outputs a D-BUS Introspection XML.

163 164 165 166 167 168 169 170 171 172 173 174 175 176
2006-05-21  Havoc Pennington  <hp@redhat.com>

	* glib/dbus-gproxy.c: Put in a pile of assertions that the proxy name
	is not NULL when it shouldn't be. Also a couple of possible fixes
	for #4637 though I don't understand why the bug happens, to be
	honest... also the object constructor has an assert name != NULL
	and the name is only currently NULL for peer-to-peer proxies that 
	I don't think anyone uses? So it should be asserting.
	Anyway, for now at least see if we get an earlier assertion failure.

	* glib/dbus-gvalue-utils.c: Put in a couple of assertions for
	apparently broken code to be sure the tests fail and someone 
	will fix them...

177 178 179 180 181 182 183
2006-05-07  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/qdbusmarshall.cpp: Fix a problem of demarshalling lists
        and arrays when they had a single element: has_next returns
        false, even before you read the element. So, instead, check
        the array length.

Thiago Macieira's avatar
Thiago Macieira committed
184 185 186 187 188 189 190
2006-05-06  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/qdbusmessage.cpp:
	* qt/qdbustypehelper_p.h:
	* qt/qdbusintegrator.cpp: gcc 3.4 doesn't like Q_FOREACH when
	the list is a const-reference

191 192 193 194 195 196 197 198 199
2006-05-03  John (J5) Palmieri  <johnp@redhat.com>

	* Adding old doc patch that never got applied
	
	* dbus/bus.c (dbus_bus_add_match): Add documentation

	* doc/dbus-specification.xml: Add documentation for the match rules
	  and the AddMatch and RemoveMatch methods

200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
2006-05-02  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/dbusidl2cpp.cpp: There's no callAsync. Use the correct
        call (r535506)

	* qt/dbusidl2cpp.cpp:
	* qt/qdbusabstractadaptor.cpp:
	* qt/qdbusabstractadaptor.h: Make QDBusAdaptorConnector be a
        sibling of the QDBusAbstractAdaptor objects instead of the
        parent. (r535848)

	* qt/dbusidl2cpp.cpp:
	* qt/qdbusabstractinterface.cpp:
	* qt/qdbusabstractinterface.h:
	* qt/qdbusabstractinterface_p.h:
	* qt/qdbusinterface.cpp: Make properties in interfaces
        actually work. The code that was generated would not compile,
        due to moc calls to functions that did not exist. They now
        shall. (r536571)

Thiago Macieira's avatar
Thiago Macieira committed
220 221 222 223 224 225 226
2006-04-30  Thiago Macieira  <thiago.macieira@trolltech.com>

	* Makefile.am:
	* configure.in:
	* dbus-qt4-1.pc.in: Add a pkg-config file for libdbus-qt4-1.
	Thanks to Brad Hards for providing the patch

227 228 229 230 231
2006-04-29  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/dbusidl2cpp.cpp: There's no callAsync. Use the correct
        call. (r535506)

232 233 234 235 236
2006-04-29  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/examples/dbus.cpp: Enhance error messages and use
        QDBusInterfacePtr.

237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274
2006-04-29  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/qdbusinterface.h: Rename QDBusRef to QDBusInterfacePtr
        and disable the copy operators. (r533772, r534746)

	* qt/qdbuserror.h: Remove the automatic cast to bool. (r533929)

	* qt/qdbusabstractinterface.cpp:
	* qt/qdbusabstractinterface.h: Change the default call mode to
        not use the event loop. Add convenience call() methods that
        take a CallMode parameter. (r534042)

	* qt/qdbusconnection.h: Change the default call mode to not
        use the event loop. (r534042)

	* qt/qdbusinterface.cpp:
	* qt/qdbusinterface.h: Add a method to tell us if the
	interface is valid (since we don't return a null pointer
	anymore) (r534099)

	* qt/qdbusinterface_p.h: Don't crash if metaObject is 0
        (r534101)

	* qt/qdbusinternalfilters.cpp: Decouple the introspection
        function in two so taht we get the chance to introspect
        without having a QDBusMessage (r534102)

	* qt/qdbusbus.h:
	* qt/qdbusconnection.cpp:
	* qt/qdbusconnection_p.h:
	* qt/qdbusintegrator.cpp: Keep a list of our own names to
        avoid a round-trip to the server when attempting to introspect
        one of our own objects. Also make sure the filter functions
        match the empty interface as well. (r534108)
	Don't keep the connection names. Instead, trust the unique
        connection name (r534111)
	Remove event loop usage (r534112)

275 276 277 278 279
2006-04-29  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/qdbusintegrator.cpp: Fix assertion failure spotted by
	Brad Hards.

280
2006-04-28  Robert McQueen  <robot101@debian.org>
281 282 283 284 285

	* glib/dbus-gproxy.c: Fix properties so that they can be given in
	any order, making it easier for people who inherit from this
	object.

286
2006-04-28  Robert McQueen  <robot101@debian.org>
287 288 289 290

	* glib/dbus-gvalue-utils.c: Patch from Jakub Stachowski to fix leaking
	of memory from within pointer arrays and lists. Fixes bug #6300.

291
2006-04-28  Robert McQueen  <robot101@debian.org>
292 293 294 295

	* glib/dbus-gvalue.c: Patch from Jakub Stachowski to fix a leak in
	generating struct signatures. Fixes bug #6083.

296
2006-04-28  Robert McQueen  <robot101@debian.org>
297 298 299 300 301

	* qt/Makefile.am: Tweak CLEANFILES from qdbusconnection.moc
	to qdbusconnection_p.moc.

2006-04-24 John (J5) Palmieri <johnp@redhat.com>
302 303 304 305

	* README, INSTALL: Doc fixes
	Patch from Brad Hards <bradh at frogmouth.net>

306 307 308 309 310 311
2006-04-23  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/examples/dbus.cpp: Use the new merged-interface mode for
	the dynamic meta object. No need to guess which interface to
	call.

312 313 314 315 316 317 318 319 320 321 322 323 324 325 326
2006-04-23  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/qdbusconnection_p.h:
	* qt/qdbusmetaobject.cpp:
	* qt/qdbusmetaobject_p.h:
	* qt/qdbusintegrator.cpp: Use the new merged-interface mode
	for the dynamic meta object. No need to guess which
	interface to call.
	* qt/qdbusabstractinterface_p.h:
	* qt/qdbusconnection.cpp:
	* qt/qdbusintegrator.cpp:
	* qt/qdbusinterface.cpp:
	* qt/qdbusinterface.h: Make findInterface always return a non-null pointer.
	Add a QDBusRef that looks and behaves like DCOPRef.

327 328 329 330 331 332 333
2006-04-23  Thiago Macieira  <thiago.macieira@trolltech.com>

	* dbus/dbus-connection.c: Interfaces are optional in method
        calls, so don't give up if the interface parameter is NULL.
	Patch reviewed by Havoc Pennington.

2006-04-23  Thiago Macieira  <thiago.macieira@trolltech.com>
334 335 336 337 338 339 340 341 342

	* qt/qdbusreply.h: Add default constructor and operator=
          (r532625)
	* qt/qdbustypehelper_p.h: Use a clean namespace: no foreach()
          in public headers (r532952)
	* qt/qdbusabstractinterface.cpp:
	* qt/qdbusabstractinterface_p.h: Add the AutoDetect mode and
          make it the default (r532951)

343 344 345 346 347
2006-04-19  John (J5) Palmieri  <johnp@redhat.com>

	* dbus/dbus-connection.c: Fix asserts
	Patch from Tim Moloney <t.moloney at verizon.net>

348 349 350 351 352
2006-04-19  John (J5) Palmieri  <johnp@redhat.com>

	* mono/Connection.cs, mono/Message.cs: Check Target type
	Patch from Aaron Bockover (abockover at novell.com)

353 354 355 356
2006-04-13  Thiago Macieira  <thiago.macieira@trolltech.com>

	* INSTALL: fine-tune the requirements for the Qt4 binding.

357 358 359 360 361 362
2006-04-16  Daniel P. Berrange  <dan@berrange.com>

	* tools/dbus-print-message.c: Added support for printing of all 
	  remaining data types. Fixed logic for indentation of compound
	  data types.
	
363 364 365 366 367 368
2006-04-15  Daniel P. Berrange  <dan@berrange.com>

	* INSTALL: fill out content of file providing DBus specific
	  build installations, followed by generic Auto* INSTALL file
	  content
	
369 370 371 372 373 374
2006-04-13  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/qdbusintegrator.cpp: Work around g++ 3.3 bug.
	  Patch by Stefan Eilers. (r529537)

2006-04-13  Thiago Macieira  <thiago.macieira@trolltech.com>
375 376 377 378

	* qt/qdbusinternalfilters.cpp: Don't show the parent's
  	  contents (r528208)

379
2006-04-10  Thiago Macieira  <thiago.macieira@trolltech.com>
380 381 382 383 384 385 386

	* qt/Makefile.am: fix the dependency for
          qdbusconnection_p.moc. It's included in qdbusintegrator.cpp,
	  not in qdbusconnection.cpp.
	  Thanks to Jakub Stachowski <stachowski@hypair.net> for
          spotting this.

387 388
2006-04-10  Thiago Macieira  <thiago.macieira@trolltech.com>

389 390 391
	* qt/examples/listnames.cpp:
	* qt/examples/Makefile.am: Three ways to list the names on the
	  bus.
392

393 394
2006-04-10  Thiago Macieira  <thiago.macieira@trolltech.com>

395 396 397
	* test/qt/tst_hal.cpp: Remove the waiting, since it's not
          needed anymore. Requires Qt 4.1.3 to work properly. (r528148)

Thiago Macieira's avatar
Thiago Macieira committed
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
2006-04-10  Thiago Macieira  <thiago.macieira@trolltech.com>

	Merge from Subversion:
	* qt/qt-dbus.qdocconf: Update Trolltech's webpage link to
	  something that exists (r526315)
	* qt/qdbusinternalfilters.cpp: Correctly detect non-scriptable
	  slots/signals (r526316)
	* qt/qdbusinternalfilters.cpp: Fix the setProperty call and
	  also return an unknown-method error if the parameters don't
	  match for org.freedesktop.DBus.Properties. (r526842)
	* qt/examples/dbus.cpp: Allow passing of QVariants (r526843)
	* qt/qdbusintegrator.cpp: Restore the proper order of
	  delivery: don't make method returns be delivered on priority
	  (r528150)

413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
2006-03-28  Thiago Macieira  <thiago.macieira@trolltech.com>

	* configure.in qt/Makefile.am: add qt/examples
	* qt/examples: Add QtDBus example programs:
	  - hello: Hello, World
	  - ping: Simple method-calling program
	  - pong: Simple object-exporting program (not using adaptors)
	  - complexping: Interactive method-calling program 
		(also gets and sets properties).
	  - complexpong: Sample program exporting methods, signals and
		properties, using adaptors.
	  - dbus: Simple implementation of a generic method-calling
		program, similar to 'dbus-send', but with semantics
		similar to 'dcop'.
	  - chat: Simplistic chat program, implemented using signals
		and the system bus. Looks like IRC.

430 431 432 433 434 435
2006-03-28  Thiago Macieira  <thiago.macieira@trolltech.com>

	* configure.in: Detect QtGui (necessary for one of the
          example programs). Note: this increases the minimum required
          version of Qt to 4.1.3.

436 437 438 439 440 441
2006-03-28  Thiago Macieira  <thiago.macieira@trolltech.com>

	* test/qt/*: Sync with KDE Subversion revision 523647.
        Update the testcases to the new API. Remove testcases for
        classes that are no longer public or have been removed.

Thiago Macieira's avatar
Thiago Macieira committed
442 443 444 445 446 447 448 449 450 451 452
2006-03-28  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/*: 
	* dbus/qdbus.h: Sync with KDE Subversion revision
	523647. Hopefully, this will be the last of the
	source-incompatible changes. Documentation has been improved;
	support for QList<basic-types> has been added; QDBusObject is
	gone; QDBus(Abstract)Interface is now a QObject with
	auto-generated meta-object; QDBusIntrospection is marked
	private, since QMetaObject can be used now; lots of bugfixes.

453 454 455 456 457 458 459 460 461 462
2006-03-16  John (J5) Palmieri  <johnp@redhat.com>

	Patch from Milosz Derezynski <internalerror at gmail.com>
	
	* configure.in:
	Output the service directory in the configure summary

	* dbus-1.pc.in:
	Add session_bus_services_dir

463 464 465 466 467
2006-03-10  Ross Burton  <ross@openedhand.com>

	* tools/dbus-print-message.c:
	Add support for object paths and signatures.

468 469 470 471 472 473 474 475 476 477 478 479
2006-03-06  Sjoerd Simons <sjoerd@luon.net>

	* bus/bus.c: (bus_context_reload_config): Flush the user database cache on
	config reload.
	* bus/dbus-daemon.1.in: Also note that SIGHUP flushes the user/group
	information caches
	* dbus/dbus-hash.c: (_dbus_hash_table_remove_all): 
	* dbus/dbus-hash.h: Add function to remove all entries from a hash table
	* dbus/dbus-userdb.c: (_dbus_user_database_flush):
	* dbus/dbus-userdb.h: Add function to flush all user/group information
	caches.

480 481 482 483 484 485 486 487
2006-03-06  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/dbusidl2cpp.cpp:
	* qt/Makefile.am: add the dbusidl2cpp tool, the replacement
	for dcopidl2cpp, found in the KDE installations (or the more
	modern kalyptus): generate Qt4 C++ code for the input XML
	introspection. Currently no IDL parsing.

488 489 490 491
2006-03-06  Thiago Macieira  <thiago.macieira@trolltech.com>

	* test/qt/*: Update the self-tests.

492 493 494 495 496 497 498
2006-03-06  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/*: 
	* dbus/qdbus.h: Sync with KDE Subversion revision 516237. This
	represents the first feature-complete version of the Qt4
	bindings since I took ove maintainership.

499 500 501 502 503
2006-03-06  Thiago Macieira  <thiago.macieira@trolltech.com>

	* qt/Doxyfile: Adding a Doxyfile for the Qt4 bindings
        dir. This is C++, so we can't use the DBus ones.

504 505 506 507 508
2006-03-02  John (J5) Palmieri  <johnp@redhat.com>

	* python/dbus_bindings.pyx: Remove refrence to sys/cdefs.h
	(Patch from Artem Kachitchkine <Artem.Kachitchkin at Sun.COM>)

509 510 511 512 513 514 515 516 517 518 519 520 521 522 523
2006-03-02  John (J5) Palmieri  <johnp@redhat.com>

	* dbus/dbus-connection.c: 
	(_dbus_connection_block_pending_call):
	Check to see if our data has already been read off the connection
	by another blocking pending call before we block in poll.
	(check_for_reply_and_update_dispatch_unlocked):
	Code taken from _dbus_connection_block_pending_call - checks for
	an already read reply and updates the dispatch if there is one.

	* test/name-test/test-pending-call-dispatch.c:
	New test for making sure we don't get stuck polling a 
	dbus connection which has no data on the socket when
	blocking out of order on two or more pending calls.

524 525 526 527 528 529
2006-02-28  Thiago Macieira <thiago.macieira@trolltech.com>

	* qt/Makefile.am: Patch by Sjoerd Simons. More .moc issues:
        make/automake don't detect that we're talking about the same
        .lo file if I specify the full path to the source files.

530 531 532 533 534 535 536 537
2006-02-26  Havoc Pennington  <hp@redhat.com>

	* bus/dbus-daemon.1.in: improve the language in a couple spots I noticed

	* dbus/dbus-bus.c (internal_bus_get): in the error message if the
	session bus variable is unset, suggest "man dbus-launch" and "man
	dbus-daemon" to figure out how to fix the problem

538 539 540 541 542
2006-02-25  Havoc Pennington  <hp@redhat.com>

	* glib/dbus-glib-tool.c (usage): fix up the usage message, someone
	should make this thing use the new glib options parser

543 544 545 546 547
2006-02-25  Thiago Macieira <thiago.macieira@trolltech.com>

	* qt/Makefile.am: Patch by Sjoerd Simons. Fix the path to the
        .lo files taking moc sources.

548 549 550 551 552
2006-02-25  Havoc Pennington  <hp@redhat.com>

	* dbus/dbus.h, dbus/Makefile.am: add dbus-signature.h to dbus.h
	and install it as a public header

553 554 555 556 557 558 559 560
2006-02-24  John (J5) Palmieri  <johnp@redhat.com>

	* Released 0.61

2006-02-24  John (J5) Palmieri  <johnp@redhat.com>
	
	* proxies.py: Fix the callchain

561 562 563 564 565 566 567 568 569 570 571
2006-02-24  John (J5) Palmieri <johnp@redhat.com>
	
	* patch from Sjoerd Simons <sjoerd at debian.org>:	

	* dbus/dbus-sysdeps-util.c (_dbus_group_info_free): Moved to 
	dbus/dbus-sysdeps.c

	* dbus/dbus-userdb.c (_dbus_group_info_free_allocated): Don't
	call _dbus_group_info_free_allocated which causes infinite loop,
	correctly call _dbus_group_info_free

572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588
2006-02-20  Thiago Macieira <thiago.macieira@trolltech.com>

	* qt/qdbusinterface_p.h:
	* qt/qdbusinterface.cpp: Use the standard
	org.freedesktop.DBus.Method.NoReply annotation for the "async"
	calls instead of creating one for us.

	* qt/qdbusconnection_p.h:
	* qt/qdbusintegrator.cpp: Remove debugging code.

	* qt/qdbusintegrator.cpp:
	* qt/qdbusmessage.cpp:
	* qt/qdbusmessage_p.h:
	* qt/qdbusmessage.h: Change the behaviour of automatic
	reply-sending: now a reply is always sent, unless the caller
	didn't request one or if the user slot has already sent one.

589 590 591 592 593 594 595 596 597
2006-02-16  Robert McQueen  <robot101@debian.org>

	* configure.in: Patch from Debian packages by Sjoerd Simons
	<sjoerd@debian.org> to add --with-qt-moc and --with-qt3-moc
	arguments so it's possible to build both bindings in the
	same tree.

	* qt/Makefile.am: Fix truncated value so that make dist works.

598 599 600 601 602 603 604
2006-02-16  Robert McQueen  <robot101@debian.org>

	* acinclude.m4, configure.in: Patch from Brad Hards
	<bradh@frogmouth.net> to avoid warnings from autoconf 1.9 by
	improving quoting, re-ordering a few checks, and a few other
	aesthetic tidy-ups.

605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627
2006-02-16  Robert McQueen  <robot101@debian.org>

	* dbus/dbus-message.c (dbus_message_iter_get_fixed_array):
	Patch from Rob Taylor <rob.taylor@collabora.co.uk> to correct a bogus
	assertion that the next element to read from the iter is fixed in
	size. This is not the case when you are at the end of the iter,
	because the next element type is INVALID.

	* dbus/dbus-string.c (_dbus_string_init_const_len): Correct a
	a bogus assert which means that you may not initialise a 0-length
	string unless you provide a non-NULL pointer. This prevented
	you from marshalling messages containing zero-length arrays in
	some cases.

	* glib/dbus-gvalue.c (demarshal_collection_array): Another patch
	from Rob to correct bogus asserts when trying to demarshal an
	array and get_fixed_array got you 0 elements. Append nothing to
	the GArray in this case.

	* test/glib/test-dbus-glib.c: Add a test case for round-tripping
	an empty array via the glib bindings. Without all of the above
	patches, this new test fails.

628 629 630 631 632 633 634 635 636 637 638 639 640 641
2006-02-16  Robert McQueen  <robot101@debian.org>

	* glib/dbus-gmain.c: Make the previous commit compile.

	* python/_dbus.py, python/matchrules.py: Patch from Ole Andre
	Ravnaas <ole.andre.ravnaas@collabora.co.uk> to allow you to
	specify sender_keyword="foo", path_keyword="bar" when adding
	a signal listener, so that you can bind to signals generically
	but still do something useful in your callback.

	* python/dbus_bindings.pyx: Demarshal the byte type as unsigned
	chars so that they're not cast to chars and made negative. Thanks
	to Jakub Stachowski for reporting this and testing the fix.

642 643 644 645 646 647 648 649 650 651 652 653 654
2006-02-15  John (J5) Palmieri  <johnp@redhat.com>

	* dbus/dbus-glib.h:
	* glib/dbus-gmain.h:
	(dbus_g_connection_open): new method for openning
	a connection to an arbitrary address in the glib bindings

	* ChangeLog: checkin last entry which doesn't seem to be commited

2006-02-13  John (J5) Palmieri  <johnp@redhat.com>

	* tools/dbus-launch.c: Fixed sh syntax output

655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670
2006-02-13  Robert McQueen  <robot101@debian.org>

	* glib/dbus-binding-tool-glib.c, glib/dbus-gmain.c,
	glib/dbus-gsignature.c, glib/dbus-gtype-specialized.c,
	glib/dbus-gtype-specialized.h, glib/dbus-gvalue-utils.c,
	glib/dbus-gvalue-utils.h, glib/dbus-gvalue.c:
	Patch from Rob Taylor <rob.taylor@collabora.co.uk> to add a big
	missing piece of the glib bindings jigsaw puzzle. This modifies
	the existing specialised types to have N type parameters (rather
	than the current 1 or 2 for arrays and dictionaries respectively).
	You can then use this to get a glib type to represent any arbitrary
	D-Bus struct type using dbus_g_type_get_struct. The only
	implementation of these types is with GValueArrays as before,
	but it's now possible to store these in arrays, emit them in
	signals, etc.

671 672 673 674 675 676
2006-02-10  John (J5) Palmieri  <johnp@redhat.com>

	* dbus/dbus-signature.c (dbus_signature_iter_recurse): Correctly
	deal with nested arrays (Bug #5823) Patch by Thiago Macieira 
	<thiago.macieira at trolltech.com>

677 678 679 680 681
2006-02-10  John (J5) Palmieri  <johnp@redhat.com>

	* mono/doc/Makefile.am: Fix parallel make problem with mono-doc
	(Bug #4213) Patch from Doug Goldstein <cardoe at gentoo.org>

682 683 684 685 686 687
2006-02-10  John (J5) Palmieri  <johnp@redhat.com>

	* bus/connection.c (bus_connections_expect_reply): Make
	pending reply limit not common to all connections (Bug #5416)
	Patch from Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>

688 689 690 691
2006-02-10  John (J5) Palmieri  <johnp@redhat.com>

	* tools/dbus-launch.c: Fixed csh syntax output (Bug #5720)

692 693 694 695 696 697
2006-02-10  John (J5) Palmieri  <johnp@redhat.com>

	* gcj/Makefile.am: point to correct jar command (Bug #4529)
	patch from Doug Goldstein <cardoe at gentoo.org>

2006-02-09  Joe Shaw  <joeshaw@novell.com>
698 699 700 701

	* mono/Arguments.cs: Fix a magic number in the mono bindings
	that doesn't work on 64 bit arches.  Patch from Peter Johanson.

702 703 704 705 706 707 708
2006-01-27  Robert McQueen  <robot101@debian.org>

	* glib/dbus-binding-tool-glib.[ch]: Patch based on Ricardo Kekki's
	patch to use an annotation org.freedesktop.DBus.GLib.ClientCSymbol
	when generating the client-side methods, instead of overloading
	CSymbol which broke everything horribly. My apologies.

709 710 711 712 713 714 715 716 717 718 719 720
2006-01-27  Robert McQueen  <robot101@debian.org>

	* glib/dbus-gtype-specialized.[ch], glib/dbus-gvalue-utils.c: Patch
	by me and Rob Taylor to add a simple_free function to D-Bus map
	and collection types, which allows those types which can be freed
	with a GDestroyNotify (such as GHashTables and GArrays, but not
	GPtrArrays) to be stored as the values in hashtables.

	* test/glib/test-dbus-glib.c, test/glib/test-service-glib.{c,xml}:
	Patch by Rob Taylor to add nested dicts to the glib tests to check
	the above code works, and appears not to leak when called repeatedly.

721 722 723 724 725 726
2006-01-27  Robert McQueen  <robot101@debian.org>

	* glib/dbus-gvalue.c (demarshal_valuearray): Patch from Rob Taylor
	to free a D-Bus allocated string with dbus_free () instead of
	g_free ().

727 728 729 730 731
2006-01-27  Iain Holmes  <iain@openedhand.com>

	* glib/dbus-gproxy.c (dbus_g_proxy_dispose): Protect the dispose
	method from being called multiple times.

732 733 734 735 736 737 738
2006-01-19  Robert McQueen  <robot101@debian.org>

	* glib/dbus-binding-tool-glib.c: Patch from Rob Taylor
	<rob.taylor@collabora.co.uk> to add support for generating bindings
	to arrays that are represented as GPtrArrays rather than GArrays (ie
	size-variable things, such as strings, objects, structs, etc).

739 740 741 742 743 744 745 746
2006-01-05  Robert McQueen  <robot101@debian.org>

	* dbus/dbus-glib.h, glib/dbus-gproxy.c: Patch from Ricardo Kekki
	<ricardo.kekki@movial.fi> to make it possible to inherit from
	DBusGProxy, by splitting the DBusGProxy struct into a public part and
	a private part, and moving the setting of the DBusGProxyManager into a
	connection property, allowing proper GObject construction.

747 748 749 750 751 752
2006-01-05  Robert McQueen  <robot101@debian.org>

	* glib/dbus-binding-tool-glib.c: Patch from Ricardo Kekki
	<ricardo.kekki@movial.fi> to make dbus-binding-tool heed C symbol name
	annotations when generating glib client bindings.

753
2005-12-19 John (J5) Palmieri  <johnp@redhat.com>
754 755 756 757 758

	* dbus/dbus-shared.h: Call it shared constants instead of shared macros

	* dbus/dbus-protocol.h: add DOxygen markup to quiet warnings

759
2005-12-19 John (J5) Palmieri  <johnp@redhat.com>
760 761 762

	* dbus/dbus-shared.h: add DOxygen markup to quiet warnings

763
2005-12-19 John (J5) Palmieri  <johnp@redhat.com> 
764 765 766

	* dbus/dbus-macros.h: correct DOxygen end of section (s/}@/@})

767 768 769 770 771
2005-12-19  Ross Burton  <ross@openedhand.com>

	* doc/dbus-tutorial.xml:
	Document the Glib client-side bindings, and list all possible annotations.

772 773 774 775
2005-12-19  John (J5) Palmieri  <johnp@redhat.com>

	* dbus/bus.c (dbus_bus_release_name): Add documentation

776 777 778 779 780
2005-12-06  Robert McQueen  <robot101@debian.org>

	* python/service.py: s/sucessful/successful/ so we're allocating to
	and reading from the same variable. Oops.

781 782 783 784 785 786
2005-11-30  John (J5) Palmieri  <johnp@redhat.com>

	* Released 0.60

2005-11-30  John (J5) Palmieri  <johnp@redhat.com>

787 788 789 790 791 792 793 794 795 796 797 798 799
	* test/qt/Makefile.am: build from srcdir

	* qt/qtconnection.cpp (requestName): Changed PROHIBIT_REPLACE to ALLOW_REPLACE
	Note - this code is wrong and needs to be fixed by the Qt binding
	developers.  The flags should be treated as bitfields and not enums.

	* qt/qtconnection.h: Change ProhibitReplace to AllowReplace

2005-11-30  John (J5) Palmieri  <johnp@redhat.com>

	* dbus/dbus-list.c (_dbus_list_insert_after_link, _dbus_list_insert_after, 
	  link_after): remove #ifdef DBUS_BUILD_TESTS since we use these methods 
	  in production code
800

801 802 803 804 805 806 807 808 809 810
2005-11-30  John (J5) Palmieri  <johnp@redhat.com>

	* dbus/dbus-connection.c (dbus_connection_read_write): Add new
	method for getting messages off the bus in the absence of a
	mainloop.  This method is much like 
	dbus_connection_read_write_dispatch except it does not dispatch
	the messages to a registered filter function.  Instead it
	allows a developer to process messages by directly popping
	them off the bus.

811
2005-11-30  John (J5) Palmieri  <johnp@redhat.com>
812 813 814 815 816 817 818 819 820 821

	* bus/desktop-file.c (parse_key_value): Ignore locales allowing 
	the parser to continue instead of returning error
	(bus_desktop_file_load): Do not free parser data when
	parse_section_start or parse_key_value fails because it was 
	already freed by parser_free (patch from Carlos Garcia Campos  
	<carlosgc at gnome.org>)

2005-11-30  John (J5) Palmieri  <johnp@redhat.com>

822 823 824 825 826 827 828 829 830
	* dbus/dbus-auth.c, dbus/dbus-connection.c, dbus/dbus-keyring.c,
	dbus/dbus-server-debug-pipe.c, glib/dbus-binding-tool-glib.c
	glib/dbus-glib-tool.c, glib/dbus-gparser.c, glib/dbus-gproxy.c
	test/test-segfault.c, test/test-utils.c,
	test/glib/test-dbus-glib.c, tools/dbus-cleanup-sockets.c
	tools/dbus-launch.c, tools/dbus-tree-view.c, tools/dbus-viewer.c:
	Various cleanup of dead code and compiler warnings (patch from
	Kjartan Maraas <kmaraas at gnome.org>) 

831 832 833 834 835
2005-11-30  John (J5) Palmieri  <johnp@redhat.com>

	* glib/dbus-gmain.c (connection_setup_add_watch): plugged a leak
	(patch from Carlos Garnacho Parro <carlosg at gnome.org>

836 837 838 839 840 841 842 843 844 845
2005-11-27  Robert McQueen  <robot101@debian.org>

	* python/dbus_bindings.pyx: Repair my previous commit which reverted
	part of the preceding one. Oops. Merge patch by Johan Hedberg
	<johan.hedberg@nokia.com> to fix marshalling of 16-bit integer values
	on big-endian platforms.

	* test/python/test-client.py: Add some 16-bit integers to the test
	values.

846 847 848 849 850
2005-11-27  Carlos Garcia Campos  <carlosgc@gnome.org>

	* glib/dbus-gobject.c: Append a GValue instead of a basic type in
	method return message for property getters

851 852 853 854 855 856 857 858 859 860 861
2005-11-27  Robert McQueen  <robot101@debian.org>

	* python/dbus_bindings.pyx: Fix a bug where doing a strict append
	with type v of an instance of dbus.Variant(foo, type='x') caused
	it to be boxed twice before sending over the bus.

	* python/dbus_bindings.pyx, python/service.py,
	test/python/test-client.py: Update the constants for the new
	request_name flags, and update comments/test cases now that queueing
	is the default action.

John Palmieri's avatar
John Palmieri committed
862 863 864 865 866 867
2005-11-22  John (J5) Palmieri  <johnp@redhat.com>

	* configure.in:
	- Change version to 0.60 for impending release
	- upped the sonames because of ABI and API breakage

868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970
2005-11-22  John (J5) Palmieri  <johnp@redhat.com>

	* configure.in: Add test/name-test/Makefile to the generated
	Makefile list

	* dbus/dbus-shared.h (#define DBUS_NAME_FLAG_ALLOW_REPLACEMENT):
	New flag which replaces DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT
	(#define DBUS_NAME_FLAG_DO_NOT_QUEUE): New flag for specifying
	not to queue an ower if it can't be the primary owner

	* bus/bus.h: Add new internal BusOwner struct

	* bus/driver.c (bus_driver_handle_hello): Send flags (0 for default)
	to bus_registry_ensure and don't set the prohibit_replacement flag
	since they are now set per BusOwner and not per name.
	(bus_driver_handle_list_queued_owners): bus method (ListQueuedOwners) 
	that returns the list of connections in a name's connection queue
	
	* bus/services.c (struct BusService): remove prohibit_replacement field
	(struct BusOwner): new struct for keeping track of queued connections
	and their associated flags for the queue
	(struct BusRegistry): add a BusOwner memory pool
	(bus_registry_new): initialize the BusOwner memory pool
	(bus_registry_unref): free the BusOwner memory pool
	(_bus_service_find_owner_link): new internal method for
	searching the queue for a specific connection
	(bus_owner_set_flags): new method for adding setting the flags on a
	bus owner
	(bus_owner_new): new method that creates a BusOwner object from the
	pool and sets its flags
	(bus_owner_ref, bus_owner_unref): ref counting for BusOwner objects
	(bus_registry_ensure): Add the flags parameter
	(bus_registry_acquire_service): Switch from using raw connections to
	using the BusOwner struct
	Add new state machine for dealing with the new set of flags
	(bus_registry_set_service_context_table, struct OwnershipCancelData, 
	cancel_ownership, free_ownership_cancel_data, 
	add_cancel_ownership_to_transaction, struct OwnershipRestoreData, 
	restore_ownership, free_ownership_restore_data, 
	add_restore_ownership_to_transaction): Switch to using BusOwner 
	instead of raw connections
	(bus_service_add_owner): Add flags parameter
	Switch to using BusOwner instead of raw connections
	Add state machine for dealing with the new set of flags
	(bus_service_swap_owner): Swaps the first and second owners in the
	queue.  Used to make sure proper signals are sent when a service looses 
	or gains primary ownership.  We never insert an owner at the top of the
	queue.  Instead we insert it in the second position and then swap.
	(bus_service_remove_owner): Remove the owner from the queue sending
	out the NameLost and NameOwnerChanged signals if the we were the 
	primary owner
	(bus_service_get_primary_owners_connection): New method that extracts
	the connection from the primary owner
	(bus_service_get_primary_owner): Returns the BusOwner instead of the 
	connection
	(bus_service_get_allow_replacement): Changed from the old 
	bus_service_get_prohibit_replacement method.  Checks the flags of the 
	primary owner and returns if it can be replaced or not
	(bus_service_set_prohibit_replacement): removed
	(bus_service_has_owner): returns TRUE if and owner with
	the specified connection exists in the queue
	
	* dbus/dbus-bus.c (dbus_bus_connection_get_unique_name): New helper
	method that only compiles if tests are enabled.  Allows us to get the 
	unique name of a connection so we can check it against the queue when
	doing regression tests

	* bus/activation.c (bus_activation_send_pending_auto_activate),
	bus/dispatch.c (bus_dispatch),  
	bus/driver.c (bus_driver_handle_get_service_owner, 
	bus_driver_handle_get_connection_unix_user, 
	bus_driver_handle_get_connection_unix_process_id,
	bus_driver_handle_get_connection_selinux_security_context),
	bus/signals.c (connection_is_primary_owner): 
	use bus_service_get_primary_owners_connection instead of
	bus_service_get_primary_owner

	* dbus/dbus-sysdeps.c (_dbus_connect_unix_socket, 
	_dbus_listen_unix_socket): Calculate the length of the socket
	path and use that instead of using a fixed length which was
	causing socket names to contain many trailing Nul bytes.

	* dbus/dbus-glib-lowlevel.h, glib/dbus-gobject.c
	(dbus_g_method_get_sender): New method for extracting the sender 
	from a DBusGMethodInvocation
	(dbus_g_method_return_get_reply): changed name to 
	dbus_g_method_get_reply
	(dbus_g_method_return_send_reply): changed name to
	dbus_g_method_send reply

	* doc/dbus-specification.xml: New docs that describe how the new
	queueing system works and talks about the changes to the how
	we specify socket names

	* glib/examples/example-service.c, 
	glib/examples/example-signal-emitter.c,
	glib/examples/statemachine/statemachine-server.c:
	Changed the RequestName flags to the new system

	* test/name-test/ (test-names.c, run-test.sh, Makefile.am): New
	regression test suite for testing various states of the new
	queueing system
	
971 972 973 974 975 976 977 978 979 980 981 982
2005-11-15  Robert McQueen  <robot101@debian.org>

	* dbus/dbus-glib-lowlevel.h, glib/dbus-gobject.c: Patch from Rob
	Taylor to add two methods, dbus_g_method_return_get_reply and
	dbus_g_method_return_send_reply, to allow you to get the reply
	message from a DBusGMethodInvocation, append arbitrary stuff to it,
	and send it. The GLib bindings can't marshal a return value of
	something like a(s) if the array is empty - ultimately they should be
	made to heed the signature of the out arguments as the Python bindings
	now can, but this is a workable interim solution which might have
	other applications.

983 984
2005-11-15  Robert McQueen  <robot101@debian.org>

985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007
	* bus/driver.c, bus/services.c, bus/services.h: Add a ReleaseName
	method to org.freedesktop.DBus to release a bus name or give up
	waiting in the queue for it.

	* dbus/dbus-bus.c, dbus/dbus-bus.h, dbus/dbus-shared.h: Add a
	dbus_bus_release_name method to send the ReleaseName method calls.
	Add constants for the return values to dbus/dbus-shared.h.

	* doc/dbus-specification.xml: Document the new ReleaseName method
	in the specification.

	* python/dbus_bindings.pyx: Add a low-level python binding for the
	release name method.

	* python/exceptions.py, python/service.py: Make freeing BusName
	objects release the name. Add a NameExistsException, and fix a
	bug with creating UnknownMethodException.

	* test/python/test-client.py: Add tests for freeing BusName
	objects causing names to be released.

2005-11-14  Robert McQueen  <robot101@debian.org>

1008 1009 1010
	* python/service.py: Include the traceback in the error reply when we
	send an exception over the bus. _BEST_ _PATCH_ _EVER_

1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037
2005-11-14  David Zeuthen  <davidz@redhat.com>

	Patch from Timo Hoenig <thoenig@suse.de>.

	* bus/bus.c: I've recently investigated why the automatic reload
	of configuration files does not work as expected.

	Currently, reloading configuration files does only work when
	running dbus-daemon with --nodaemon.  If we are running as daemon
	we're hitting a dnotify bug once we fork the process.

	We're initializing the dnotify fds before calling fork().  Once
	the child process forked it does still have the fds (and they
	still show up in /proc/`pidof dbus-daemon`/fd/) but we're not
	getting SIGIO as changes are made to the configuration files.

	The attached patch moves the initialization of the dnotify fds to
	process_config_postinit().  This is safe for all current code
	paths and solves the dnotify disfunction.  If we're running
	dbus-daemon as daemon the fds for dnotify are now being
	initialized after fork() for the child process.

	* configure.in: The current configure.in check for dnotify probes
	'x$target_os' for being 'xlinux-gnu'.  I've changed the check to
	match for 'xlinux', too. Additionally I have adapted the configure
	option's style to match with the others.

1038 1039 1040 1041 1042 1043 1044 1045 1046 1047
2005-11-14  Robert McQueen  <robot101@debian.org>

	* python/decorators.py, python/service.py: Add a new argument to the
	dbus.service.method decorator called sender_keyword, which if set,
	specifies the name of an argument which will be provided the bus
	name of the method caller.

	* test/python/test-client.py, test/python/test-service.py: Add a
	method and test to check the sender_keyword functionality.

1048 1049 1050 1051 1052 1053 1054 1055 1056
2005-11-07  John (J5) Palmieri  <johnp@redhat.com>

	* bus/driver.c (bus_driver_handle_reload_config): Make sure we send an 
	empty reply so blocking calls don't block forever (Patch from Sjoerd 
	Simons <sjoerd at luon.net>)

	* AUTHORS: Add Robert McQueen for his work on the Python
	Bindings and other parts of D-Bus

1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076
2005-11-07  Robert McQueen  <robot101@debian.org>

	* python/decorators.py: Change emit_signal function to use the
	signature annotation of the signal when marhsalling the arguments from
	the service. Fix a bug where the code checking signature length
	against argument length referenced the wrong variable.

	* python/introspect_parser.py: Avoid adding the type signature of
	signal arguments to any methods which occur after them in the
	introspection data (!) by making the parser a little more careful
	about its current state.

	* python/service.py: Remove debug prints from last commit (again :D).

	* test/python/test-client.py, test/python/test-service.py: Add test
	signals with signature decorators to test the strict marshalling code
	gives errors at the right time. Could do with checking the signals
	actually get emitted too, given that the test does nothing with
	signals at the moment...

1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100
2005-11-07  Robert McQueen  <robot101@debian.org>

	* python/_dbus.py: Add WeakReferenceDictionary cache of dbus.Bus
	instances to stop madness of creating new instances representing
	the same bus connection all the time, rendering any tracking of
	match rules and bus names quite meaningless. Caught a bug where
	the private argument to SessionBus() and friends was being passed
	in as use_default_mainloop by mistake. Still some problems with
	multiple dbus_binding.Connection instances representing the same
	low-level connection (eg when you use both SessionBus() and
	StarterBus() in same process), but it's a lot better now than it
	was.

	* python/dbus_bindings.pyx: Add constants with the return values
	for bus_request_name().

	* python/service.py: Store bus name instances in a per-dbus.Bus cache
	and retrieve the same instances for the same name, so deletion can be
	done with refcounting. Also now throws some kind of error if you
	don't actually get the name you requested, unlike previously...

	* test/python/test-client.py: Add tests for instance caching of buses
	and bus name objects.

1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123
2005-11-04  Robert McQueen  <robot101@debian.org>

	* python/dbus_bindings.pyx, test/python/test-client.py: Fix
	marshalling of boolean values. Add some booleans to the values in
	the test client.

	* python/decorators.py, python/service.py: Add an 'async_callbacks'
	argument to the dbus.service.method decorator, which allows you to
	name arguments to take two callback functions for replying with
	return values or an exception.

	* test/python/test-client.py, test/python/test-service.py: Add test
	case using asynchronous method reply functions, both return values and
	errors, and from within both the function itself and from a mainloop
	callback.

	* python/decorators.py, python/service.py: Perform checking that the
	number of method/signal arguments matches the number of types in the
	signature at class loading time, not when you first introspect the
	class.

	* python/service.py: Remove debug print left by the last commit.

1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141
2005-11-03  Robert McQueen  <robot101@debian.org>

	* python/service.py: Heavy refactoring of method invocation, with
	hopefully no effect on functionality. Nuked _dispatch_dbus_method_call
	in favour of a new _message_cb that uses seperate functions for
	looking up the method to call, marshalling the return values, and
	sending exceptions as errors, and is easier to follow as a
	consequence.  Fixes some corner cases about returning things that
	don't match your declared out_signature, allows exceptions to define
	_dbus_error_name and have it be sent over the bus as the error name,
	and paves the way for cool stuff like heeding the message no reply
	flag, asynchronous method implementations, informing the method of the
	sender, and including backtraces in the error messages.

	* test/python/test-client.py: Catch and print exceptions thrown in the
	async callback tests, rather than passing them to the low-level
	bindings to be ignored in a noisy and frustrating manner.

1142 1143 1144 1145 1146 1147 1148 1149
2005-11-03  Robert McQueen  <robot101@debian.org>

	* python/_dbus.py, python/proxies.py, python/service.py: Add __repr__
	functions to dbus.Bus, dbus.service.BusName and dbus.service.Object,
	tweak others to be consistent.

	* test/python/test-client.py: Tweak output of testInheritance.

1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182
2005-10-29  Robert McQueen  <robot101@debian.org>

	* python/service.py: Major changes to allow multiple inheritance
	from classes that define D-Bus interfaces:
	
	 1. Create a new Interface class which is the parent class of
	    Object, and make the ObjectType metaclass into InterfaceType.
	
	 2. Patch written with Rob Taylor to replace use of method_vtable
	    with code that walks the class's __MRO__ (method resolution order)
	    to behave like Python does when invoking methods and allow
	    overriding as you'd expect. Code is quite tricky because
	    we have to find two methods, the one to invoke which has the
	    right name and isn't decorated with the /wrong/ interface,
	    and the one to pick up the signatures from which is decorated
	    with the right interface.
	
	    The same caveats apply as to normal multiple inheritance -
	    this has undefined behaviour if you try and inherit from two
	    classes that define a method with the same name but are
	    decorated with different interfaces. You should decorate
	    your overriding method with the interface you want.
	
	 3. Replace grungy introspection XML generation code in the metaclass
	    with dictionaries that cope correctly with multiple inheritance
	    and the overriding of methods. This also uses the signature
	    decorations to provide correct introspection data, including
	    the debut appearance of the types of your return values. :D

	* test/python/test-client.py, test/python/test-service.py: Add a test
	case to try invoking an method that overrides one inherited from a
	D-Bus interface class.

1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197
2005-10-29  Robert McQueen  <robot101@debian.org>

	* python/dbus_bindings.pyx: Tweak 'raise AssertionError' to assert().
	Add checking for the end of struct character when marshalling a
	struct in MessageIter.append_strict.

	* python/examples/example-service.py,
	python/examples/gconf-proxy-service.py,
	python/examples/gconf-proxy-service2.py: Update to use gobject
	mainloop directly rather than appearing to depend on gtk.

	* python/test/test-client.py, python/test/test-server.py: Remove
	obsolete and broken test scripts for old bindings. We have up to date
	and working tests in test/python/.

1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220
2005-10-29  Robert McQueen  <robot101@debian.org>

	* python/decorators.py: Add optional arguments to the method and
	signal decorators to allow you to specify the signature of arguments
	and return values. Preserve the doc strings of signal functions in the
	decorated version, for pydoc and friends.

	* python/dbus_bindings.pyx, python/proxies.py: Replace the
	parse_signature_block function with an iterable dbus.Signature()
	type. Fix a bug in MessageIter.append_strict where you could append
	anything by claiming it was a string.

	* python/service.py: Use the out_signature decoration on methods to
	marshal return values, meaning you no longer require dbus.Array()
	or dbus.Dictionary() to indicate the type when returning empty
	arrays or dictionaries. Fix a bug where exceptions which are defined
	in __main__ are not turned into error replies.

	* test/python/test-client.py, test/python/test-service.py: Add test
	for correct marshalling of return values according to out_signature.
	Fix a bug in the async call test where the error_handler is missing a
	self argument.

1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232
2005-10-29  Robert McQueen  <robot101@debian.org>

	* glib/Makefile.am, glib/examples/Makefile.am,
	glib/examples/statemachine/Makefile.am: Merge patch from Ubuntu by
	Daniel Stone to replace explicit calls to libtool with $(LIBTOOL).

	* test/python/.cvsignore: Add run-with-tmp-session-bus.conf.

	* tools/dbus-monitor.1, tools/dbus-monitor.c: Merge dbus-monitor patch
	from Ubuntu by Daniel Silverstone to allow specifying match rules on
	the command line.

Ross Burton's avatar
Ross Burton committed
1233 1234 1235 1236 1237 1238 1239 1240
2005-10-27  Ross Burton  <ross@openedhand.com>

	* dbus/dbus-marshal-header.c:
	Remove dead code.

	* glib/dbus-gobject.c:
	Stop compiler warning.

Ross Burton's avatar
Ross Burton committed
1241 1242 1243 1244 1245 1246 1247 1248 1249
2005-10-25  Ross Burton  <ross@openedhand.com>

	* dbus/dbus-auth.c:
	* dbus/dbus-server-unix.c:
	* dbus/dbus-transport-unix.c:
	* glib/dbus-gmain.c:
	* glib/dbus-gobject.c:
	Add some const keywords.

Ross Burton's avatar
Ross Burton committed
1250 1251 1252 1253 1254 1255 1256 1257 1258
2005-10-25  Ross Burton  <ross@openedhand.com>

	* doc/dbus-specification.xml:
	Document the NoReply annotation.

	* glib/dbus-binding-tool-glib.h:
	* glib/dbus-binding-tool-glib.c:
	Respect the NoReply annotation.

1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272
2005-10-24  Robert McQueen <robot101@debian.org>

	* python/dbus_bindings.pyx (String, MessageIter): make D-Bus strings
	derive from unicode instead of str, and encode/decode UTF-8 when
	marshalling/unmarshalling bus messages

	* python/introspect_parser.py: encode introspection data as UTF-8
	before passing the buffer into libxml2

	* test/python/test-client.py: add unicode test strings

	* test/data/valid-service-files/.cvsignore, test/python/.cvsignore:
	ignore generated python test files

1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298
2005-10-17  John (J5) Palmieri  <johnp@redhat.com>

	* glib/dbus-gvalue-utils.c (hash_free_from_gtype): handle gdouble
	and G_TYPE_VALUE_ARRAY (DBUS_TYPE_STRUCT)
	(gvalue_from_hash_value, hash_value_from_gvalue): handle gdouble

	* glib/dbus-gvalue.c (dbus_gvalue_to_signature): add missing
	DBUS_STRUCT_BEGIN_CHAR and DBUS_STRUCT_END_CHAR charaters
	when constructing struct signatures

	* python/_dbus.py (Bus): handle private connections using the
	private keyword in the constructor. defaults to private=False
	(Bus::close): new method to close a connection to the bus

	* python/dbus_bindings.pyx (Connection::close): renamed method
	was previously called disconnect
	(bus_get): now supports getting a private connection

	* python/proxies.py (ProxyMethod::__call__): check if ignore_reply
	keyword is set to True.  if it is, execute the method without waiting
	for a reply
	(ProxyObject::_introspect_execute_queue): new method for executing
	all the pending methods that were waiting for the introspect to
	finish.  this is called when introspect either succeeds or fails
	(ProxyObject::_introspect_error_handler): call queued methods

1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315
2005-10-14  John (J5) Palmieri  <johnp@redhat.com>

	* python/dbus_bindings.pyx (MessageIter::append_strict): check for
	STRUCT_BEGIN not TYPE_STRUCT in indicate we are marshalling a struct

	* python/service.py (Object::_message_cb): handle exceptions correctly
	by sending them over the wire to the calling app.  This makes sure
	the client returns immediately instead of waiting the 15 seconds to
	timeout.

	* test/python/test-client.py (TestDBusBindings::testBenchmarkIntrospect): 
	Add a test to benchmark how long it takes to introspect a service and 
	call a method which returns a large element (pretty fast)

	* test/python/test-service.py (TestObject::GetComplexArray): new test 
	method which pushes a lot of data

1316 1317
2005-10-13  John (J5) Palmieri  <johnp@redhat.com>

1318 1319
	* python/service.py(ObjectType::_reflect_on_signal, _reflect_on_method): 	
	reclaim memory outside of the loop and use del istead of just setting
1320 1321
	the key to None

1322 1323
2005-10-13  John (J5) Palmieri  <johnp@redhat.com>

1324 1325 1326 1327 1328 1329
	* python/service.py (ObjectType::_reflect_on_signal): Always close
	signal tag even when there are no arguments

2005-10-13  John (J5) Palmieri  <johnp@redhat.com>

	* configure.in: Set mono, mono-docs and Qt3 to default
1330 1331 1332 1333
	to no instead of auto when building.  These bindings do not
	have full time maintainers and will not be supported for the
	1.0 release.

1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352
2005-10-12  John (J5) Palmieri  <johnp@redhat.com>

	patches from Michael Krivoruchko <misha at sun.com>: 
	
	* dbus/dbus-connection.c (_dbus_connection_queue_received_message_link,
	_dbus_connection_message_sent, 
	_dbus_connection_send_preallocated_unlocked_no_update, 
	_dbus_connection_pop_message_link_unlocked): handle the case when path 
	is NULL when calling _dbus_verbose

	* configure.in: check for functions getpeerucred and getpeereid

	* dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): provides 
	support of auth EXTERNAL on Solaris 10+ (getpeerucred), FreeBSD 4.6+, 
	OpenBSD 3.0+ and FreeBSD 5.0+ as well as MacOSX 10.2+ (getpeereid). 
	Patch was only tested on Solaris 10 x86 so it might be issues
	with other platforms (i.e. BSDs and MacOSX)
	

1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398
2005-10-05  John (J5) Palmieri  <johnp@redhat.com>

	* glib/dbus-gvalue.c (marshal_variant): call _dbus_gvalue_marshal 
	instead of marshal basic so we can handle recursive types in a variant

	* test/glib/test-dbus-glib.c: Add test for marshaling recurive types
	in variants

	* test/glib/test-service-glib.c, test-service-glib.xml
	(my_object_echo_variant [EchoVariant], 
	my_object_process_variant_of_array_of_ints123
	[ProcessVariantOfArrayOfInts123]): 
	Add two test methods

	* python/introspect_parser.py: New module for parsing introspect
	data.

	* python/dbus_bindings.pyx:
	(various places): when throwing errors fix to use errormsg instead 
	of message local variable because Pyrex can get confused with other 
	message variables (initial patch by Robert McQueen 
	<robert.mcqueen at collabora.co.uk>)
	(MessageIter::parse_signature_block): new method for getting the next
	block in a signiture.
	(MessageIter::append_strict): new method for appending values strictly
	using the passed in signature instead of guessing at the type
	(MessageItter:: append_dict, append_struct, append_array): use 
	signatures to marshal children if the signature is available
	
	* python/exceptions.py (IntrospectionParserException): new exception

	* python/proxies.py (ProxyMethod::__call__): Marshal args with 
	introspected signatures if available, else we fall back to the
	old way of doing things.
	(ProxyObject::_introspect_reply_handler ): parse introspection data
	
	* python/service.py (ObjectType::_reflect_on_method): Properly
	terminate <method> if there are no args in the reflection data

	* test/python/test-client.py: add tests for talking with the GLib
	test server.  This gives us better coverage for introspection since
	python to python will always generate arguments as variants.  It also
	allows us to test the robustness of the GLib bindings and interlanguage
	communications.

	
1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414
2005-10-03  John (J5) Palmieri  <johnp@redhat.com>

	* bus/driver.c (bus_driver_handle_introspect): Add signals
	to the introspect data. (patch from Daniel P. Berrange 
	<dan at berrange.com>)

	* bus/dispatch.c (check_existent_ping): Add testcase for Ping
	
	* dbus/dbus-connection.c (_dbus_connection_peer_filter,
	_dbus_connection_run_builtin_filters): Changed these to
	be unlock_no_update functions and call 
	_dbus_connection_send_unlocked_no_update instead of
	dbus_connection_send to avoid locking errors.
	
	* doc/TODO: Removed the make Ping test TODO
	
1415 1416 1417 1418 1419 1420
2005-09-26  John (J5) Palmieri  <johnp@redhat.com>

	* dbus/Python.pyx: Fixed memory leaks when throwing errors.
	We now copy the message from a DBusError and then free 
	the error object befor throwing the error

1421 1422 1423 1424
	* glib/dbus-glib-tool.c: removed extra comma at the end of the
	DBusBindingOutputMode enum which was causing a warning.
	#include <time.h> so using time_t is explicitly defined

1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442
2005-09-26  John (J5) Palmieri  <johnp@redhat.com>

	* Integrate patches from Lennart Poettering <mzsqb at 0pointer.de>:
	- dbus/dbus-bus.c
	(internal_bus_get): new method that take over the heavy lifting
	of dbus_bus_get and adds the ability to get a private connection
	to the bus
	(dbus_bus_get): wrapper to internal_bus_get that provides the same
	interface as in previous versions
	(dbus_bus_get_private): new method that is a wrapper to 
	internal_bus_get to get a private connection to the bus

	- dbus/dbus-bus.h
	(dbus_bus_get_private): add as a public libdbus interface

	- dbus-1.pc.in: output system_bus_default_address and 
	sysconfdir variables so apps can use them when compiling

Harald Fernengel's avatar
Harald Fernengel committed
1443 1444 1445
2005-09-23  Harald Fernengel  <harry@kdevelop.org>
	* dbus/qt: New Qt bindings

1446 1447 1448 1449 1450 1451
2005-09-12  Waldo Bastian  <bastian@kde.org>

	* dbus/dbus-marshal-validate.c,
	doc/dbus-specification.xml, test/Makefile.am,
	test/test-names.c: allow hyphens in bus names.

1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492
2005-09-11  Mark McLoughlin  <mark@skynet.ie>

	* test/data/auth/fallback.auth-script: we don't
	retry the EXTERNAL method when we know its going
	to fail anymore.

2005-09-11  Mark McLoughlin  <mark@skynet.ie>

	* dbus/dbus-connection-internal.h: rename
	(add|remove|toggle)_(watch|timeout) to unlocked()
	
	* dbus/dbus-connection.c: ditto.
	
	* dbus/dbus-timeout.c, dbus/dbus-transport-unix.c:
	Update some callers for the renaming.

2005-09-10  Mark McLoughlin  <mark@skynet.ie>

	* dbus/dbus-auth.c: (record_mechanisms): don't
	retry the first auth mechanism because we know
	we're just going to get rejected again.
	
	* dbus/dbus-keyring.c: (_dbus_keyring_reload):
	Fix thinko ... and what a nasty little bugger to
	track down you were ...

	* dbus/dbus-connection.c:
	(_dbus_connection_add_watch),
	(_dbus_connection_remove_watch): add note about
	these needing the connection to be locked.
	(_dbus_connection_get_dispatch_status_unlocked):
	set status to DATA_REMAINS when we queue the
	disconnected message.
	
	* bus/dispatch.c:
	(bus_dispatch): fix warning.
	(check_existent_service_no_auto_start):
	Expect ChildSignaled error too.
	(check_existent_hello_from_self): fix another
	couple of warnings.
	
1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504
2005-09-08  Joe Shaw  <joeshaw@novell.com>

	Patches from James Willcox <snorp@snorp.net>

	* mono/Makefile.am: Add Int16.cs and UInt16.cs

	* mono/DBusType/Array.cs: Handle multidimensional arrays, and
	support array "out" parameters.

	* mono/DBusType/Int16.cs, mono/DBusType/UInt16.cs: New files,
	for 16-bit int support.

John Palmieri's avatar
John Palmieri committed
1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536
2005-09-06  John (J5) Palmieri  <johnp@redhat.com>

	* Released 0.50

	* Patch from Steve Grubb:
	- bus/activation.c (bus_activation_service_reload_test): clean up
	some indentation
	- dbus/dbus-keyring.c (_dbus_keyring_reload): fix conditional 
	- dbus/dbus-message-factory.c (generate_special): fix a couple of
	buffer overflows in the test suite.  This is non critical because
	it can not be exploited and this code is only run when doing a 
	make check.

	* Patch from Yaakov Selkowitz: Build fixes for Cygwin
	- configure.in: Don't check and link against kdecore, only qt headers
	- dbus/Makefile.am: Add -no-undefined to libdbus_1_la_LDFLAGS
	- gcj/org/freedesktop/dbus/Makefile.am:
	add libdbus_gcj_1_la_LDFLAGS = -no-undefined
	- glib/Makefile.am: Add -no-undefined to libdbus_glib_1_la_LDFLAGS
	and $(DBUS_GLIB_LIBS) to dbus_binding_tool_LDADD
	- qt/Makefile.am: Add -no-undefined to libdbus_qt_1_la_LDFLAGS
	- tools/Makefile.am: Add platform extentions to binaries 
	(i.e. .exe on windows)

	* configure.in: 
	- Make it so if no suitable version of python is found we only 
	disable building python instead of exiting the configure script
	- Require version 2.4 of glib for glib bindings
	- Up version to 0.50

	* python/__init__.py: Sync version with libdbus to (0,50,0)
	
1537 1538 1539 1540 1541 1542 1543 1544 1545
2005-09-05  Olivier Andrieu  <oliv__a@users.sourceforge.net>

	* dbus/dbus-object-tree.c (find_subtree_recurse):
	a couple of optimizations (bug #710):
	- do a binary search in the tree
	- insert a new child at the right place directly, no need for
	  qsort anymore
	- do the "double alloc" thing when allocating children

1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583
2005-08-31  John (J5) Palmieri  <johnp@redhat.com>

	* python/Makefile.am: Break on pyrexc errors instead of ignoring them

	* python/dbus_bindings.pyx: Memory management foo
	(global): remove hacky _user_data_references global list
	(GIL_safe_cunregister_function_handler): userdata now stuffed into
	tuples. Unref user_data
	(GIL_safe_cmessage_function_handler): userdata now stuffed into tuples
	(Connection::__del__): Remove and replace with __dealloc__ method
	(Connection::add_filter): Stuff user_data into a tuple.  Use Py_INCREF
	to keep tuple from being deallocated instead of the global var hack
	(Connection::register_object_path): Stuff user_data into a tuple.
	Use Py_INCREF to keep tuple from being deallocated instead of the 
	global var hack
	(Connection::register_fallback): Stuff user_data into a tuple.
	Use Py_INCREF to keep tuple from being deallocated instead of the 
	global var hack
	(GIL_safe_pending_call_notification): Don't unref the message
	because it gets unreffed when going out of scope.  Py_XDECREF
	the user_data
	(PendingCall::__del__): Remove and replace with __dealloc__ method
	(PendingCall::set_notify): ref the pending call because we will
	need it to stick around for when the notify callback gets called
	(Message::__del__): Remove and replace with __dealloc__ method

	* python/dbus_glib_bindings.pyx (init_gthreads): Changed to 
	gthreads_init to match up with the dbus call

	* python/glib.py (init_threads): Changed to threads_init to match
	up with gobject.threads_init().  init_threads is kept for backwards
	compat but will most likely be deprecated in the future

	* test/python/test-client.py: 
	- revamp to use Python's unittest functionality
	- add async call tests
	- setup threads in glib and dbus so we make sure locks are working
	
John Palmieri's avatar
John Palmieri committed
1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596
2005-08-30  John (J5) Palmieri  <johnp@redhat.com>

	* python/dbus_bindings.pyx 
	(_pending_call_notification, cunregister_function_handler, 
	cmessage_function_handler): All callback functions have been rearranged 
	to workaround a bug in Pyrex when working with the GIL which is Python's 
	global lock when dealing with threads.  They have been split into
	a wrapper function (which assumes the name of the old function) and
	a _GIL_safe_<function name> function which contains the functionality
	of the old function.  This ensures that Pyrex does not write code
	the lock is released.
	

1597 1598 1599 1600 1601
2005-08-30  John (J5) Palmieri  <johnp@redhat.com>

	* python/dbus_bindings.pyx (_pending_call_notification): Obtain the
	GIL global lock when calling back into Python

John Palmieri's avatar
John Palmieri committed
1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614
2005-08-29  John (J5) Palmieri  <johnp@redhat.com>

	* Release 0.36.2

	* Add Havoc's patch that never got applied to HEAD (Bug #2436):

	* bus/policy.c (bus_policy_allow_user): change default "user is
	allowed" to be "user has same uid as the bus itself"; any
	allow/deny rules will override.

	* bus/session.conf.in: don't allow all users, since now by default
	the user that ran the bus can connect.

1615 1616 1617 1618 1619 1620
2005-08-26  Colin Walters  <walters@verbum.org>

	* tools/dbus-print-message.c (print_message): Flush stdout
	after printing a message, so that redirecting to a file, then
	hitting Ctrl-C works.

1621 1622 1623 1624 1625 1626 1627
2005-08-25  John (J5) Palmieri  <johnp@redhat.com>

	* python/dbus_bindings.pyx: Tracked down a major memleak and fixed it
	(EmptyMessage): new class that subclasses Message.  This is a workaround
	to a Pyrex bug that fails to call __del__ when the Message object goes out
	of scope.  For some reason subclassing Message fixes this bug
	(Bus::send_with_reply_and_block): use EmptyMessage instead of Message
1628 1629 1630 1631 1632
	- s/Message(_create=0)/EmptyMessage everywhere else
	
	* test/python/test-{server|client}.py: add the python/.libs directory
	to the lookup path so dbus_bindings and dbus_glib_bindings don't
	get picked up from the system
1633

1634 1635 1636 1637 1638
2005-08-25  Colin Walters  <walters@verbum.org>

	* glib/dbus-gproxy.c (dbus_g_proxy_call): Doc update, thanks
	to Ryan Lortie for the suggestion.

1639 1640 1641 1642 1643 1644 1645 1646
2005-08-24  John (J5) Palmieri  <johnp@redhat.com>

	* test/python: Add python regression test

	* configure.in: Add test/python/Makefile

	* test/Makefile.am: Add the python directory to SUBDIRS

1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660
2005-08-24  John (J5) Palmieri  <johnp@redhat.com>

	* Release 0.36.1

	* python/_dbus.py: 
	(Interface::connect_to_signal): propigate keywords for match on args
	(Bus::add_signal_receiver): Fix typo s/dbus_inteface/dbus_interface

	* python/proxies.py (ProxyObject::connect_to_signal):
	propigate keywords for match on args

	* Makefile.am: point everything to pyexecdir since python borks
	on multilib

John Palmieri's avatar
John Palmieri committed
1661 1662 1663 1664
2005-08-23  John (J5) Palmieri  <johnp@redhat.com>

	* Release 0.36

1665 1666
2005-08-23  Colin Walters  <walters@verbum.org>

Colin Walters's avatar
Colin Walters committed
1667
	* test/glib/Makefile.am: Don't multiply-define EXTRA_DIST.
1668

1669 1670 1671 1672 1673 1674
2005-08-23  John (J5) Palmieri  <johnp@redhat.com>

	* python/dbus_glib_bindings.pyx: reorder imports and c definitions
	to fix some wranings. We now use dbus_bindings.DBusConnection instead
	of defining DBusConnection ourselves.

1675 1676 1677 1678 1679 1680 1681
2005-08-18  John (J5) Palmieri  <johnp@redhat.com>

	* python/dbus.pth: New path file to fix up problems when installing
	c libraries to lib64 and python files to lib.

	* python/Makefile.am: install dbus.pth in the correct spot

1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723
2005-08-17  John (J5) Palmieri  <johnp@redhat.com>
	* ChangeLog: clean up my last entry a bit

	* doc/introspect.xsl: New stylesheet for converting introspection data
	into browser renderable xhtml. Contributed by Lennart Poettering.

	* doc/introspect.dtd: Fixups in the introspect format from Lennart
	Poettering.

	* doc/dbus-tutorial.xml: 
	- Add Colin Walter to the Authors section for authoring the GLib
	section
	- Add descriptions of the new signature and type functionality
	in the Python complex type mapping section
	- Add a sidenote on the new args matching functionality in 
	the Python bindings
	- Fixed up some of the examples to use the gobject.MainLoop
	instead of gtk.main
	
	* python/_dbus.py:
	(Bus::_create_args_dict): New. Converts a hash of arg matches
	to a more useable format
	(Bus::add_signal_receiver): add a **keywords parameter for catching
	arg match parameters
	(Bus::remove_signal_receiver): add a **keywords parameter for catching
	arg match parameters
	
	* python/matchrules.py:
	(MatchTree::exec_matches): Check for arg matches
	(SignalMatchRule::add_args_match): New method
	(SignalMatchRule::execute): Added args_list parameter as an optimization
	so we don't have to marshal the args more than once
	(SignalMatchRule::match_args_from_list): New method that checks to see
	if the rule's arg matches match an argument list.  Only arguments
	set in the rule are checked.
	(SignalMatchRule::match_args_from_rule): New method that checks to see
	if the rule's arg matches match another rule's.  All args have to match
	in order for this method to return true.  If either rule has more args
	then it is not a match.
	(SignalMatchRule::is_match): Add args match
	(SignalMatchRule::repr): Add args to the final output if they exist

1724 1725 1726 1727 1728 1729
2005-08-17  Ross Burton  <ross@burtonini.com>

	* glib/dbus-gproxy.c:
	(dbus_g_proxy_call_no_reply): unref the message once sent.
	(dbus_g_proxy_call): protect against NULL proxy.

1730 1731 1732 1733 1734 1735 1736
2005-08-16  John (J5) Palmieri  <johnp@redhat.com>

	* python/__init__.py: Version updated (0, 43, 0)
	
	* python/dbus_bindings.pyx: 
	- Fixed type objects to have self passed into __init__
	- Added the Variant type
1737 1738 1739 1740
	- Add the ability to specify types or signatures for Array, Variant 
	and Dictionary
	(Connection::send_with_reply_handlers): return a PendingCall object
	(_pending_call_notification): handle the case when an error is returned 
1741
	without an error message in the body
1742 1743 1744 1745 1746 1747 1748 1749
	(MessageIter::get_boolean): return True or False instead of an integer
	(MessageIter::python_value_to_dbus_sig): add direct checking of types 
	and add checks for objects with embeded signatures or types (Array, 
	Variant and Dictionary)
	(MessageIter::append_byte): handle case when the value is a dbus.Byte
	(MessageIter::append_dict): handle embeded types or signatures
	(MessageIter::append_array): handle embeded types or signatures
	(MessageIter::append_variant): new method
1750 1751
	
	* python/proxies.py:
1752 1753 1754 1755 1756 1757
	(DeferedMethod): New. Dummy executable object used when queuing calls 
	blocking on introspection data
	(ProxyMethod::__call__): add the timeout keyword for specifying longer 
	or shorter timeouts for method calls
	(ProxyObject): Add first pass at an introspection state machine
	(ProxyObject::__init__): Add introspect keyword for turing off an on 
1758
	introspection. 
1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770
	(ProxyObject::_Introspect): Internal Introspect call that bypasses 
	the usual mechanisms for sending messages.  This is to avoid a deadlock
	where the Intospect call would be queued waiting for the Introspect 
	call to finish ;-)
	(ProxyObject::_introspect_reply_handler): New.  This method is called 
	when introspection returns with no error
	(ProxyObject::_introspect_error_handler): New.  This method is called 
	when introspection encounters an error
	(ProxyObject::__getattr__): Code to handle different introspection 
	states.  Queue async calls or block blocking calls if we are 
	introspecting.  Pass through as normal if we are not or are done with 
	introspecting.
1771 1772 1773 1774 1775
	
	* python/service.py: Import signal and method from decorators.py

	* python/types.py: Add Variant type

1776 1777 1778 1779 1780
2005-08-16  Colin Walters  <walters@verbum.org>

	* glib/dbus-gobject.c (dbus_set_g_error): Don't lose if the
	DBusError message is NULL.

1781 1782 1783 1784 1785
2005-08-09  Havoc Pennington  <hp@redhat.com>

	* dbus/dbus-errors.c: apply patch from Timo Teras to make a
	malloc'd copy of the name parameter

1786 1787 1788 1789 1790
2005-08-09  Havoc Pennington  <hp@redhat.com>

	* dbus/dbus-message.c (dbus_message_set_reply_serial): print
	warning if the reply serial is set to 0

1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824
2005-08-04  Colin Walters  <walters@verbum.org>

	* glib/dbus-gvalue-utils.h (_dbus_g_type_specialized_builtins_init)
	(dbus_g_type_is_fixed, dbus_g_type_fixed_get_size)
	(dbus_gvalue_set_from_pointer, dbus_g_hash_table_value_foreach)
	(dbus_g_hash_table_insert_values, dbus_g_hash_table_insert_steal_values)
	(dbus_gtype_is_valid_hash_key, dbus_gtype_is_valid_hash_value)
	(dbus_g_hash_func_from_gtype, dbus_g_hash_free_from_gtype)
	(dbus_g_hash_equal_from_gtype, dbus_gvalue_stor, dbus_gvalue_take):
	* glib/dbus-gvalue.h (dbus_g_value_types_init)
	(dbus_gvalue_demarshal, dbus_gvalue_demarshal_variant)
	(dbus_gvalue_demarshal_message, dbus_gvalue_marshal):
	
	Prefix name with _ to ensure they're not exported.  All callers
	updated.

	* glib/dbus-gvalue.c (typecode_to_gtype)
	(dbus_typecode_maps_to_basic, basic_typecode_to_gtype)
	(signature_iter_to_g_type_dict)
	(signature_iter_to_g_type_array)
	(dbus_gtype_from_signature_iter, dbus_gtype_from_signature)
	(dbus_gtypes_from_arg_signature):
	Move to dbus-gsignature.c.

	* glib/dbus-binding-tool-glib.c (dbus_binding_tool_output_glib_server): Call
	dbus_g_type_specialized_builtins_init instead of dbus_g_value_types_init.
	(dbus_binding_tool_output_glib_client): Ditto.

	* glib/Makefile.am (DBUS_GLIB_INTERNALS): Add dbus-gsignature.c
	and dbus-gsignature.h

	* test/glib/test-service-glib.c (my_object_rec_arrays): Delete
	unused variable.

1825 1826 1827 1828 1829
2005-08-03  Colin Walters  <walters@verbum.org>

	* glib/dbus-gobject.c: Add tests on hardcoded object info; this should
	catch any incompatible changes accidentally made.

1830 1831 1832 1833 1834 1835 1836 1837
2005-08-03  Havoc Pennington  <hp@redhat.com>

	* dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): fix
	typo, from Julien Puydt

	* bus/connection.c (bus_connection_disconnected): we were always
	doing a wait_for_memory due to a buggy loop, found by Timo Hoenig

1838 1839 1840 1841
2005-08-01  Colin Walters  <walters@verbum.org>

	Patch from Joe Markus Clarke:	
	
1842 1843 1844 1845 1846 1847 1848
	* glib/dbus-gidl.c (property_info_unref, arg_info_unref): Fix
	use-after-free.

2005-08-01  Colin Walters  <walters@verbum.org>
	
	Patch from Joe Markus Clarke:	
	
1849 1850 1851 1852
	* tools/dbus-send.c (main): 
	
	Don't use C99 style initializers (bug #3933).
	
1853 1854 1855 1856 1857 1858 1859 1860 1861 1862
2005-08-01  Colin Walters  <walters@verbum.org>

	Patch from Joe Markus Clarke:	

	* glib/dbus-gvalue.c (dbus_g_value_types_init): 
	* glib/dbus-gvalue-utils.c (dbus_g_type_specialized_builtins_init) 
	* glib/dbus-gobject.c (write_interface):

	Don't use C99 style initializers (bug #3933).

1863 1864 1865 1866 1867
2005-07-31  Havoc Pennington  <hp@redhat.com>

	* tools/dbus-viewer.c (load_child_nodes): fix invocation of
	dbus_g_proxy_call, fix from Piotr Zielinski bug #3920

1868 1869 1870 1871
2005-07-30  Havoc Pennington  <hp@redhat.com>

	* fix a bunch of Doxygen warnings and mistakes

1872 1873 1874 1875 1876
2005-07-30  Havoc Pennington  <hp@redhat.com>

	* dbus/dbus-sysdeps.c (_dbus_string_parse_uint): remove #ifdef
	DBUS_BUILD_TESTS since it's now used in production code

1877 1878 1879 1880 1881
2005-07-29  Havoc Pennington  <hp@redhat.com>

	* test/glib/test-profile.c (write_junk): initialize the junk
	buffer so valgrind doesn't have a breakdown

1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893
2005-07-29  Havoc Pennington  <hp@redhat.com>

	* bus/signals.c (bus_signals_test): add match_rule_equal() tests
	(match_rule_matches): remove unused arg
	(test_matching): add tests for match_rule_matches()

	* bus/signals.c (bus_match_rule_parse_arg_match): add ability to
	do arg0='foo' arg5='bar' in the match rules
	(match_rule_matches): don't match if the arg0='foo' doesn't match.

	* dbus/dbus-protocol.h (DBUS_MAXIMUM_MATCH_RULE_ARG_NUMBER): add this

Ross Burton's avatar
Ross Burton committed
1894 1895 1896 1897 1898
2005-07-29  Ross Burton  <ross@openedhand.com>

	* dbus/dbus-connection.c:
	Don't create a DBusCondVar which is never used.

Ross Burton's avatar
Ross Burton committed
1899 1900 1901 1902 1903
2005-07-27  Ross Burton  <ross@openedhand.com>

	* dbus/dbus-message.c:
	Reduce the size of the maximum cached message to 10K.

1904 1905 1906 1907 1908
2005-07-25  Ross Burton  <ross@openedhand.com>

	* glib/dbus-gproxy.c:
	Remove matches when all proxies are unregistered.

1909 1910 1911 1912 1913 1914 1915 1916 1917
2005-07-24  Colin Walters  <walters@verbum.org>

	* glib/dbus-gvalue.c (signature_iter_to_g_type_array): Don't require
	typedata; recursive arrays won't have it.

	* test/glib/test-dbus-glib.c:
	* test/glib/test-service-glib.c:
	* test/glib/test-service-glib.xml: Add recursive arrays tests.
	
1918 1919 1920 1921 1922 1923 1924
2005-07-20  John (J5) Palmieir  <johnp@redhat.com>

	* python/_dbus.py, _util.py, decorators.py, extract.py, matchrules.py.
	proxies.py, service.py: Cleanup of code after running it through the
	pyflakes code checker mostly dealing with undefined names.  
	(Bug #3828, Patch from Anthony Baxter <anthony@interlink.com.au>)

1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961
2005-07-17  John (J5) Palmieri  <johnp@redhat.com>

	* NEWS: Update to 0.35.2

2005-07-17  John (J5) Palmieri  <johnp@redhat.com>

	* python/_dbus.py: Remove import of the dbus.services
	module as it no longer exists (patch from Dimitur Kirov)

	* python/service.py (Object::__init__): Fixed typo
	s/name/bus_name (patch from Dimitur Kirov)

	* python/examples/example-signal-emitter.py: import dbus.glib
	to get the main loop and use glib mainloop instead of gtk so
	X doesn't have to be running.

	* python/examples/example-signal-recipient.py: import dbus.glib
	to get the main loop and use glib mainloop instead of gtk so
	X doesn't have to be running. Import the decorators module
	directly.

	* test/glib/Makefile.am:  Added DIST_EXTRA files that distcheck
	didn't pick up on but are needed to build

	* configure.in: upped version to 0.35.2

	* bus/driver.c, bus/selinux.c, bus/selinux.h, dbus/dbus-protocol.h:
	added Colin Walters' SELinux API rename patch from head 
	s/unix sercurity context/selinux security context/

2005-07-16  John (J5) Palmieri  <johnp@redhat.com>

	* python/Makefile.am: dbus_binding.pxd.in should be included 
	in EXTRA_DIST not dbus_binding.pxd
	fix up $(srcdir) hopefully for the last time

	* NEWS: Update to 0.35.1
Colin Walters's avatar
Colin Walters committed
1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981

2005-07-16  Colin Walters  <walters@verbum.org>

	* bus/driver.c (bus_driver_handle_get_connection_selinux_security_context): Renamed
	from bus_driver_handle_get_connection_unix_security_context.  Update for
	error usage.
	(message_handlers): Update for renames.

	* bus/selinux.c (bus_selinux_allows_send): Handle OOM on
	_dbus_string_init failure correctly.
	(bus_selinux_append_context): Convert SID to context.  Append it
	as a byte array.
	(bus_selinux_shutdown): Handle the case where bus_selinux_full_init
	hasn't been called.

	* bus/selinux.h: Update prototype.

	* dbus/dbus-protocol.h (DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN): Renamed
	from DBUS_ERROR_UNIX_SECURITY_CONTEXT_UNKNOWN.

1982 1983 1984 1985
2005-07-15  Colin Walters  <walters@verbum.org>

	* doc/TODO: Add note about convenience wrappers.

John Palmieri's avatar
John Palmieri committed
1986 1987 1988 1989
2005-07-15  John (J5) Palmieri  <johnp@redhat.com>

	* NEWS: Update to 0.35

1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003
2005-07-15  John (J5) Palmieri  <johnp@redhat.com>

	* glib/Makefile.am: Add make-dbus-glib-error-switch.sh to EXTRA_DIST
	so distcheck doesn't fail

	* glib/examples/Makefile.am: Add example-service.xml and 
	example-signal-emitter.xml to EXTRA_DIST so distcheck doesn't fail

	* glib/examples/statemachine/Makefile.am: Add statemachine.xml and
	statemachine-server.xml to EXTRA_DIST so distcheck doesn't fail

	* python/Makefile.am: Preprend $(srcdir)/ to source files so the
	compiler looks in the right places during distcheck

2004 2005 2006 2007 2008
2005-07-15  John (J5) Palmieri  <johnp@redhat.com>

	* glib/example/Makefile.am: Fix a typo which cause make distcheck
	to fail

2009 2010 2011 2012 2013 2014
2005-07-15  John (J5) Palmieri  <johnp@redhat.com>

	* python/examples/example-service.py,
	python/examples/example-signal-emitter.py: Fixed up examples
	for API changes

2015 2016 2017 2018 2019
2005-07-15  John (J5) Palmieri  <johnp@redhat.com>

	* python/__init__.py: Upped to version (0,42,0) because of
	the API change

2020 2021 2022 2023 2024 2025 2026 2027 2028
2005-07-15  John (J5) Palmieri  <johnp@redhat.com>

	* ChangeLog: fix date in last entry

	* configure.in, bus/system.conf.in: add the ability to configure 
	the system bus user at compiletime with the --with-dbus-user flag
	(patch from Kristof Vansant)

2005-07-15  John (J5) Palmieri  <johnp@redhat.com>
2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040

	* bus/dispatch.c, test/test-service.c: Add testcase
	for sending messages to oneself (TODO item).

	* python/service.py (class Object): Swap ordering of bus_name 
	and object_path parameters to better support inheritance.

	* doc/dbus-tutorial.xml: change Python docs to reflect change
	in parameter ordering and fix the inheritance section.

	* doc/TODO: remove sending message to oneself TODO item

2041 2042 2043 2044 2045
2005-07-15  Ross Burton  <ross@openedhand.com>

	* glib/dbus-gproxy.c:
	Fix a leak when calling methods via the proxy.

2046 2047 2048 2049 2050
2005-07-15  Colin Walters  <walters@verbum.org>

	* bus/selinux.c (bus_selinux_append_context): Wrap in
	HAVE_SELINUX.

2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061
2005-07-14  John (J5) Palmieri  <johnp@redhat.com>

	* python/_dbus.py (Bus::remove_signal_receiver):
	don't add a callback to the match if none has been passed in
	
	* python/matchrules.py (SignalMatchTree::remove): if the rule
	being matched does not have a callback treat it as a wildcard
	fix matching logic

	* doc/dbus-tutorial.xml: Add Python tutorial

2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074
2005-07-14  Colin Walters  <walters@verbum.org>

	* bus/driver.c
	(bus_driver_handle_get_connection_unix_security_context): New function.
	(message_handlers): Add.

	* bus/selinux.c (bus_selinux_append_context): New function; appends
	security context to message.

	* bus/selinux.h: Prototype.

	* dbus/dbus-protocol.h (DBUS_ERROR_UNIX_SECURITY_CONTEXT_UNKNOWN): New.

2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108
2005-07-14  John (J5) Palmieri  <johnp@redhat.com>

	* bus/activation.c: clean up all tabs to be 8 spaces 
	(bus_activation_activate_service): make sure we clean up
	if activation fails

	* bus/dispatch.c: clean up all tabs to be 8 spaces 
	(check_shell_fail_service_auto_start): New function
	tests to make sure we get fail properly when trying to auto start a service
	with a faulty command line
	(check_shell_service_success_auto_start): New function tests to make sure
	auto started services get the arguments on the command line

	* test/test-shell-service.c: Added service for testing auto-starting with 
	command line arguments

	* test/data/valid-service-files/debug-shell-echo-fail.service.in, 
	test/data/valid-service-files/debug-shell-echo-success.service.in:
	Added service files for testing auto-starting with command line arguments

	* */.cvsignore: added a bunch of generated files to various .cvsignore files

2005-07-14  Rodrigo Moya  <rodrigo@novell.com>

	* dbus/dbus-shell.[ch]: copy/pasted code from GLib.
	
	* dbus/Makefile.am: added new files to build.

	* bus/activation.c (bus_activation_activate_service): support
	activation commands with parameters.

	* test/shell-test.c: added test program for the shell parsing
	code.

2109 2110 2111 2112 2113
2005-07-13  David Zeuthen  <davidz@redhat.com>

	* tools/dbus-send.c (append_arg, type_from_name): Also support 16 and
	64 bit signed and unsigned parameters

2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124
2005-07-13  John (J5) Palmieri  <johnp@redhat.com>

	* python/.cvsignore: remove dbus_bindings.pyx, add dbus_bindings.pxd

	* python/service.py (class Name): renamed BusName to make it clearer
	what the object is for (a name on the bus)

	* python/examples/example-service.py,
	python/examples/example-signal-emitter.py: change the Name object to
	BusName

2125 2126 2127 2128 2129 2130
2005-07-12  Colin Walters  <walters@verbum.org>

	Patch from Jim Gettys <Jim.Gettys@hp.com>.

	* tools/dbus-launch.c: Include sys/select.h.

2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172
2005-07-12  John (J5) Palmieri  <johnp@redhat.com>
	* python/dbus_bindings.pyx.in: removed

	* python/dbus_bindings.pyx: Added.
	- Fixed some memleaks (patch from 
	Sean Meiners <sean.meiners@linspireinc.com>)
	- Broke out the #include "dbus_h_wrapper.h" and put it in its
	own pxd file (Pyrex definition)
	- Broke out glib dependancies into its own pyx module
	
	* python/dbus_bindings.pdx: Added.
	- Defines C class Connection for exporting to other modules

	* python/dbus_glib_bindings.pyx: Added.
	- New module to handle lowlevel dbus-glib mainloop integration

	* python/glib.py: Added.
	- Registers the glib mainloop when you import this module

	* python/services.py: Removed (renamed to service.py)
	
	* python/service.py: Added.
	- (class Server): renamed Name

	* python/__init__.py: Bump ro version (0,41,0)
	-don't import the decorators or service module
	by default.  These now reside in the dbus.service namespace

	* python/_dbus.py (Bus::__init__): Add code run the main loop 
	setup function on creation 

	* python/examples/example-service.py,
	python/examples/example-signal-emitter.py: update examples

	* python/examples/gconf-proxy-service.py,
	python/examples/gconf-proxy-service2.py: TODO fix these up

	* doc/TODO: Addition
	- Added a Python Bindings 1.0 section
	- added "Add match on args or match on details to match rules"


2173 2174 2175 2176 2177 2178 2179 2180 2181 2182
2005-07-12  Colin Walters  <walters@verbum.org>

	* glib/examples/statemachine/Makefile.am (statemachine-server-glue.h) 
	(statemachine-glue.h): 
	* glib/examples/Makefile.am (example-service-glue.h) 
	(example-signal-emitter-glue.h): 
	* glib/Makefile.am (dbus-glib-error-switch.h): 
	Add libtool --mode=execute so we use the built library instead
	of any installed one.

2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226
2005-07-11  Colin Walters  <walters@verbum.org>

	* glib/dbus-gvalue.c (struct _DBusGValue): Delete.
	(dbus_g_value_types_init): Remove assertion.
	(dbus_g_value_get_g_type, dbus_g_value_open)
	(dbus_g_value_iterator_get_values, dbus_g_value_get_signature)
	(dbus_g_value_copy, dbus_g_value_free): Delete unimplemented
	functions related to DBusGValue.  Now we marshal/demarshal
	structures as GValueArray.
	(dbus_gtype_from_signature_iter): Return G_TYPE_VALUE_ARRAY for
	structures.
	(signature_iter_to_g_type_array): Don't call
	signature_iter_to_g_type_struct.
	(signature_iter_to_g_type_struct): Delete.
	(dbus_gvalue_to_signature): Delete.
	(dbus_gvalue_to_signature): New function with same name as other
	one; we can convert structures to signatures.
	(demarshal_valuearray): New function.
	(get_type_demarshaller): Use it.
	(demarshal_recurse): Delete.
	(marshal_proxy): New function.
	(marshal_map): Warn if we can't determine signature from type.
	(marshal_collection_ptrarray): Ditto.
	(marshal_collection_array): Ditto.
	(get_type_marshaller): Use marshal_valuearray.
	(marshal_recurse): Delete.
	(_dbus_gvalue_test): Add some tests.

	* dbus/dbus-glib.h (struct _DBusGValueIterator): 
	(dbus_g_value_get_g_type, DBUS_TYPE_G_VALUE)
	(dbus_g_value_open, dbus_g_value_iterator_get_value)
	(dbus_g_value_iterator_get_values, dbus_g_value_iterator_recurse)
	(dbus_g_value_free): Remove prototypes.

	* glib/dbus-binding-tool-glib.c (dbus_g_type_get_lookup_function): Handle
	G_TYPE_VALUE_ARRAY.

	* glib/examples/example-service.c:
	* glib/examples/example-client.c: Implement GetTuple.

	* test/glib/test-dbus-glib.c:
	* test/glib/test-service-glib.c:
	* test/glib/test-service-glib.xml: Add structure tests.

2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264
2005-07-10  Colin Walters  <walters@verbum.org>

	* doc/TODO: Knock off some GLib items with this patch.

	* glib/dbus-gvalue-utils.c (_dbus_gtype_can_signal_error) 
	(_dbus_gvalue_signals_error): New functions.

	* glib/dbus-gvalue-utils.h: Prototype them.

	* glib/dbus-gobject.c (arg_iterate): Update to handle return vals
	and change to not output const/retval flags for input args.  All
	callers updated.
	(invoke_object_method): Refactor to handle return values.  Add
	some more comments in various places.  Remove debug g_print.

	* glib/dbus-binding-tool-glib.h (DBUS_GLIB_ANNOTATION_RETURNVAL): New.

	* glib/dbus-binding-tool-glib.c (dbus_g_type_get_marshal_name):
	Handle G_TYPE_NONE.
	(compute_gsignature): New function; refactored from code from
	compute_marshaller and compute_marshaller_name.  Enhance to
	handle return values and async ops more cleanly.  Update for
	async ops returning NONE instead of BOOLEAN.
	(compute_marshaller, compute_marshaller_name): Call compute_gsignature
	and output appropriate string.
	(generate_glue): Handle return value annotation.  Also don't dump
	constness flag for input arguments.

	* glib/Makefile.am (DBUS_GLIB_INTERNALS): New variable; contains
	files shared between installed library and utilities.
	(libdbus_glib_1_la_SOURCES): Move some stuf into DBUS_GLIB_INTERNALS.
	(libdbus_gtool_la_SOURCES): Suck in DBUS_GLIB_INTERNALS so the
	binding tool can access gtype utility functions.

	* test/glib/test-service-glib.c: 
	* test/glib/test-service-glib.xml: 
	* test/glib/test-dbus-glib.c: Add some tests for return values.

2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281
2005-07-09  Colin Walters  <walters@verbum.org>

	* glib/dbus-gparser.c (parse_annotation): Add annotations to
	argument if available, not method.

	* glib/dbus-gobject.c (arg_iterate): More verbose warnings.
	(invoke_object_method): First, remove some redundant
	GValues (object_value, error_value) in favor of working on
	array directly.  Second, rework constness to be less buggy.
	Now we iterate directly over the argument metadata instead
	of parallel iterating over output signature and metadata.

	* glib/dbus-glib-tool.h: Add INVALID_ANNOTATION error.

	* glib/dbus-binding-tool-glib.c (generate_glue): Barf on const
	annotation on input args.
	
2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311
2005-07-09  Colin Walters  <walters@verbum.org>

	* glib/dbus-binding-tool-glib.h (DBUS_GLIB_ANNOTATION_CONST):
	Define.

	* glib/dbus-binding-tool-glib.c (generate_glue): Handle Const
	annotation.

	* glib/dbus-gobject.c (arg_iterate): Update to parse constval too.
	(method_dir_signature_from_object_info): Handle arg_iterate change.
	(write_interface): Ditto.
	(lookup_object_info): Don't barf if format_version is > 0.
	(invoke_object_method): Handle arg constness.

	* glib/dbus-gidl.c (struct ArgInfo): Add annotations.
	(arg_info_new): Create.
	(arg_info_unref): Destroy.
	(arg_info_get_annotations, arg_info_get_annotation) 
	(arg_info_add_annotation): New functions.

	* glib/dbus-gidl.h: Prototype them.

	* glib/dbus-gparser.c (parse_annotation): Allow annotations in
	args, disallow them in properties.
	(parse_annotation): Handle arg annotations.

	* test/glib/test-service-glib.xml: 
	* test/glib/test-service-glib.c: Update to make some methods
	const.

2312 2313 2314 2315 2316 2317 2318 2319 2320 2321