source: branches/branch-1-0/include/helpers/timer.h@ 443

Last change on this file since 443 was 113, checked in by umoeller, 24 years ago

Misc updates.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1
2/*
3 *@@sourcefile threads.h:
4 * header file for treads.c. See remarks there.
5 *
6 * Note: Version numbering in this file relates to XWorkplace version
7 * numbering.
8 *
9 *@@include #define INCL_DOSPROCESS
10 *@@include #include <os2.h>
11 *@@include #include "helpers\threads.h"
12 */
13
14/*
15 * Copyright (C) 1997-2000 Ulrich M”ller.
16 * This file is part of the "XWorkplace helpers" source package.
17 * This is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published
19 * by the Free Software Foundation, in version 2 as it comes in the
20 * "COPYING" file of the XWorkplace main distribution.
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 */
26
27#if __cplusplus
28extern "C" {
29#endif
30
31#ifndef TIMER_HEADER_INCLUDED
32 #define TIMER_HEADER_INCLUDED
33
34 /*
35 *@@ XTIMERSET:
36 *
37 *@@added V0.9.9 (2001-02-28) [umoeller]
38 */
39
40 typedef struct _XTIMERSET
41 {
42 HAB hab;
43 HWND hwndOwner; // owner of XTimers (who has the PM timer)
44 USHORT idPMTimer; // ID of main PM timer
45 USHORT idPMTimerRunning; // if != 0, PM timer is running
46 ULONG ulPMTimeout; // current PM timeout; if 0, recalculation
47 // is needed.
48 PVOID pvllXTimers; // linked list of current XTIMER structures, auto-free
49 } XTIMERSET, *PXTIMERSET;
50
51 PXTIMERSET XWPENTRY tmrCreateSet(HWND hwndOwner, USHORT usPMTimerID);
52 typedef PXTIMERSET XWPENTRY TMRCREATESET(HWND hwndOwner, USHORT usPMTimerID);
53 typedef TMRCREATESET *PTMRCREATESET;
54
55 VOID XWPENTRY tmrDestroySet(PXTIMERSET pSet);
56 typedef VOID XWPENTRY TMRDESTROYSET(PXTIMERSET pSet);
57 typedef TMRDESTROYSET *PTMRDESTROYSET;
58
59 USHORT XWPENTRY tmrStartXTimer(PXTIMERSET pSet, HWND hwnd, USHORT usTimerID, ULONG ulTimeout);
60 typedef USHORT XWPENTRY TMRSTARTXTIMER(PXTIMERSET pSet, HWND hwnd, USHORT usTimerID, ULONG ulTimeout);
61 typedef TMRSTARTXTIMER *PTMRSTARTXTIMER;
62
63 BOOL XWPENTRY tmrStopXTimer(PXTIMERSET pSet, HWND hwnd, USHORT usTimerID);
64 typedef BOOL XWPENTRY TMRSTOPXTIMER(PXTIMERSET pSet, HWND hwnd, USHORT usTimerID);
65 typedef TMRSTOPXTIMER *PTMRSTOPXTIMER;
66
67 VOID XWPENTRY tmrTimerTick(PXTIMERSET pSet);
68 typedef VOID XWPENTRY TMRTIMERTICK(PXTIMERSET pSet);
69 typedef TMRTIMERTICK *PTMRTIMERTICK;
70
71#endif
72
73#if __cplusplus
74}
75#endif
76
Note: See TracBrowser for help on using the repository browser.