[libthread] Introduce libthread
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Mon, 3 Jan 2011 14:26:24 +0000 (09:26 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Mon, 3 Jan 2011 14:26:24 +0000 (09:26 -0500)
WinVBlock.dev
src/include/libthread.h [new file with mode: 0644]
src/winvblock/libthread/libthread.c [new file with mode: 0644]
src/winvblock/libthread/makelib.bat [new file with mode: 0644]
src/winvblock/makedriver.bat

index bf2e913..9f7b105 100644 (file)
@@ -1,14 +1,14 @@
 [Project]\r
 FileName=WinVBlock.dev\r
 Name=WinVBlock\r
-UnitCount=66\r
+UnitCount=68\r
 PchHead=-1\r
 PchSource=-1\r
 Ver=3\r
 IsCpp=1\r
 ProfilesCount=2\r
 ProfileIndex=0\r
-Folders=AoE,HTTPDisk,HTTPDisk_Util,Include,Util,WinVBlock,WinVBlock/Disk,WinVBlock/FileDisk,WinVBlock/LibBus,WinVBlock/RAMDisk\r
+Folders=AoE,HTTPDisk,HTTPDisk_Util,Include,Util,WinVBlock,WinVBlock/Disk,WinVBlock/FileDisk,WinVBlock/LibBus,WinVBlock/LibThread,WinVBlock/RAMDisk\r
 \r
 [VersionInfo]\r
 Major=0\r
@@ -642,9 +642,9 @@ OverrideBuildCmd=0
 BuildCmd=\r
 \r
 [Unit67]\r
-FileName=src\include\aoe_bus.h\r
+FileName=src\winvblock\libthread\libthread.c\r
 CompileCpp=1\r
-Folder=Include\r
+Folder=WinVBlock/LibThread\r
 Compile=1\r
 Link=1\r
 Priority=1000\r
@@ -652,9 +652,9 @@ OverrideBuildCmd=0
 BuildCmd=\r
 \r
 [Unit68]\r
-FileName=src\aoe\bus.c\r
+FileName=src\include\libthread.h\r
 CompileCpp=1\r
-Folder=AoE\r
+Folder=Include\r
 Compile=1\r
 Link=1\r
 Priority=1000\r
diff --git a/src/include/libthread.h b/src/include/libthread.h
new file mode 100644 (file)
index 0000000..5030b74
--- /dev/null
@@ -0,0 +1,28 @@
+/**
+ * Copyright (C) 2009-2011, Shao Miller <shao.miller@yrdsb.edu.on.ca>.
+ *
+ * This file is part of WinVBlock, originally derived from WinAoE.
+ *
+ * WinVBlock is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * WinVBlock is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with WinVBlock.  If not, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef WVL_M_LIBTHREAD_H_
+#  define WVL_M_LIBTHREAD_H_
+
+/**
+ * @file
+ *
+ * WinVBlock thread library.
+ */
+
+#endif  /* WVL_M_LIBTHREAD_H_ */
diff --git a/src/winvblock/libthread/libthread.c b/src/winvblock/libthread/libthread.c
new file mode 100644 (file)
index 0000000..c37ffe3
--- /dev/null
@@ -0,0 +1,39 @@
+/**
+ * Copyright (C) 2009-2011, Shao Miller <shao.miller@yrdsb.edu.on.ca>.
+ *
+ * This file is part of WinVBlock, originally derived from WinAoE.
+ *
+ * WinVBlock is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * WinVBlock is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with WinVBlock.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/**
+ * @file
+ *
+ * WinVBlock thread library.
+ */
+
+#include <ntddk.h>
+
+#include "portable.h"
+#include "winvblock.h"
+#include "libthread.h"
+#include "debug.h"
+
+/* TODO: Types. */
+
+/* TODO: Forward declarations. */
+
+static VOID WvlThreadTODO(void) {
+    return;
+  }
diff --git a/src/winvblock/libthread/makelib.bat b/src/winvblock/libthread/makelib.bat
new file mode 100644 (file)
index 0000000..07a19a7
--- /dev/null
@@ -0,0 +1,17 @@
+@echo off\r
+\r
+set libname=libthread\r
+\r
+set c=libthread.c\r
+\r
+echo !INCLUDE $(NTMAKEENV)\makefile.def        > makefile\r
+\r
+echo INCLUDES=..\..\include            > sources\r
+echo TARGETNAME=%libname%              >> sources\r
+echo TARGETTYPE=DRIVER_LIBRARY         >> sources\r
+echo TARGETPATH=obj                    >> sources\r
+echo SOURCES=%c%                       >> sources\r
+echo C_DEFINES=-DPROJECT_WV=1          >> sources\r
+\r
+build\r
+set links=%links% %libname%\\obj%obj%\\%arch%\\%libname%.lib
\ No newline at end of file
index 53c6a82..0e2c919 100644 (file)
@@ -1,6 +1,6 @@
 @echo off\r
 \r
-set lib=libbus disk ramdisk filedisk\r
+set lib=libbus disk ramdisk filedisk libthread\r
 \r
 set links=\r
 for /d %%a in (%lib%) do (\r