[patch] libhal - allow NULLs for DBusError parameters

John (J5) Palmieri johnp at redhat.com
Tue Feb 22 13:15:06 PST 2005


Most libhal methods now require an additional DBusError pointer to be
passed into the method.  Sometimes errors are expected in a world where
device can be added or removed at any moment.  These errors can be
handled based on the return value of the method and do not need the
extra verbosity that the dbus errors provide.  Attached is a patch which
allows a NULL value to be passed to all methods which read HAL keys
indicating that a dbus error is not needed thereby freeing the
programmer from having to initialize and free dbus error objects when
they are not needed.

-- 
John (J5) Palmieri
Associate Software Engineer
Desktop Group
Red Hat, Inc.
Blog: http://martianrock.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-allow-nulls-for-dbuserrors.patch
Type: text/x-patch
Size: 16993 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050222/e63de80e/hal-allow-nulls-for-dbuserrors.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal


More information about the Hal mailing list