diff options
author | Dimitry Ivanov <dimitry@google.com> | 2017-01-19 14:53:00 -0800 |
---|---|---|
committer | Dimitry Ivanov <dimitry@google.com> | 2017-01-23 15:30:05 -0800 |
commit | dee4bd236b706e229d4eb579613f4de3095ee33a (patch) | |
tree | d3be0f6e5aad5685883c754f99206c07653020f6 /init/property_service.h | |
parent | 13c15e05d0b6f35399800902eb8ea1943172db79 (diff) | |
download | core-dee4bd236b706e229d4eb579613f4de3095ee33a.tar.gz core-dee4bd236b706e229d4eb579613f4de3095ee33a.tar.bz2 core-dee4bd236b706e229d4eb579613f4de3095ee33a.zip |
New protocol for property_service
New protocol assumes that there is no limit on name or value
and effectively removed limit on property name length.
It also send back a uint32_t with error code (or 0 on success)
Bug: http://b/33926793
Test: mm, boot, run bionic-unit-tests --gtest_filter=prop*
Change-Id: Iac6290398ddc495e03f8fbbc3a79e923eff5df6f
Diffstat (limited to 'init/property_service.h')
-rw-r--r-- | init/property_service.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/init/property_service.h b/init/property_service.h index e3a2acb8f..5d5947325 100644 --- a/init/property_service.h +++ b/init/property_service.h @@ -27,14 +27,14 @@ struct property_audit_data { const char* name; }; -extern void property_init(void); -extern void property_load_boot_defaults(void); -extern void load_persist_props(void); -extern void load_system_props(void); -extern void start_property_service(void); +void property_init(void); +void property_load_boot_defaults(void); +void load_persist_props(void); +void load_system_props(void); +void start_property_service(void); std::string property_get(const char* name); -extern int property_set(const char *name, const char *value); -extern bool is_legal_property_name(const std::string &name); +uint32_t property_set(const std::string& name, const std::string& value); +bool is_legal_property_name(const std::string& name); #endif /* _INIT_PROPERTY_H */ |