summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/palmunits/src/timemgr.pp
blob: 2b877bfef5e6cb1ff0b45b0682b78516a00069d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{$MACRO ON}
(******************************************************************************
 *
 * Copyright (c) 1995-2000 Palm, Inc. or its subsidiaries.
 * All rights reserved.
 *
 * File: TimeMgr.h
 *
 * Release: Palm OS SDK 4.0 (63220)
 *
 * Description:
 *    Time manager functions
 *
 * History:
 *    1/19/95  roger - Created by Roger Flores
 *
 *****************************************************************************)

unit timemgr;

interface

uses palmos, coretraps, errorbase;

(************************************************************
 * Time Manager result codes
 * (timErrorClass is defined in SystemMgr.h)
 *************************************************************)

const
  timErrMemory = timErrorClass or 1;

(************************************************************
 * Function Prototypes
 *************************************************************)

//-------------------------------------------------------------------
// Initialization
//-------------------------------------------------------------------

function TimInit: Err; syscall sysTrapTimInit;

//-------------------------------------------------------------------
// API
//-------------------------------------------------------------------

// seconds since 1/1/1904
function TimGetSeconds: UInt32; syscall sysTrapTimGetSeconds;

// seconds since 1/1/1904
procedure TimSetSeconds(seconds: UInt32); syscall sysTrapTimSetSeconds;

// ticks since power on
function TimGetTicks: UInt32; syscall sysTrapTimGetTicks;

implementation

end.