mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-09 23:19:26 +01:00
Add Comments to Time Services + Fix IDE Case Conventions
This commit mainly just adds comments to parts of time services and fixes the case conventions in Android Studio.
This commit is contained in:
parent
a60ab89c5d
commit
c3c9982ddc
15
.idea/codeStyles/Project.xml
generated
15
.idea/codeStyles/Project.xml
generated
@ -51,6 +51,21 @@
|
|||||||
<pair source="cpp" header="h" fileNamingConvention="PASCAL_CASE" />
|
<pair source="cpp" header="h" fileNamingConvention="PASCAL_CASE" />
|
||||||
<pair source="cpp" header="h" fileNamingConvention="NONE" />
|
<pair source="cpp" header="h" fileNamingConvention="NONE" />
|
||||||
</extensions>
|
</extensions>
|
||||||
|
<rules>
|
||||||
|
<rule entity="NAMESPACE" visibility="ANY" specifier="ANY" prefix="" style="CAMEL_CASE" suffix="" />
|
||||||
|
<rule entity="MACRO" visibility="ANY" specifier="ANY" prefix="" style="SCREAMING_SNAKE_CASE" suffix="" />
|
||||||
|
<rule entity="CLASS" visibility="ANY" specifier="ANY" prefix="" style="PASCAL_CASE" suffix="" />
|
||||||
|
<rule entity="ENUM" visibility="ANY" specifier="ANY" prefix="" style="PASCAL_CASE" suffix="" />
|
||||||
|
<rule entity="ENUMERATOR" visibility="ANY" specifier="ANY" prefix="" style="PASCAL_CASE" suffix="" />
|
||||||
|
<rule entity="TYPEDEF" visibility="ANY" specifier="ANY" prefix="" style="PASCAL_CASE" suffix="" />
|
||||||
|
<rule entity="UNION" visibility="ANY" specifier="ANY" prefix="" style="PASCAL_CASE" suffix="" />
|
||||||
|
<rule entity="MEMBER_FUNCTION" visibility="ANY" specifier="ANY" prefix="" style="PASCAL_CASE" suffix="" />
|
||||||
|
<rule entity="MEMBER_FIELD" visibility="ANY" specifier="ANY" prefix="" style="CAMEL_CASE" suffix="" />
|
||||||
|
<rule entity="GLOBAL_FUNCTION" visibility="ANY" specifier="ANY" prefix="" style="PASCAL_CASE" suffix="" />
|
||||||
|
<rule entity="GLOBAL_VARIABLE" visibility="ANY" specifier="ANY" prefix="" style="PASCAL_CASE" suffix="" />
|
||||||
|
<rule entity="PARAMETER" visibility="ANY" specifier="ANY" prefix="" style="CAMEL_CASE" suffix="" />
|
||||||
|
<rule entity="LOCAL_VARIABLE" visibility="ANY" specifier="ANY" prefix="" style="CAMEL_CASE" suffix="" />
|
||||||
|
</rules>
|
||||||
</Objective-C-extensions>
|
</Objective-C-extensions>
|
||||||
<XML>
|
<XML>
|
||||||
<option name="XML_ATTRIBUTE_WRAP" value="0" />
|
<option name="XML_ATTRIBUTE_WRAP" value="0" />
|
||||||
|
@ -13,12 +13,12 @@ namespace skyline::service::timesrv {
|
|||||||
* @brief This holds a particular time point in calendar format
|
* @brief This holds a particular time point in calendar format
|
||||||
*/
|
*/
|
||||||
struct CalendarTime {
|
struct CalendarTime {
|
||||||
u16 year;
|
u16 year; //!< The Year component of the date
|
||||||
u8 month;
|
u8 month; //!< The Month component of the date
|
||||||
u8 day;
|
u8 day; //!< The Day component of the date
|
||||||
u8 hour;
|
u8 hour; //!< The Hour component of the date
|
||||||
u8 minute;
|
u8 minute; //!< The Minute component of the date
|
||||||
u8 second;
|
u8 second; //!< The Second component of the date
|
||||||
u8 _pad_;
|
u8 _pad_;
|
||||||
};
|
};
|
||||||
static_assert(sizeof(CalendarTime) == 0x8);
|
static_assert(sizeof(CalendarTime) == 0x8);
|
||||||
@ -27,11 +27,11 @@ namespace skyline::service::timesrv {
|
|||||||
* @brief This is passed in addition to CalendarTime
|
* @brief This is passed in addition to CalendarTime
|
||||||
*/
|
*/
|
||||||
struct CalendarAdditionalInfo {
|
struct CalendarAdditionalInfo {
|
||||||
u32 dayWeek;
|
u32 dayWeek; //!< The amount of days since Sunday
|
||||||
u32 dayMonth;
|
u32 dayMonth; //!< The amount of days since the start of the month
|
||||||
u64 name;
|
u64 name; //!< The name of the time zone
|
||||||
i32 dst;
|
i32 dst; //!< If DST is in effect or not
|
||||||
u32 utcRel;
|
u32 utcRel; //!< The offset of the time from GMT in seconds
|
||||||
};
|
};
|
||||||
static_assert(sizeof(CalendarAdditionalInfo) == 0x18);
|
static_assert(sizeof(CalendarAdditionalInfo) == 0x18);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user