From c419ce827a89a2e8917eba72470c13d1610763ef Mon Sep 17 00:00:00 2001 From: Philip Minakov Date: Tue, 16 Apr 2024 00:19:48 +0400 Subject: [PATCH 1/2] Add swi functions --- swilib/include/swilib/date.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/swilib/include/swilib/date.h b/swilib/include/swilib/date.h index b2e94022..1355812f 100644 --- a/swilib/include/swilib/date.h +++ b/swilib/include/swilib/date.h @@ -218,6 +218,26 @@ __swi_begin(0x2CF) int CmpTimes(const TTime *time1, const TTime *time2) __swi_end(0x2CF, CmpTimes, (time1, time2)); +/** + * Put date into ws string. + * @param[out] ws output ws string + * @param date date + * @param unk unknown parameter for formatting: 0x7, 0xF, ... + * */ +__swi_begin(0x3B4) +void GetDate_ws(WSHDR *ws, const TDate *date, unsigned int unk) +__swi_end(0x3B4, GetDate_ws, (ws, date, unk)); + +/** + * Put time into ws string. + * @param[out] ws output ws string + * @param time time + * @param unk unkwnow parameter for formatting: 0x223, 0x227, ... + * */ +__swi_begin(0x3B5) +void GetTime_ws(WSHDR *ws, const TTime *time, unsigned int unk) +__swi_end(0x3B5, GetTime_ws, (ws, time, unk)); + __swilib_end /** @} */ From 5a7baf8d34dae1336495bd1d8dc8fe88b9923e55 Mon Sep 17 00:00:00 2001 From: Philip Minakov Date: Tue, 16 Apr 2024 00:27:28 +0400 Subject: [PATCH 2/2] Add accessory type --- swilib/include/swilib/patch.h | 1 + 1 file changed, 1 insertion(+) diff --git a/swilib/include/swilib/patch.h b/swilib/include/swilib/patch.h index 4fe58e34..6d2418e5 100644 --- a/swilib/include/swilib/patch.h +++ b/swilib/include/swilib/patch.h @@ -23,6 +23,7 @@ __swilib_begin * */ enum AccessoryTypeID { ACC_TYPE_SERIAL_CABLE = 15, /**< DCA-510 */ + ACC_TYPE_IMS_700 = 29, /**< IMS-700 */ }; typedef struct CHAN_BAN_Q CHAN_BAN_Q;