diff options
author | David Zeuthen <david@fubar.dk> | 2003-12-22 15:59:38 +0000 |
---|---|---|
committer | David Zeuthen <david@fubar.dk> | 2003-12-22 15:59:38 +0000 |
commit | 7080c3e0187d08088d0ab0a06bff05279d6ae5d1 (patch) | |
tree | 46e55aebc6674d4ae1fa33f75033bfb3c11efb1f /libhal/libhal.h | |
parent | 0df7e0487b9eab59d968c4351d6f92ff4a64bced (diff) |
rename from hal_free_utf8 as this name makes more sense and we don't yet
support utf8 strings (hal_device_get_all_properties): fix memory leak
of dbus strings in multiple places. Note: we have to audit hald as well
:-/ (filter_func): fix dbus string memory leakages (hal_initialize):
add use_cache to preserve API compatilibility when we actually get
around to implement caching in libhal (hal_get_all_devices): add check
for oom (hal_device_get_property_type): fix dbus string memory leakages
change hal_initialize() prototype. Change name of hal_free_utf8() to
hal_free_string()
rename hal_[s|g]et_property program to hal-[s|g]et-property.
call hal_initialize with correct number of arguments. Fix string leakage
bug.
call hal_initialize with correct number of arguments
Call hal_free_string_array() instead of dbus_free_string_array()
(print_property): fix string leakage (main): call hal_initialize with
correct number of arguments
Diffstat (limited to 'libhal/libhal.h')
-rw-r--r-- | libhal/libhal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhal/libhal.h b/libhal/libhal.h index 8c54f542..73dfeb9e 100644 --- a/libhal/libhal.h +++ b/libhal/libhal.h @@ -123,7 +123,7 @@ typedef struct LibHalFunctions_s } LibHalFunctions; -int hal_initialize(const LibHalFunctions* functions); +int hal_initialize(const LibHalFunctions* functions, dbus_bool_t use_cache); int hal_shutdown(); @@ -193,7 +193,7 @@ double hal_psi_get_double(LibHalPropertySetIterator* iter); dbus_bool_t hal_psi_get_bool(LibHalPropertySetIterator* iter); void hal_free_string_array(char** str_array); -void hal_free_utf8(char* utf8_string); +void hal_free_string(char* str); char* hal_agent_new_device(); dbus_bool_t hal_agent_commit_to_gdl(const char* temp_udi, const char* udi); |