How thevoidmonarch/msuite-clang works
MasjidSuite is a console-led mosque prayer-time display application. Its main workflow fetches prayer times, then shows them in the console or passes them to a local graphical display with a live next-prayer countdown. The menu also offers an Azan test, basic admin options, and syslog viewing. API retrieval, SDL presentation/audio, and logging are implemented; the admin actions shown in the menu are placeholders. Edges reflect the README or shown source; unsampled capabilities are not inferred beyond documentation.
Main entry points: main.c Console menu · api_handler.c Prayer-time fetch · sdl_handler.c Graphical display · api_handler.h PrayerTimes data
Components 17
Menu and administration
- Console menu
src/main.c - Console times
src/main.c - Admin options
src/main.c - Syslog viewer
src/main.c
Prayer-time retrieval
- Prayer-time fetch
src/api_handler.c - IP geolocation
src/api_handler.c - Aladhan API
- IP geolocation API
- PrayerTimes data
src/api_handler.h
Display and audio
- Graphical display
src/sdl_handler.c - Next-prayer countdown
src/sdl_handler.c - Text rendering
src/sdl_handler.c - Azan playback
src/sdl_handler.c - Azan audio files
assets
Logging
- Logger
src/logger.c - Syslog file
src/logger.c
Other components
- User
Connections 20
- User → Console menu: chooses options
src/main.c - Console menu → Prayer-time fetch: requests times
src/main.c - Prayer-time fetch → IP geolocation: looks up location
src/api_handler.c - IP geolocation → IP geolocation API: requests location
src/api_handler.c - Prayer-time fetch → Aladhan API: requests timings
README.md - Prayer-time fetch → PrayerTimes data: returns times
src/api_handler.c - Console menu → Console times: prints times
src/main.c - PrayerTimes data → Console times: supplies data
src/main.c - Console menu → Graphical display: launches display
src/main.c - PrayerTimes data → Graphical display: supplies data
src/sdl_handler.c - Graphical display → Next-prayer countdown: computes countdown
src/sdl_handler.c - Graphical display → Text rendering: renders labels
src/sdl_handler.c - Console menu → Azan playback: tests playback
src/main.c - Azan playback → Azan audio files: loads audio
- Console menu → Admin options: opens settings
src/main.c - Console menu → Syslog viewer: views logs
src/main.c - Syslog viewer → Syslog file: reads
src/main.c - Console menu → Logger: records activity
src/main.c - Prayer-time fetch → Logger: records requests
src/api_handler.c - Logger → Syslog file: appends entries
src/logger.c