Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef _CONTROLLERS_H__ |
| 18 | #define _CONTROLLERS_H__ |
| 19 | |
| 20 | #include <sysutils/FrameworkListener.h> |
Lorenzo Colitti | ddf2d5b | 2016-02-26 11:30:59 +0900 | [diff] [blame] | 21 | |
Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 22 | #include "NetworkController.h" |
| 23 | #include "TetherController.h" |
| 24 | #include "NatController.h" |
| 25 | #include "PppController.h" |
Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 26 | #include "BandwidthController.h" |
| 27 | #include "IdletimerController.h" |
| 28 | #include "InterfaceController.h" |
| 29 | #include "ResolverController.h" |
| 30 | #include "FirewallController.h" |
| 31 | #include "ClatdController.h" |
| 32 | #include "StrictController.h" |
Michal Karpinski | d544011 | 2016-10-06 16:56:04 +0100 | [diff] [blame] | 33 | #include "EventReporter.h" |
Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 34 | |
| 35 | namespace android { |
| 36 | namespace net { |
| 37 | |
| 38 | struct Controllers { |
| 39 | Controllers(); |
| 40 | |
| 41 | NetworkController netCtrl; |
| 42 | TetherController tetherCtrl; |
| 43 | NatController natCtrl; |
| 44 | PppController pppCtrl; |
Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 45 | BandwidthController bandwidthCtrl; |
| 46 | IdletimerController idletimerCtrl; |
| 47 | ResolverController resolverCtrl; |
| 48 | FirewallController firewallCtrl; |
Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 49 | ClatdController clatdCtrl; |
| 50 | StrictController strictCtrl; |
Michal Karpinski | d544011 | 2016-10-06 16:56:04 +0100 | [diff] [blame] | 51 | EventReporter eventReporter; |
Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 52 | }; |
| 53 | |
| 54 | extern Controllers* gCtls; |
| 55 | |
| 56 | } // namespace net |
| 57 | } // namespace android |
| 58 | |
| 59 | #endif // _CONTROLLERS_H__ |