mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-09-07 06:22:00 +00:00
D front-end changes: - Import latest fixes from dmd v2.110.0-beta.1. - The `align' attribute now allows to specify `default' explicitly. - Add primary expression of the form `__rvalue(expression)' which causes `expression' to be treated as an rvalue, even if it is an lvalue. - Shortened method syntax can now be used in constructors. D runtime changes: - Import latest fixes from druntime v2.110.0-beta.1. Phobos changes: - Import latest fixes from phobos v2.110.0-beta.1. gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd c57da0cf59. * d-codegen.cc (can_elide_copy_p): New. (d_build_call): Use it. * d-lang.cc (d_post_options): Update for new front-end interface. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime c57da0cf59. * src/MERGE: Merge upstream phobos ad8ee5587. * testsuite/libphobos.init_fini/custom_gc.d: Adjust test. gcc/testsuite/ChangeLog: * gdc.dg/copy1.d: New test.
48 lines
1.5 KiB
D
48 lines
1.5 KiB
D
/**
|
|
* Windows API header module
|
|
*
|
|
* Translated from MinGW Windows headers
|
|
*
|
|
* Authors: Stewart Gordon
|
|
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
|
|
* Source: $(DRUNTIMESRC core/sys/windows/_mgmtapi.d)
|
|
*/
|
|
module core.sys.windows.mgmtapi;
|
|
version (Windows):
|
|
|
|
import core.sys.windows.snmp;
|
|
import core.sys.windows.windef;
|
|
|
|
enum {
|
|
SNMP_MGMTAPI_TIMEOUT = 40,
|
|
SNMP_MGMTAPI_SELECT_FDERRORS,
|
|
SNMP_MGMTAPI_TRAP_ERRORS,
|
|
SNMP_MGMTAPI_TRAP_DUPINIT,
|
|
SNMP_MGMTAPI_NOTRAPS,
|
|
SNMP_MGMTAPI_AGAIN,
|
|
SNMP_MGMTAPI_INVALID_CTL,
|
|
SNMP_MGMTAPI_INVALID_SESSION,
|
|
SNMP_MGMTAPI_INVALID_BUFFER // = 48
|
|
}
|
|
|
|
enum MGMCTL_SETAGENTPORT = 1;
|
|
|
|
alias PVOID LPSNMP_MGR_SESSION;
|
|
|
|
extern (Windows) nothrow @nogc {
|
|
BOOL SnmpMgrClose(LPSNMP_MGR_SESSION);
|
|
BOOL SnmpMgrCtl(LPSNMP_MGR_SESSION, DWORD, LPVOID, DWORD, LPVOID, DWORD,
|
|
LPDWORD);
|
|
BOOL SnmpMgrGetTrap(AsnObjectIdentifier*, AsnNetworkAddress*,
|
|
AsnInteger*, AsnInteger*, AsnTimeticks*, SnmpVarBindList*);
|
|
BOOL SnmpMgrGetTrapEx(AsnObjectIdentifier*, AsnNetworkAddress*,
|
|
AsnNetworkAddress*, AsnInteger*, AsnInteger*, AsnOctetString*,
|
|
AsnTimeticks*, SnmpVarBindList*);
|
|
BOOL SnmpMgrOidToStr(AsnObjectIdentifier*, LPSTR*);
|
|
LPSNMP_MGR_SESSION SnmpMgrOpen(LPSTR, LPSTR, INT, INT);
|
|
INT SnmpMgrRequest(LPSNMP_MGR_SESSION, BYTE, SnmpVarBindList*,
|
|
AsnInteger*, AsnInteger*);
|
|
BOOL SnmpMgrStrToOid(LPSTR, AsnObjectIdentifier*);
|
|
BOOL SnmpMgrTrapListen(HANDLE*);
|
|
}
|