diff options
| author | Fredrik Orderud <[email protected]> | 2024-08-22 15:42:07 +0200 |
|---|---|---|
| committer | Fredrik Orderud <[email protected]> | 2024-08-22 15:42:07 +0200 |
| commit | 239566869e3b25bc381f4f188575da32773abcfd (patch) | |
| tree | 1280e80d68789007e1840a71f1c6e20a05641c7b | |
| parent | c4a093eed801a0b848e331c7ee64a91a1b114fdf (diff) | |
[simbatt] Delete redundant "batclass_prepublish.h" to simplify
The contained BATTERY_MINIPORT_INFO_V1_1 struct and BATTERY_CLASS_MINOR_VERSION_1 define are already defined in <batclass.h>, so there shouldn't be a need for duplicating the definitions here.
| -rw-r--r-- | simbatt/func/batclass_prepublish.h | 51 | ||||
| -rw-r--r-- | simbatt/func/wdf.c | 2 |
2 files changed, 1 insertions, 52 deletions
diff --git a/simbatt/func/batclass_prepublish.h b/simbatt/func/batclass_prepublish.h deleted file mode 100644 index a952222b..00000000 --- a/simbatt/func/batclass_prepublish.h +++ /dev/null @@ -1,51 +0,0 @@ -/*++ - -Copyright (c) Microsoft Corporation. All rights reserved. - -Module Name: - - batclass_prepublish.h - -Abstract: - - This module defines pre-publish definations to be made available in DDK/SDK. - - N.B. This file must not be included when batclass.h defines - BATTERY_MINIPORT_INFO_V1_1 type and BATTERY_CLASS_MINOR_VERSION_1. - - N.B. This code is provided "AS IS" without any expressed or implied warranty. - ---*/ - -//---------------------------------------------------------------------- Pragmas - -#pragma once - -//--------------------------------------------------------------------- Includes - -#include <batclass.h> - -//-------------------------------------------------- Would be Public Definitions - -#ifndef BATTERY_CLASS_MINOR_VERSION_1 - -typedef struct { - USHORT MajorVersion; - USHORT MinorVersion; - - PVOID Context; // Miniport context - - BCLASS_QUERY_TAG QueryTag; - BCLASS_QUERY_INFORMATION QueryInformation; - BCLASS_SET_INFORMATION SetInformation; - BCLASS_QUERY_STATUS QueryStatus; - BCLASS_SET_STATUS_NOTIFY SetStatusNotify; - BCLASS_DISABLE_STATUS_NOTIFY DisableStatusNotify; - PDEVICE_OBJECT Pdo; - PUNICODE_STRING DeviceName; - PDEVICE_OBJECT Fdo; -} BATTERY_MINIPORT_INFO_V1_1, *PBATTERY_MINIPORT_INFO_V1_1; - -#define BATTERY_CLASS_MINOR_VERSION_1 0x0001 - -#endif // BATTERY_CLASS_MINOR_VERSION_1 diff --git a/simbatt/func/wdf.c b/simbatt/func/wdf.c index de9aee30..3b9e87ad 100644 --- a/simbatt/func/wdf.c +++ b/simbatt/func/wdf.c @@ -19,7 +19,7 @@ Abstract: #include "simbatt.h" #include "simbattdriverif.h" -#include "batclass_prepublish.h" +#include <batclass.h> //------------------------------------------------------------------- Prototypes |
