home *** CD-ROM | disk | FTP | other *** search
- #ifndef alarm_H
- #define alarm_H
-
- /* C header file for Alarm
- * written by DefMod (Jun 22 1994) on Wed Jun 22 18:25:15 1994
- * Copyright © Acorn Computers Ltd, 1994
- */
-
- /*************************************************************************
- * This source file was written by Acorn Computers Limited. It is part *
- * of the OSLib library for writing applications for RISC OS. It may be *
- * used freely in the creation of programs for RISC OS. *
- *************************************************************************/
-
- #ifndef types_H
- #include "types.h"
- #endif
-
- #ifndef os_H
- #include "os.h"
- #endif
-
- /************************************
- * Structure and union declarations *
- ************************************/
- typedef struct alarm_date_and_time alarm_date_and_time;
- typedef struct alarm_message_set alarm_message_set;
- typedef struct alarm_message_cancel alarm_message_cancel;
- typedef struct alarm_message_gone_off alarm_message_gone_off;
-
- /********************
- * Type definitions *
- ********************/
- struct alarm_date_and_time
- { short year;
- byte month;
- byte date;
- byte hour;
- byte minute;
- };
-
- struct alarm_message_set
- { int reason;
- union
- { os_date_and_time utc;
- alarm_date_and_time local;
- }
- time;
- char sender [40];
- char alarm_name [40];
- };
-
- struct alarm_message_cancel
- { int reason;
- char sender [40];
- char alarm_name [40];
- };
-
- struct alarm_message_gone_off
- { char sender [40];
- char alarm_name [40];
- };
-
- /************************
- * Constant definitions *
- ************************/
- #define alarm_NAME_LIMIT 40
- #define message_ALARM_SET 0x500u
- #define message_ALARM_GONE_OFF 0x501u
- #define alarm_REASON_SET_LOCAL 0
- #define alarm_REASON_SET_UTC 1
- #define alarm_REASON_CANCEL 2
-
- #endif
-