; Copyright 2012 Castle Technology Ltd
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
;     http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;
        SUBT    NetTime module API

OldOpt  SETA    {OPT}
        OPT     OptNoList+OptNoP1List

SWIClass        SETS    NetTimeSWI_Name

        ^       NetTimeSWI_Base

        AddSWI  Status
        AddSWI  States

; Possible states
NetTime_State_Unknown                * 0
        ^       1
NetTime_Past_SyncViaSNTP             # 1
NetTime_Past_SyncViaTime             # 1
NetTime_Past_SyncFailed              # 1
NetTime_Past_Mask                    * &FF
        ^       &100
NetTime_Current_Asleep               # &100
NetTime_Current_PrerequisitesMissing # &100
NetTime_Current_Busy                 # &100
NetTime_Current_Mask                 * &FF00
        ^       &10000
NetTime_Future_Retry                 # &10000
NetTime_Future_PeriodicSync          # &10000
NetTime_Future_Mask                  * &FF0000

        OPT     OldOpt
        END
