9 #include "../kernel/event.h"
10 #include "../services/applet.h"
11 #include "../services/acc.h"
12 #include "../sf/service.h"
45 #define NOTIF_MAX_ALARMS 8
70 alarm_setting->
muted = flag!=0;
79 alarm_setting->
uid = uid;
Result appletGetNotificationStorageChannelEvent(Event *out_event)
Gets an Event which is signaled when a new storage is available with appletTryPopFromNotificationStor...
Result notifAlarmSettingEnable(NotifAlarmSetting *alarm_setting, u32 day_of_week, s32 hour, s32 minute)
Enables the schedule setting for the specified day_of_week, for the NotifAlarmSetting.
Result notifDeleteAlarmSetting(u16 alarm_setting_id)
Deletes the specified AlarmSetting.
NotifServiceType
ServiceType for notifInitialize.
Definition: notif.h:15
@ NotifServiceType_Application
Initializes notif:a, for Application.
Definition: notif.h:16
@ NotifServiceType_System
Initializes notif:s, for System.
Definition: notif.h:17
Result notifTryPopNotifiedApplicationParameter(void *buffer, u64 size, u64 *out_size)
Uses appletTryPopFromNotificationStorageChannel then reads the data from there into the output params...
static void notifAlarmSettingSetUid(NotifAlarmSetting *alarm_setting, AccountUid uid)
Sets the AccountUid for the NotifAlarmSetting, see NotifAlarmSetting::uid.
Definition: notif.h:78
Result notifAlarmSettingGet(NotifAlarmSetting *alarm_setting, u32 day_of_week, NotifAlarmTime *out)
Gets the schedule setting for the specified day_of_week, for the NotifAlarmSetting.
void notifExit(void)
Exit notif.
Result notifInitialize(NotifServiceType service_type)
Initialize notif. Only available on [9.0.0+].
Result notifAlarmSettingDisable(NotifAlarmSetting *alarm_setting, u32 day_of_week)
Disables the schedule setting for the specified day_of_week, for the NotifAlarmSetting.
void notifAlarmSettingCreate(NotifAlarmSetting *alarm_setting)
Creates a NotifAlarmSetting.
Service * notifGetServiceSession(void)
Gets the Service object for the actual notif:* service session.
Result notifListAlarmSettings(NotifAlarmSetting *alarm_settings, s32 count, s32 *total_out)
Gets a listing of AlarmSettings.
Result notifRegisterAlarmSetting(u16 *alarm_setting_id, const NotifAlarmSetting *alarm_setting, const void *buffer, size_t size)
Registers the specified AlarmSetting.
Result notifUpdateAlarmSetting(const NotifAlarmSetting *alarm_setting, const void *buffer, size_t size)
Updates the specified AlarmSetting.
static void notifAlarmSettingSetIsMuted(NotifAlarmSetting *alarm_setting, bool flag)
Sets whether the NotifAlarmSetting is muted.
Definition: notif.h:69
static Result notifGetNotificationSystemEvent(Event *out_event)
Gets an Event which is signaled when data is available with notifTryPopNotifiedApplicationParameter.
Definition: notif.h:165
Result notifAlarmSettingIsEnabled(NotifAlarmSetting *alarm_setting, u32 day_of_week, bool *out)
Gets whether the schedule setting for the specified day_of_week is enabled, for the NotifAlarmSetting...
Result notifLoadApplicationParameter(u16 alarm_setting_id, void *buffer, size_t size, u32 *actual_size)
Loads the ApplicationParameter for the specified AlarmSetting.
Account UserId.
Definition: acc.h:25
Kernel-mode event structure.
Definition: event.h:13
AlarmSetting.
Definition: notif.h:33
u16 alarm_setting_id
AlarmSettingId.
Definition: notif.h:34
NotifWeeklyScheduleAlarmSetting schedule
NotifWeeklyScheduleAlarmSetting
Definition: notif.h:41
AccountUid uid
AccountUid. User account associated with this AlarmSetting. Used for the preselected_user (accountGet...
Definition: notif.h:38
u64 unk_x20
Unknown.
Definition: notif.h:40
u64 application_id
ApplicationId.
Definition: notif.h:39
u8 muted
u8 bool flag for whether this AlarmSetting is muted (non-zero = AlarmSetting turned off,...
Definition: notif.h:36
u8 kind
Kind: 0 = WeeklySchedule.
Definition: notif.h:35
Data extracted from NotifWeeklyScheduleAlarmSetting::settings. This uses local-time.
Definition: notif.h:21
s32 minute
Minute.
Definition: notif.h:23
s32 hour
Hour.
Definition: notif.h:22
WeeklyScheduleAlarmSetting.
Definition: notif.h:27
Service object structure.
Definition: service.h:14
#define NX_INLINE
Flags a function as (always) inline.
Definition: types.h:86
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
int16_t s16
16-bit signed integer.
Definition: types.h:26
uint16_t u16
16-bit unsigned integer.
Definition: types.h:20
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21