OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_VOICE_ENGINE_TEST_CHANNEL_TRANSPORT_TRAFFIC_CONTROL_WINDOWS_H_ | 11 #ifndef WEBRTC_VOICE_ENGINE_TEST_CHANNEL_TRANSPORT_TRAFFIC_CONTROL_WINDOWS_H_ |
12 #define WEBRTC_VOICE_ENGINE_TEST_CHANNEL_TRANSPORT_TRAFFIC_CONTROL_WINDOWS_H_ | 12 #define WEBRTC_VOICE_ENGINE_TEST_CHANNEL_TRANSPORT_TRAFFIC_CONTROL_WINDOWS_H_ |
13 | 13 |
14 #ifndef WIN32_LEAN_AND_MEAN | 14 #ifndef WIN32_LEAN_AND_MEAN |
15 #define WIN32_LEAN_AND_MEAN | 15 #define WIN32_LEAN_AND_MEAN |
16 #endif | 16 #endif |
17 | 17 |
18 // Disable deprication warning from traffic.h | 18 // Disable deprication warning from traffic.h |
19 #pragma warning(disable : 4995) | 19 #pragma warning(disable : 4995) |
20 | 20 |
21 #include <windows.h> | 21 #include <windows.h> |
22 #include <qos.h> | 22 #include <qos.h> |
23 #include <ntddndis.h> | 23 #include <ntddndis.h> |
24 #include <traffic.h> | 24 #include <traffic.h> |
25 | 25 |
26 #include "webrtc/system_wrappers/include/trace.h" | 26 #include "webrtc/system_wrappers/include/trace.h" |
27 | 27 |
28 namespace webrtc { | 28 namespace webrtc { |
29 namespace test { | 29 namespace test { |
30 void MyClNotifyHandler(HANDLE ClRegCtx, HANDLE ClIfcCtx, ULONG Event, | 30 void CALLBACK MyClNotifyHandler(HANDLE ClRegCtx, HANDLE ClIfcCtx, ULONG Event, |
31 HANDLE SubCode, ULONG BufSize, PVOID Buffer); | 31 HANDLE SubCode, ULONG BufSize, PVOID Buffer); |
32 | 32 |
33 | 33 |
34 typedef ULONG (WINAPI *registerFn)(ULONG, HANDLE, PTCI_CLIENT_FUNC_LIST, | 34 typedef ULONG (WINAPI *registerFn)(ULONG, HANDLE, PTCI_CLIENT_FUNC_LIST, |
35 PHANDLE); | 35 PHANDLE); |
36 typedef ULONG (WINAPI *deregisterFn)(HANDLE); | 36 typedef ULONG (WINAPI *deregisterFn)(HANDLE); |
37 typedef ULONG (WINAPI *enumerateFn)(HANDLE, PULONG, PTC_IFC_DESCRIPTOR); | 37 typedef ULONG (WINAPI *enumerateFn)(HANDLE, PULONG, PTC_IFC_DESCRIPTOR); |
38 typedef ULONG (WINAPI *openInterfaceFn)(LPWSTR, HANDLE, HANDLE, PHANDLE); | 38 typedef ULONG (WINAPI *openInterfaceFn)(LPWSTR, HANDLE, HANDLE, PHANDLE); |
39 typedef ULONG (WINAPI *closeInterfaceFn)(HANDLE); | 39 typedef ULONG (WINAPI *closeInterfaceFn)(HANDLE); |
40 typedef ULONG (WINAPI *flowAddFn)(HANDLE, HANDLE, ULONG, PTC_GEN_FLOW, PHANDLE); | 40 typedef ULONG (WINAPI *flowAddFn)(HANDLE, HANDLE, ULONG, PTC_GEN_FLOW, PHANDLE); |
41 typedef ULONG (WINAPI *filterAddFn)(HANDLE, PTC_GEN_FILTER, PHANDLE); | 41 typedef ULONG (WINAPI *filterAddFn)(HANDLE, PTC_GEN_FILTER, PHANDLE); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 filterAddFn tcAddFilter; | 90 filterAddFn tcAddFilter; |
91 filterDeleteFn tcDeleteFilter; | 91 filterDeleteFn tcDeleteFilter; |
92 | 92 |
93 static uint32_t refCounter; | 93 static uint32_t refCounter; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace test | 96 } // namespace test |
97 } // namespace webrtc | 97 } // namespace webrtc |
98 | 98 |
99 #endif // WEBRTC_VOICE_ENGINE_TEST_CHANNEL_TRANSPORT_TRAFFIC_CONTROL_WINDOWS_H_ | 99 #endif // WEBRTC_VOICE_ENGINE_TEST_CHANNEL_TRANSPORT_TRAFFIC_CONTROL_WINDOWS_H_ |
OLD | NEW |