New
v2.0.0
Added
- Localization framework for error messages and other library strings, and
localizations for:
- French (fr-FR :fr:)
- German (de-DE :de:)
- Italian (it-IT :it:)
- Slovak (sk-SK :slovakia:)
- Swedish (sv-SE :sweden:)
- Thread safety for all functionality.
- The following functions:
stumpless_free_threadstumpless_get_element_countstumpless_get_target_namestumpless_get_target_default_app_namestumpless_get_target_default_msgidstumpless_param_to_stringstumpless_read_buffer
- The following C++ function bindings:
Entry.GetAppNameEntry.GetMessageEntry.GetMsgidVersion.Compare
Changed
- C++ namespace from
stumplesscpptostumpless. - Including
stumpless/config.hno longer definesWIN32_LEAN_AND_MEAN. - Facilities, options, and severities are now only available in the
stumpless/facility.h,stumpless/option.h, andstumpless/severity.hheaders, respectively. - Functions that return strings now require the caller to free the string
when it is no longer needed. Prior to this version these strings pointed
to internal character buffers that could not be modified. The functions
affected by this are:
stumpless_get_element_namestumpless_get_entry_app_namestumpless_get_entry_messagestumpless_get_entry_msgidstumpless_get_entry_param_value_by_indexstumpless_get_entry_param_value_by_namestumpless_get_param_namestumpless_get_param_name_by_indexstumpless_get_param_valuestumpless_get_param_value_by_indexstumpless_get_param_value_by_name
- The underlying buffer in buffer targets should no longer be read manually,
but should instead use the new
stumpless_read_bufferfunction as the only way to read messages. - All target open functions no longer require an options or default facility
parameter, resulting in much more concise code. If either of these fields
need to be adjusted on a target, use the
stumpless_set_optionandstumpless_set_default_facilityfunctions after the target has been created. - Facilities and severities are now
enums instead of preprocessor symbols.
Deprecated
stumpless_destroy_entryhas been deprecated in favor of the more descriptive and deliberatestumpless_destroy_entry_and_contentsandstumpless_destroy_entry_onlyfunctions in order to avoid unintentional memory leaks and use-after-free mistakes.stumpless_destroy_elementhas been deprecated in favor of the more descriptive and deliberatestumpless_destroy_element_and_contentsandstumpless_destroy_element_onlyfunctions in order to avoid unintentional memory leaks and use-after-free mistakes.
Fixed
- Memory leak in opening of network targets on systems using
sys/socket.hfor network services.
Removed
stumplessandvstumplessfunctions (usestumpandvstumpinstead).STUMPLESS_SEVERITY_WARNsymbol.