diff options
author | Havoc Pennington <hp@redhat.com> | 2003-02-14 04:10:00 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-02-14 04:10:00 +0000 |
commit | b822fb3913e175ff7c139e064453d5d97e758db0 (patch) | |
tree | d2fec8d502d5d817269dc057759fd473e9ef62e2 | |
parent | 97ee8d189948c9f2c86464ca33f82e6daeaedc72 (diff) |
add @todo
-rw-r--r-- | dbus/dbus-errors.c | 8 | ||||
-rw-r--r-- | dbus/dbus-errors.h | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/dbus/dbus-errors.c b/dbus/dbus-errors.c index 9c178d84..3df58da0 100644 --- a/dbus/dbus-errors.c +++ b/dbus/dbus-errors.c @@ -126,6 +126,10 @@ dbus_result_to_string (DBusResultCode code) /** * Initializes a DBusError structure. + * + * @todo calling dbus_error_init() in here is no good, + * for the same reason a GError* has to be set to NULL + * before you pass it in. * * @param error the DBusError. */ @@ -166,6 +170,10 @@ dbus_error_free (DBusError *error) * Assigns an error name and message to a DBusError. * Does nothing if error is #NULL. * + * @todo calling dbus_error_init() in here is no good, + * for the same reason a GError* has to be set to NULL + * before you pass it in. + * * @param error the error. * @param name the error name (not copied!!!) * @param message the error message (not copied!!!) diff --git a/dbus/dbus-errors.h b/dbus/dbus-errors.h index 55e2c315..45cedc54 100644 --- a/dbus/dbus-errors.h +++ b/dbus/dbus-errors.h @@ -76,9 +76,7 @@ dbus_bool_t dbus_set_error (DBusError *error, ...); void dbus_set_error_const (DBusError *error, const char *name, - const char *message); - - + const char *message); void dbus_set_result (DBusResultCode *code_address, DBusResultCode code); |