mirror of
https://github.com/D-Modem/gui.git
synced 2026-11-28 22:30:49 -08:00
First pass: TCP and SSH. With -DDMODEM_GUI_WINPORT=ON and CLANG_RETRO_MFC set to a clang-retro MFC checkout, winport/ builds libwinport.a with the MFC Makefile, converts app.rc with res2cpp.py, and links the same Win32 sources (now listed once, in windows/sources.cmake) as dmodem-win32. The layer does not have serial ports, pipes or audio yet: winport/include and winport/src/stubs.cpp supply stand-ins that fail, to remove when the layer gets these functions. DMODEM_WINPORT blocks in the app: the settings in ~/.config/D-Modem, TCP as the default line, ~/.ssh and '/' for SSH, Unicode marks in the path view (no Wingdings), and group boxes put under the other controls (the layer's hit test stops at HTTRANSPARENT). CI builds it on Linux and macOS, and on Linux starts it in Xvfb against a test modem on the TCP port (winport/test/smoke.sh). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
27 lines
645 B
C
27 lines
645 B
C
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* Copyright (C) 2026 D-Modem Authors
|
|
*
|
|
* mmreg.h - the MP3 format of the ACM, as the app's audio.cpp names it
|
|
*/
|
|
#ifndef DMODEM_WINPORT_MMREG_H
|
|
#define DMODEM_WINPORT_MMREG_H
|
|
#include <mmsystem.h>
|
|
|
|
#define WAVE_FORMAT_MPEGLAYER3 0x0055
|
|
#define MPEGLAYER3_WFX_EXTRA_BYTES 12
|
|
#define MPEGLAYER3_ID_MPEG 1
|
|
#define MPEGLAYER3_FLAG_PADDING_OFF 0x00000002
|
|
|
|
#pragma pack(push, 1)
|
|
typedef struct mpeglayer3waveformat_tag {
|
|
WAVEFORMATEX wfx;
|
|
WORD wID;
|
|
DWORD fdwFlags;
|
|
WORD nBlockSize;
|
|
WORD nFramesPerBlock;
|
|
WORD nCodecDelay;
|
|
} MPEGLAYER3WAVEFORMAT, *LPMPEGLAYER3WAVEFORMAT;
|
|
#pragma pack(pop)
|
|
#endif
|