yuzu/src/core/hle/service
comex 0791082b43 network, sockets: Replace POLL_IN, POLL_OUT, etc. constants with an enum class PollEvents
Actually, two enum classes, since for some reason there are two separate
yet identical `PollFD` types used in the codebase.  I get that one is
ABI-compatible with the Switch while the other is an abstract type used
for the host, but why not use `WSAPOLLFD` directly for the latter?

Anyway, why make this change?  Because on Apple platforms, `POLL_IN`,
`POLL_OUT`, etc. (with an underscore) are defined as macros in
<sys/signal.h>.  (This is inherited from FreeBSD.)  So defining
a variable with the same name causes a compile error.

I could just rename the variables, but while I was at it I thought I
might as well switch to an enum for stronger typing.

Also, change the type used for values copied directly to/from the
`events` and `revents` fields of the host *native*
`pollfd`/`WSASPOLLFD`, from `u32` to `short`, as `short` is the correct
canonical type on both Unix and Windows.
2020-12-06 19:14:42 -05:00
..
acc service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
am service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
aoc service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
apm service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
audio service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
bcat service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
bpc service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
btdrv service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
btm service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
caps service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
erpt service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
es service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
eupld service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
fatal service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
fgm service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
filesystem savedata_factory: Eliminate usage of the global system instance 2020-11-27 09:45:08 -05:00
friend service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
glue service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
grc service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
hid Merge pull request #4998 from Morph1984/bioshock-patch 2020-11-28 23:20:23 -08:00
lbl service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
ldn service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
ldr core: arm: Implement InvalidateCacheRange for CPU cache invalidation. 2020-11-29 01:31:52 -08:00
lm service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
mig service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
mii service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
mm service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
ncm service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
nfc service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
nfp service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
nifm service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
nim service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
npns service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
ns service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
nvdrv service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
nvflinger Merge pull request #4858 from lioncash/initializer 2020-11-04 12:10:10 -08:00
olsc service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
pcie service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
pctl service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
pcv service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
pm service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
prepo service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
psc service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
ptm service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
set service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
sm service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
sockets network, sockets: Replace POLL_IN, POLL_OUT, etc. constants with an enum class PollEvents 2020-12-06 19:14:42 -05:00
spl service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
ssl service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
time service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
usb service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
vi service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
wlan service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
service.cpp service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00
service.h service: Eliminate usages of the global system instance 2020-11-26 20:03:11 -05:00