Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e8dd8b01
Commit
e8dd8b01
authored
Mar 07, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add Windows.Devices.Power.IBatteryReport interface definition.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a05ece8c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
0 deletions
+54
-0
Makefile.in
include/Makefile.in
+1
-0
windows.devices.power.idl
include/windows.devices.power.idl
+15
-0
windows.foundation.idl
include/windows.foundation.idl
+1
-0
windows.system.power.idl
include/windows.system.power.idl
+37
-0
No files found.
include/Makefile.in
View file @
e8dd8b01
...
...
@@ -792,6 +792,7 @@ SOURCES = \
windows.media.speechsynthesis.idl
\
windows.storage.streams.idl
\
windows.system.idl
\
windows.system.power.idl
\
windows.system.userprofile.idl
\
windowscontracts.idl
\
windowsx.h
\
...
...
include/windows.devices.power.idl
View file @
e8dd8b01
...
...
@@ -22,6 +22,7 @@
import
"inspectable.idl"
;
import
"windows.foundation.idl"
;
import
"windows.system.power.idl"
;
namespace
Windows
.
Devices.Power
{
interface
IBatteryReport
;
...
...
@@ -29,6 +30,20 @@ namespace Windows.Devices.Power {
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
exclusiveto
(
Windows
.
Devices.Power.BatteryReport)
,
uuid
(
c9858c3a
-
4
e13
-
420
a
-
a8d0
-
24
f18f395401
)
]
interface
IBatteryReport
:
IInspectable
{
[
propget
]
HRESULT
ChargeRateInMilliwatts
(
[
out
,
retval
]
Windows
.
Foundation.IReference<INT32>
**
value
)
;
[
propget
]
HRESULT
DesignCapacityInMilliwattHours
(
[
out
,
retval
]
Windows
.
Foundation.IReference<INT32>
**
value
)
;
[
propget
]
HRESULT
FullChargeCapacityInMilliwattHours
(
[
out
,
retval
]
Windows
.
Foundation.IReference<INT32>
**
value
)
;
[
propget
]
HRESULT
RemainingCapacityInMilliwattHours
(
[
out
,
retval
]
Windows
.
Foundation.IReference<INT32>
**
value
)
;
[
propget
]
HRESULT
Status
(
[
out
,
retval
]
Windows
.
System.Power.BatteryStatus
*
value
)
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
marshaling_behavior
(
agile
),
threading
(
both
)
]
...
...
include/windows.foundation.idl
View file @
e8dd8b01
...
...
@@ -167,6 +167,7 @@ namespace Windows {
interface
Windows
.
Foundation.Collections.IMapView<HSTRING
,
Windows
.
Foundation.Collections.IVectorView<HSTRING>*>;
interface
Windows
.
Foundation.AsyncOperationCompletedHandler<boolean>;
interface
Windows
.
Foundation.IAsyncOperation<boolean>;
interface
Windows
.
Foundation.IReference<INT32>;
}
}
}
include/windows.system.power.idl
0 → 100644
View file @
e8dd8b01
/*
*
Copyright
2022
R
é
mi
Bernon
for
CodeWeavers
*
*
This
library
is
free
software
; you can redistribute it and/or
*
modify
it
under
the
terms
of
the
GNU
Lesser
General
Public
*
License
as
published
by
the
Free
Software
Foundation
; either
*
version
2.1
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
*
This
library
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
*
Lesser
General
Public
License
for
more
details
.
*
*
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
*
License
along
with
this
library
; if not, write to the Free Software
*
Foundation
,
Inc
.
,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
02110
-
1301
,
USA
*/
#
ifdef
__WIDL__
#
pragma
winrt
ns_prefix
#
endif
import
"inspectable.idl"
;
import
"windows.foundation.idl"
;
namespace
Windows
.
System.Power
{
typedef
enum
BatteryStatus
BatteryStatus
;
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
)
]
enum
BatteryStatus
{
NotPresent
=
0
,
Discharging
=
1
,
Idle
=
2
,
Charging
=
3
,
}
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment