blob: 085ccebca32e028ac8aa8e2823b6853a5adbc4f5 [file] [log] [blame]
Sandeep Patil526f8cf2016-11-01 16:41:56 -07001/*
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
Tao Bao5747e222018-09-11 10:46:35 -070017#include "healthd_mode_charger.h"
18#include "healthd_mode_charger_nops.h"
Sandeep Patil526f8cf2016-11-01 16:41:56 -070019
Yifan Hongb7cd45f2017-11-13 18:47:03 -080020int main(int argc, char** argv) {
Tao Bao5747e222018-09-11 10:46:35 -070021#ifdef CHARGER_NO_UI
22 return healthd_charger_nops(argc, argv);
23#else
Yifan Hongb7cd45f2017-11-13 18:47:03 -080024 return healthd_charger_main(argc, argv);
Yifan Hongb7cd45f2017-11-13 18:47:03 -080025#endif
Tao Bao5747e222018-09-11 10:46:35 -070026}