Author: cgutman
Date: Wed Oct 8 16:17:10 2008
New Revision: 36699
URL:
http://svn.reactos.org/svn/reactos?rev=36699&view=rev
Log:
- Some of my work on NDIS 6.0
- Doesn't compile yet
- Part 1 of X
Added:
branches/aicom-network-fixes/drivers/network/ndis/ndis/object.c (with props)
Added: branches/aicom-network-fixes/drivers/network/ndis/ndis/object.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/ndis/ndis/object.c (added)
+++ branches/aicom-network-fixes/drivers/network/ndis/ndis/object.c [iso-8859-1] Wed Oct
8 16:17:10 2008
@@ -1,0 +1,40 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS NDIS library
+ * FILE: object.c
+ * PURPOSE: Implements the NDIS 6.0 object interface
+ * PROGRAMMERS: Cameron Gutman (aicommander(a)gmail.com)
+ */
+
+#include "ndissys.h"
+
+PNDIS_GENERIC_OBJECT
+EXPORT
+NdisAllocateGenericObject(
+ IN PDRIVER_OBJECT DriverObject OPTIONAL,
+ IN ULONG Tag,
+ IN USHORT Size)
+{
+ PNDIS_GENERIC_OBJECT Object;
+
+ Object = ExAllocatePoolWithTag(NonPagedPool, sizeof(NDIS_GENERIC_OBJECT) + Size, Tag);
+ if (!Object) return NULL;
+
+ RtlZeroMemory(Object, sizeof(NDIS_GENERIC_OBJECT) + Size);
+
+ Object->DriverObject = DriverObject;
+ Object->Header.Type = NDIS_OBJECT_TYPE_GENERIC_OBJECT;
+ Object->Header.Revision = NDIS_GENERIC_OBJECT_REVISION_1;
+ Object->Header.Size = sizeof(NDIS_GENERIC_OBJECT);
+
+ return Object;
+}
+
+VOID
+EXPORT
+NdisFreeGenericObject(
+ IN PNDIS_GENERIC_OBJECT NdisGenericObject)
+{
+ ExFreePool(NdisGenericObject);
+}
+
Propchange: branches/aicom-network-fixes/drivers/network/ndis/ndis/object.c
------------------------------------------------------------------------------
svn:eol-style = native