1 /* 2 * Copyright (C) 2019 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 #pragma once 18 19 #include "builtin_arguments.h" 20 #include "result.h" 21 22 namespace android { 23 namespace init { 24 25 Result<void> check_chown(const BuiltinArguments& args); 26 Result<void> check_exec(const BuiltinArguments& args); 27 Result<void> check_exec_background(const BuiltinArguments& args); 28 Result<void> check_exec_reboot_on_failure(const BuiltinArguments& args); 29 Result<void> check_interface_restart(const BuiltinArguments& args); 30 Result<void> check_interface_start(const BuiltinArguments& args); 31 Result<void> check_interface_stop(const BuiltinArguments& args); 32 Result<void> check_load_system_props(const BuiltinArguments& args); 33 Result<void> check_loglevel(const BuiltinArguments& args); 34 Result<void> check_mkdir(const BuiltinArguments& args); 35 Result<void> check_mount_all(const BuiltinArguments& args); 36 Result<void> check_restorecon(const BuiltinArguments& args); 37 Result<void> check_restorecon_recursive(const BuiltinArguments& args); 38 Result<void> check_setprop(const BuiltinArguments& args); 39 Result<void> check_setrlimit(const BuiltinArguments& args); 40 Result<void> check_swapon_all(const BuiltinArguments& args); 41 Result<void> check_sysclktz(const BuiltinArguments& args); 42 Result<void> check_umount_all(const BuiltinArguments& args); 43 Result<void> check_wait(const BuiltinArguments& args); 44 Result<void> check_wait_for_prop(const BuiltinArguments& args); 45 46 } // namespace init 47 } // namespace android 48