Commit graph

4 commits

Author SHA1 Message Date
tr4m0ryp
af8db9836f fix(activation): Use plist_mem_free for plist-allocated strings
Changed free(xml) to plist_mem_free(xml) in path_a.c for correct
deallocation of plist_to_xml output. Updated docstrings in record.h
and plist_helpers.h to document the correct free function.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 03:51:46 +02:00
tr4m0ryp
412a2718d4 chore: Remove .gitkeep files from populated directories
All directories now contain actual source files, making the
placeholder .gitkeep files unnecessary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 02:58:42 +02:00
tr4m0ryp
f369657971 Task 002: Utility modules (log, plist_helpers, usb_helpers)
Implemented three foundational utility modules:
- log: leveled logging with ANSI colors to stderr
- plist_helpers: libplist convenience wrappers for dict access and XML serialization
  (renamed plist_dict_get_bool_val/plist_dict_get_uint_val to avoid collision with
  libplist 2.x native symbols plist_dict_get_bool/plist_dict_get_uint)
- usb_helpers: libusb control transfer wrappers for DFU operations

Files created:
- include/util/log.h, src/util/log.c
- include/util/plist_helpers.h, src/util/plist_helpers.c
- include/util/usb_helpers.h, src/util/usb_helpers.c

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 01:55:57 +02:00
tr4m0ryp
7d3fe3935d Task 001: Project scaffolding
Created directory structure, Makefile, and itr4m.h top-level header.
Build system auto-discovers src/**/*.c via find, uses pkg-config for
library dependencies. Handles missing deps gracefully.

Files created:
- Makefile
- include/itr4m.h
- .gitkeep files in all subdirectories

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 01:52:23 +02:00