source: trunk/include/helpers/timer.h@ 44

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

Misc. changes.

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