Skip to content

v2.0.0

Compare
Choose a tag to compare
@goatshriek goatshriek released this 02 Jan 14:42
· 165 commits to latest since this release
5594400

Added

  • Localization framework for error messages and other library strings, and
    localizations for:
    • French (fr-FR 🇫🇷)
    • German (de-DE 🇩🇪)
    • Italian (it-IT 🇮🇹)
    • Slovak (sk-SK 🇸🇰)
    • Swedish (sv-SE 🇸🇪)
  • Thread safety for all functionality.
  • The following functions:
    • stumpless_free_thread
    • stumpless_get_element_count
    • stumpless_get_target_name
    • stumpless_get_target_default_app_name
    • stumpless_get_target_default_msgid
    • stumpless_param_to_string
    • stumpless_read_buffer
  • The following C++ function bindings:
    • Entry.GetAppName
    • Entry.GetMessage
    • Entry.GetMsgid
    • Version.Compare

Changed

  • C++ namespace from stumplesscpp to stumpless.
  • Including stumpless/config.h no longer defines WIN32_LEAN_AND_MEAN.
  • Facilities, options, and severities are now only available in the
    stumpless/facility.h, stumpless/option.h, and stumpless/severity.h
    headers, 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_name
    • stumpless_get_entry_app_name
    • stumpless_get_entry_message
    • stumpless_get_entry_msgid
    • stumpless_get_entry_param_value_by_index
    • stumpless_get_entry_param_value_by_name
    • stumpless_get_param_name
    • stumpless_get_param_name_by_index
    • stumpless_get_param_value
    • stumpless_get_param_value_by_index
    • stumpless_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_buffer function 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_option and
    stumpless_set_default_facility functions after the target has been
    created.
  • Facilities and severities are now enums instead of preprocessor symbols.

Deprecated

  • stumpless_destroy_entry has been deprecated in favor of the more
    descriptive and deliberate stumpless_destroy_entry_and_contents and
    stumpless_destroy_entry_only functions in order to avoid unintentional
    memory leaks and use-after-free mistakes.
  • stumpless_destroy_element has been deprecated in favor of the more
    descriptive and deliberate stumpless_destroy_element_and_contents and
    stumpless_destroy_element_only functions 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.h
    for network services.

Removed

  • stumpless and vstumpless functions (use stump and vstump instead).
  • STUMPLESS_SEVERITY_WARN symbol.