Skip to content

Commit

Permalink
Merge pull request #9 from cad0gan/master
Browse files Browse the repository at this point in the history
Add new functions & const
  • Loading branch information
Azq2 authored Apr 15, 2024
2 parents 300725d + 5a7baf8 commit 9291d0d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions swilib/include/swilib/date.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/** @} */
1 change: 1 addition & 0 deletions swilib/include/swilib/patch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9291d0d

Please sign in to comment.