Remove EXCLUDE_FS_CONFIG_STRUCTURES

Long overdue clean up; there is no reason to include fs_config.h in
android_filesystem_config.h, and the fact that it causes problems if
it's done, necessitating EXCLUDE_FS_CONFIG_STRUCTURES to exist, is a
good reason to fix it.

Bug: 149785767
Test: build
Change-Id: I5ba2541cd1045c22486140649c90db39163081fd
This commit is contained in:
Tom Cherry 2020-03-04 13:35:28 -08:00
parent 14ce87c7da
commit 6ad4d0a601
4 changed files with 5 additions and 17 deletions

View file

@ -13,6 +13,7 @@
#include <fcntl.h>
#include <private/android_filesystem_config.h>
#include <private/fs_config.h>
/* NOTES
**

View file

@ -32,6 +32,7 @@
#include <android-base/logging.h>
#include <android-base/parseint.h>
#include <android-base/strings.h>
#include <generated_android_ids.h>
#include <hidl/metadata.h>
#include <property_info_serializer/property_info_serializer.h>
@ -48,9 +49,6 @@
#include "service_list.h"
#include "service_parser.h"
#define EXCLUDE_FS_CONFIG_STRUCTURES
#include "generated_android_ids.h"
using namespace std::literals;
using android::base::ParseInt;

View file

@ -34,14 +34,7 @@
* partition, from which the system reads passwd and group files.
*/
#ifndef _ANDROID_FILESYSTEM_CONFIG_H_
#define _ANDROID_FILESYSTEM_CONFIG_H_
#include <sys/types.h>
#if !defined(__ANDROID_VNDK__) && !defined(EXCLUDE_FS_CONFIG_STRUCTURES)
#include <private/fs_config.h>
#endif
#pragma once
/* This is the master Users and Groups config for the platform.
* DO NOT EVER RENUMBER
@ -224,5 +217,3 @@
* documented at the top of this header file.
* Also see build/tools/fs_config for more details.
*/
#endif

View file

@ -14,10 +14,10 @@
* limitations under the License.
*/
#ifndef _CANNED_FS_CONFIG_H
#define _CANNED_FS_CONFIG_H
#pragma once
#include <inttypes.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
@ -26,5 +26,3 @@ void canned_fs_config(const char* path, int dir, const char* target_out_path, un
unsigned* gid, unsigned* mode, uint64_t* capabilities);
__END_DECLS
#endif