KeSetTimer(),KeCancelTimer(),KeInitializeTimer(): NOP-reimplementation
authorshort <>
Sat, 1 Feb 2003 20:24:30 +0000 (20:24 +0000)
committershort <>
Sat, 1 Feb 2003 20:24:30 +0000 (20:24 +0000)
 - reactos timer stuff was used previously
 - timers should not be needed as any events should be flushed on captive shutdown

src/libcaptive/ke/timer.c

index 7477c80..f9c371f 100644 (file)
@@ -52,3 +52,68 @@ int errint;
 
        CurrentTime->QuadPart=(tv.tv_sec+SECS_1601_TO_1970)*G_GINT64_CONSTANT(10000000)+tv.tv_usec*10;
 }
+
+
+/**
+ * KeSetTimer:
+ * @Timer: Previously initialized timer object.
+ * %NULL value is forbidden.
+ * @DueTime: If positive then absolute time to expire at.
+ * If negative then the relative time to expire at.
+ * @Dpc: If non %NULL then a #KDPC to be called when the timer expires.
+ *
+ * Sets the absolute or relative interval at which a timer object
+ * is to be set to the signaled state and optionally supplies a
+ * CustomTimerDpc to be executed when the timer expires.
+ *
+ * libcaptive does not support such timers and this function is a NOP there.
+ *
+ * Returns: %TRUE if the timer was already in the system timer queue.
+ * libcaptive always returns %FALSE.
+ */
+BOOLEAN KeSetTimer(PKTIMER Timer,LARGE_INTEGER DueTime,PKDPC Dpc)
+{
+       g_return_val_if_fail(Timer!=NULL,TRUE);
+
+       /* NOP */
+
+       return FALSE;   /* Timer was not yet in the system queue. */
+}
+
+
+/**
+ * KeCancelTimer:
+ * @Timer: Timer to cancel.
+ * %NULL value is forbidden.
+ *
+ * Removes a timer from the system timer list.
+ *
+ * libcaptive does not support such timers and this function is a NOP there.
+ *
+ * Returns: %TRUE if the timer was running.
+ * libcaptive always returns %FALSE.
+ */
+BOOLEAN KeCancelTimer(PKTIMER Timer)
+{
+       g_return_val_if_fail(Timer!=NULL,TRUE);
+
+       /* NOP */
+
+       return FALSE;   /* Timer was not running. */
+}
+
+
+/**
+ * KeInitializeTimer:
+ * @Timer: Caller supplied storage for the timer.
+ *
+ * Initalizes a kernel timer object.
+ *
+ * libcaptive does not support such timers and this function is a NOP there.
+ */
+VOID KeInitializeTimer(PKTIMER Timer)
+{
+       g_return_if_fail(Timer!=NULL);
+
+       /* NOP */
+}