Tags: libplctag/libplctag
Tags
Prerelease fix #401, fix #404, fix #405 (#406) * Make shutdown kill tags, add debug sanitizers, fix 401 (#402) * Bump version for next release. * Clean up packet debug output code. * dump out 16 bytes at a time for packet dumps. * Make tag_id 32 bit on all platforms. * Set the tag ID for debugging output. This could be called from a thread where this is not set correctly. * make plc_tag_shutdown() destroy all resources, synchronously. * Fix reuse of rc tag handle. Original pointer was not changed by rc_inc(). * Add shutdown test. * Add sanitizers to debug builds. * Remove unused variables. * Get this compiling under Windows. * Update and fix tag events (#403) * Add async tests for Modbus and Logix. * Run new async event tests. * Fire created event outside of the timeout loop. * Add async event callback logix test. * refactor tag tickler to raise events directly. * Refactoring how PLCTAG_EVENT_CREATED is handled for async tag creation. Trying to emit CREATED event when initial read is complete. * Suppress initial read from raising an event. * Add checks for unexpected read events before create is finished. * Fixed links to Go wrapper and rearranged links to promote the organization projects more. * fix minor typos in the README * Trying to get highlighting right for libplctag.NET project. * Use atexit() hook to call plc_tag_shutdown() to clean up all tag resources. * Hook Windows DLL exit function to call plc_tag_shutdown() to clean up all tag resources. * Try to fix up link errors due to address sanitizer and ubsan. * Clear warnings from GCC.
Fix 371, fix 378, fix 381 - string termination, extra delay, and inco… …rrect comparison (#383) * Add condition to fail tag creation when elem_count is a negative value. (#366) Fixes #365 * Change CI build to use Visual Studio 17 2022. Apparently version 16 is gone on Github? * Add checks to prevent out-of-bounds write on tag->encoded_name (#368) Fixes #367 * Update stable vs. unstable versions. * Bump version for next release. * Fix 378. Refactor condition var signal into common exit path of state SESSION_OPEN_SOCKET_START. * Fix 381. Incorrect comparison in loop guarding cond_wait from spurious wakeups. * Add null terminator to tag->name string (#372) Fixes #371 Co-authored-by: Tina Johnson <[email protected]>
Release for 2.5.0 (#354). Fix #275. Fix #338. Fix #344. Fix #352. * Don't call the tag's abort function if it doesn't have one. * Remove refactored common request status checking code. * Add common request status checking code. * Fix duplicate slash in path. * Bump version for request use-after-free fix. * callback with user data (#345) * add callback with user data * add test_callback2 * rename plc_tag_register_callback2 to plc_tag_register_callback_ex * rename test_callback2 to test_callback_ex * refer to each other * start fix ups of version. Co-authored-by: Kyle Hayes <[email protected]> * Break apart the ifdef checks as something in Intellisense is breaking and setting _WIN32 even on Linux. * Add test_callback_ex to POSIX build. * Rename string.c to string_standard.c to support better string documentation. * Fix string docs and examples (#347) * Rename string.c to string_standard.c to support better string documentation. * Split string examples into standard and non-standard. * Update example docs to describe new string examples. * Add string tests for standard and UDT strings. * Fix up extended callback code. Type of function pointer is not castable to/from a void pointer. Formatting. (#348) * Synthesize create events. (#349) * Fix version comment, version 2.5 now. * Synthesize create events. Needs to be reworked when event queuing is done. * Fix event status (#350) * Add better (?) status handling for tag events. * Raise and fire events with new functions. * Add status output. Fix required version on test_callback_ex.c. * More event fixes. Don't synthesize created event on started events. Missed special tag created event raise code. * Add @Joylei's windows event test. * Change code to use extended callback and only wake one thread instead of all threads. * Add create callback and fix missing events and duplicate events. (#351) * Make mutex locking recursive. * Raise a read started event when the initial read is triggered. * Add callback to creation args so that early events can work. * Fix event handle to avoid duplication, drops and handle early events. * Clean up example of simple callback. * Add create callback (#353) * Make mutex locking recursive. * Raise a read started event when the initial read is triggered. * Add callback to creation args so that early events can work. * Fix event handle to avoid duplication, drops and handle early events. * Clean up example of simple callback. * Add new ignorable directory to .gitignore. * Remove direct calls to callback function and use raise and dispatch functions. * DS_Store again. Where is this coming from? * Add debugging output of status when raising an event. * Add casts to force status to correct size. * Yikes, caught typo of plc_tag_destroy() called instead of plc_tag_decode_error()! * Wasn't checking for test_callback_ex to exist before running tests. * Backout change to aid merge. * Add missing check for test_callback_ex. * Output status when DELETE event is raised. * Handle tag deletion events. Co-authored-by: joylei <[email protected]>
PreviousNext