2009-03-04 04:32:55 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2007 The Android Open Source Project
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INIT_INIT_H
|
|
|
|
#define _INIT_INIT_H
|
|
|
|
|
2015-06-13 03:02:20 +02:00
|
|
|
#include <string>
|
2009-03-04 04:32:55 +01:00
|
|
|
|
2015-07-24 02:53:11 +02:00
|
|
|
class Action;
|
2015-07-31 21:45:25 +02:00
|
|
|
class Service;
|
2009-03-04 04:32:55 +01:00
|
|
|
|
2010-04-14 04:52:01 +02:00
|
|
|
#define COMMAND_RETRY_TIMEOUT 5
|
|
|
|
|
2015-07-31 21:45:25 +02:00
|
|
|
extern const char *ENV[32];
|
2015-02-07 05:15:18 +01:00
|
|
|
extern bool waiting_for_exec;
|
2016-03-21 09:23:43 +01:00
|
|
|
extern int have_console;
|
|
|
|
extern std::string console_name;
|
2015-02-07 05:15:18 +01:00
|
|
|
extern struct selabel_handle *sehandle;
|
|
|
|
extern struct selabel_handle *sehandle_prop;
|
|
|
|
|
2015-07-31 21:45:25 +02:00
|
|
|
void handle_control_message(const std::string& msg, const std::string& arg);
|
2010-04-14 04:48:59 +02:00
|
|
|
|
2009-03-04 04:32:55 +01:00
|
|
|
void property_changed(const char *name, const char *value);
|
|
|
|
|
2015-04-25 06:13:44 +02:00
|
|
|
void register_epoll_handler(int fd, void (*fn)());
|
|
|
|
|
2015-07-31 21:45:25 +02:00
|
|
|
int add_environment(const char* key, const char* val);
|
|
|
|
|
2015-07-24 02:53:11 +02:00
|
|
|
#endif /* _INIT_INIT_H */
|