Refactor wsssht.c: Split large monolithic file into modular components
- Created libwsssht/ directory with modular components: * utils.h/c: Utility functions (print_usage, parse_connection_string, parse_args) * modes.h/c: Mode-specific functions (bridge, script, daemon modes) * threads.h/c: Thread-related functions and structures * wsssht.h: Main header with includes and declarations - Reduced wsssht.c from 2769 lines to 674 lines (main function only) - Updated Makefile and configure.sh to handle new modular structure - Maintained exact same functionality and command-line interface - Improved code maintainability and organization All functionality preserved, build successful, and wsssht binary works correctly.
Showing
wssshtools/libwsssht/modes.c
0 → 100644
This diff is collapsed.
wssshtools/libwsssht/modes.h
0 → 100644
wssshtools/libwsssht/modes.o
0 → 100644
File added
This diff is collapsed.
File added
wssshtools/libwsssht/utils.c
0 → 100644
This diff is collapsed.
wssshtools/libwsssht/utils.h
0 → 100644
wssshtools/libwsssht/utils.o
0 → 100644
File added
No preview for this file type
This diff is collapsed.
Please
register
or
sign in
to comment