summaryrefslogtreecommitdiffstats
path: root/init/init.h
diff options
context:
space:
mode:
authorKen Sumrall <ksumrall@android.com>2010-12-03 16:33:31 -0800
committerKen Sumrall <ksumrall@android.com>2010-12-18 19:03:54 -0800
commit752923c168009d03e9e00e590155fbd0a2880ccb (patch)
treec35bf2554955ca2494be8bcc839d5f00a9b5553b /init/init.h
parent36f93f01201bbff4a411c73adfbaf08bd93b1ad2 (diff)
downloadsystem_core-752923c168009d03e9e00e590155fbd0a2880ccb.zip
system_core-752923c168009d03e9e00e590155fbd0a2880ccb.tar.gz
system_core-752923c168009d03e9e00e590155fbd0a2880ccb.tar.bz2
Changes to init to support encrypted filesystems.
These are the changes to init and init.rc necessary to support booting with and encrypted /data filesystem. A corresponding change to init.<device>.rc goes along with this change. Change-Id: I0c7e2cc39568358014a82e317735c0eae14dd683
Diffstat (limited to 'init/init.h')
-rw-r--r--init/init.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/init/init.h b/init/init.h
index 8691335..05cdfaa 100644
--- a/init/init.h
+++ b/init/init.h
@@ -69,6 +69,8 @@ struct svcenvinfo {
#define SVC_RESTARTING 0x08 /* waiting to restart */
#define SVC_CONSOLE 0x10 /* requires console */
#define SVC_CRITICAL 0x20 /* will reboot into recovery if keeps crashing */
+#define SVC_RESET 0x40 /* Use when stopping a process, but not disabling
+ so it can be restarted with its class */
#define NR_SVC_SUPP_GIDS 12 /* twelve supplementary groups */
@@ -121,6 +123,7 @@ void service_for_each_class(const char *classname,
void service_for_each_flags(unsigned matchflags,
void (*func)(struct service *svc));
void service_stop(struct service *svc);
+void service_reset(struct service *svc);
void service_start(struct service *svc, const char *dynamic_args);
void property_changed(const char *name, const char *value);