diff --git a/base/files/file.cc b/base/files/file.cc index aa4e59563d78..d582682a0d30 100644 --- a/base/files/file.cc +++ b/base/files/file.cc @@ -15,7 +15,6 @@ #include "base/timer/elapsed_timer.h" #include "base/trace_event/base_tracing.h" #include "build/build_config.h" - #if defined(STARBOARD) #include "starboard/types.h" #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA) diff --git a/base/files/file_enumerator.h b/base/files/file_enumerator.h index b970055bc8aa..ea49aeb16a28 100644 --- a/base/files/file_enumerator.h +++ b/base/files/file_enumerator.h @@ -20,7 +20,6 @@ #if defined(STARBOARD) #include #include -#include "starboard/file.h" #elif BUILDFLAG(IS_WIN) #include "base/win/windows_types.h" #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA) diff --git a/base/files/file_enumerator_starboard.cc b/base/files/file_enumerator_starboard.cc index a4ebb01e4f9a..efa6f0813f7e 100644 --- a/base/files/file_enumerator_starboard.cc +++ b/base/files/file_enumerator_starboard.cc @@ -22,8 +22,6 @@ #include "starboard/common/log.h" #include "starboard/common/string.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" -#include "starboard/file.h" #include "starboard/memory.h" namespace base { diff --git a/base/files/file_starboard.cc b/base/files/file_starboard.cc index 393c6b5d095b..7cd56ffef29b 100644 --- a/base/files/file_starboard.cc +++ b/base/files/file_starboard.cc @@ -28,7 +28,6 @@ #include "base/strings/stringprintf.h" #include "base/threading/thread_restrictions.h" #include "starboard/common/metrics/stats_tracker.h" -#include "starboard/file.h" namespace base { diff --git a/base/files/file_util_starboard.cc b/base/files/file_util_starboard.cc index bcec62a16edd..a86848f4dde9 100644 --- a/base/files/file_util_starboard.cc +++ b/base/files/file_util_starboard.cc @@ -35,7 +35,6 @@ #include "base/time/time.h" #include "starboard/configuration_constants.h" #include "starboard/common/file.h" -#include "starboard/directory.h" #include "base/strings/strcat.h" #include "starboard/system.h" diff --git a/base/files/platform_file.h b/base/files/platform_file.h index c3e9c511ef7e..169727ab086d 100644 --- a/base/files/platform_file.h +++ b/base/files/platform_file.h @@ -8,10 +8,6 @@ #include "base/files/scoped_file.h" #include "build/build_config.h" -#if defined(STARBOARD) -#include "starboard/file.h" -#endif - #if BUILDFLAG(IS_WIN) #include "base/win/scoped_handle.h" #include "base/win/windows_types.h" diff --git a/base/files/scoped_file.h b/base/files/scoped_file.h index f0a57f283a44..030430400dcb 100644 --- a/base/files/scoped_file.h +++ b/base/files/scoped_file.h @@ -15,7 +15,6 @@ #include "build/build_config.h" #if defined(STARBOARD) -#include "starboard/file.h" #include "starboard/types.h" #include "starboard/common/file.h" #endif diff --git a/base/logging.cc b/base/logging.cc index 5900a58e9e7f..f988b19bb0e9 100644 --- a/base/logging.cc +++ b/base/logging.cc @@ -48,7 +48,6 @@ #include "starboard/common/time.h" #include "starboard/configuration.h" #include "starboard/configuration_constants.h" -#include "starboard/file.h" #include "starboard/system.h" typedef int* FileHandle; typedef pthread_mutex_t MutexHandle; diff --git a/base/memory/platform_shared_memory_handle.h b/base/memory/platform_shared_memory_handle.h index 2869f0313a41..0de54d0f3b08 100644 --- a/base/memory/platform_shared_memory_handle.h +++ b/base/memory/platform_shared_memory_handle.h @@ -20,7 +20,6 @@ #include "base/files/scoped_file.h" #elif defined(STARBOARD) #include "base/files/scoped_file.h" -#include "starboard/file.h" #endif namespace base::subtle { diff --git a/chrome/updater/util.cc b/chrome/updater/util.cc index 164c1a9af22b..bc50f5e6dbba 100644 --- a/chrome/updater/util.cc +++ b/chrome/updater/util.cc @@ -23,8 +23,6 @@ #include "crypto/sha2.h" #include "starboard/configuration_constants.h" #include "starboard/extension/installation_manager.h" -#include "starboard/file.h" -#include "starboard/string.h" #include "starboard/system.h" #define PRODUCT_FULLNAME_STRING "cobalt_updater" diff --git a/chrome/updater/utils_test.cc b/chrome/updater/utils_test.cc index 3e9f7ea12afa..c9b2b1015dbd 100644 --- a/chrome/updater/utils_test.cc +++ b/chrome/updater/utils_test.cc @@ -24,7 +24,6 @@ #include "base/strings/strcat.h" #include "base/values.h" #include "gmock/gmock.h" -#include "starboard/directory.h" #include "starboard/extension/installation_manager.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/cobalt/browser/memory_settings/pretty_print_test.cc b/cobalt/browser/memory_settings/pretty_print_test.cc index 88b85d2f42b7..5dfaaab4db76 100644 --- a/cobalt/browser/memory_settings/pretty_print_test.cc +++ b/cobalt/browser/memory_settings/pretty_print_test.cc @@ -28,7 +28,6 @@ #include "cobalt/browser/memory_settings/test_common.h" #include "cobalt/browser/switches.h" #include "starboard/memory.h" -#include "starboard/string.h" #include "starboard/system.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/cobalt/browser/memory_settings/table_printer_test.cc b/cobalt/browser/memory_settings/table_printer_test.cc index 11cc2147ac77..c2141ebdab35 100644 --- a/cobalt/browser/memory_settings/table_printer_test.cc +++ b/cobalt/browser/memory_settings/table_printer_test.cc @@ -17,7 +17,6 @@ #include "cobalt/browser/memory_settings/table_printer.h" #include "base/logging.h" -#include "starboard/string.h" #include "testing/gtest/include/gtest/gtest.h" namespace cobalt { diff --git a/cobalt/browser/splash_screen_cache.cc b/cobalt/browser/splash_screen_cache.cc index 309d1a31c071..91cde37eccaf 100644 --- a/cobalt/browser/splash_screen_cache.cc +++ b/cobalt/browser/splash_screen_cache.cc @@ -30,7 +30,6 @@ #include "cobalt/base/get_application_key.h" #include "starboard/common/string.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" namespace cobalt { namespace browser { diff --git a/cobalt/cache/memory_capped_directory.cc b/cobalt/cache/memory_capped_directory.cc index 9724e31f18b1..ff212483f61a 100644 --- a/cobalt/cache/memory_capped_directory.cc +++ b/cobalt/cache/memory_capped_directory.cc @@ -23,7 +23,6 @@ #include "base/json/json_reader.h" #include "base/json/json_writer.h" #include "base/strings/string_number_conversions.h" -#include "starboard/directory.h" namespace cobalt { namespace cache { diff --git a/cobalt/configuration/configuration.cc b/cobalt/configuration/configuration.cc index c37e6d3229d5..742334e1140b 100644 --- a/cobalt/configuration/configuration.cc +++ b/cobalt/configuration/configuration.cc @@ -19,7 +19,6 @@ #include "base/logging.h" #include "base/memory/singleton.h" #include "starboard/common/configuration_defaults.h" -#include "starboard/string.h" #include "starboard/system.h" namespace cobalt { diff --git a/cobalt/debug/console/command_manager.cc b/cobalt/debug/console/command_manager.cc index 565091b1f5fd..bf9bfec64add 100644 --- a/cobalt/debug/console/command_manager.cc +++ b/cobalt/debug/console/command_manager.cc @@ -17,7 +17,6 @@ #include #include "base/logging.h" -#include "starboard/string.h" namespace cobalt { namespace debug { diff --git a/cobalt/dom/navigator.cc b/cobalt/dom/navigator.cc index 0aabea2ccb9d..9a9e37258179 100644 --- a/cobalt/dom/navigator.cc +++ b/cobalt/dom/navigator.cc @@ -31,7 +31,6 @@ #include "cobalt/web/navigator_base.h" #include "cobalt/worker/service_worker_container.h" #include "starboard/configuration_constants.h" -#include "starboard/file.h" #include "starboard/media.h" namespace cobalt { diff --git a/cobalt/dom/window.cc b/cobalt/dom/window.cc index 0161ca4dff7b..dec0fb0fcc75 100644 --- a/cobalt/dom/window.cc +++ b/cobalt/dom/window.cc @@ -57,7 +57,6 @@ #include "cobalt/web/environment_settings_helper.h" #include "cobalt/web/event.h" #include "cobalt/web/window_or_worker_global_scope.h" -#include "starboard/file.h" using cobalt::cssom::ViewportSize; using cobalt::media_session::MediaSession; diff --git a/cobalt/loader/image/jpeg_image_decoder.h b/cobalt/loader/image/jpeg_image_decoder.h index 6ca8a25fa16d..37352aea9b32 100644 --- a/cobalt/loader/image/jpeg_image_decoder.h +++ b/cobalt/loader/image/jpeg_image_decoder.h @@ -23,7 +23,6 @@ #include "base/callback.h" #include "cobalt/loader/image/image.h" #include "cobalt/loader/image/image_data_decoder.h" -#include "starboard/file.h" // Inhibit C++ name-mangling for libjpeg functions. extern "C" { diff --git a/cobalt/media/sandbox/fuzzer_app.cc b/cobalt/media/sandbox/fuzzer_app.cc index e1234bd08c92..1411c50c78ac 100644 --- a/cobalt/media/sandbox/fuzzer_app.cc +++ b/cobalt/media/sandbox/fuzzer_app.cc @@ -19,7 +19,6 @@ #include "base/files/file_util.h" #include "base/logging.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" namespace cobalt { namespace media { diff --git a/cobalt/network/dial/dial_system_config.cc b/cobalt/network/dial/dial_system_config.cc index f37d86436a8f..7d9bc32cf3e1 100644 --- a/cobalt/network/dial/dial_system_config.cc +++ b/cobalt/network/dial/dial_system_config.cc @@ -25,7 +25,6 @@ #include "net/base/net_string_util.h" #if defined(STARBOARD) -#include "starboard/string.h" #include "starboard/types.h" #endif diff --git a/cobalt/renderer/backend/graphics_context.cc b/cobalt/renderer/backend/graphics_context.cc index 013d9e208277..c8f70fcea59a 100644 --- a/cobalt/renderer/backend/graphics_context.cc +++ b/cobalt/renderer/backend/graphics_context.cc @@ -18,7 +18,6 @@ #include "base/logging.h" #include "starboard/gles.h" -#include "starboard/string.h" namespace cobalt { namespace renderer { diff --git a/cobalt/renderer/rasterizer/skia/skia/src/ports/SkFontMgr_cobalt.cc b/cobalt/renderer/rasterizer/skia/skia/src/ports/SkFontMgr_cobalt.cc index d5cec3ec14cd..ede3ad3f6231 100644 --- a/cobalt/renderer/rasterizer/skia/skia/src/ports/SkFontMgr_cobalt.cc +++ b/cobalt/renderer/rasterizer/skia/skia/src/ports/SkFontMgr_cobalt.cc @@ -33,7 +33,6 @@ #include "cobalt/renderer/rasterizer/skia/skia/src/ports/SkFreeType_cobalt.h" #include "cobalt/renderer/rasterizer/skia/skia/src/ports/SkTypeface_cobalt.h" #include "starboard/extension/font.h" -#include "starboard/string.h" #include "third_party/icu/source/common/unicode/locid.h" const char* ROBOTO_SCRIPT = "latn"; diff --git a/cobalt/script/v8c/isolate_fellowship.cc b/cobalt/script/v8c/isolate_fellowship.cc index 0af59d539354..4abfcacbc662 100644 --- a/cobalt/script/v8c/isolate_fellowship.cc +++ b/cobalt/script/v8c/isolate_fellowship.cc @@ -26,7 +26,6 @@ #include "cobalt/script/v8c/switches.h" #include "cobalt/script/v8c/v8c_tracing_controller.h" #include "starboard/configuration_constants.h" -#include "starboard/file.h" #include "starboard/memory.h" namespace cobalt { diff --git a/components/update_client/cobalt_slot_management_test.cc b/components/update_client/cobalt_slot_management_test.cc index 47e3434be6b6..378ddaf13562 100644 --- a/components/update_client/cobalt_slot_management_test.cc +++ b/components/update_client/cobalt_slot_management_test.cc @@ -23,6 +23,7 @@ #include "base/time/time.h" #include "starboard/common/file.h" #include "starboard/extension/free_space.h" +#include "starboard/file.h" #include "starboard/loader_app/app_key_files.h" #include "starboard/loader_app/drain_file.h" #include "starboard/loader_app/drain_file_helper.h" diff --git a/net/cert/internal/trust_store_in_memory_starboard.cc b/net/cert/internal/trust_store_in_memory_starboard.cc index 1bc400f5ce53..9d95765cfb55 100644 --- a/net/cert/internal/trust_store_in_memory_starboard.cc +++ b/net/cert/internal/trust_store_in_memory_starboard.cc @@ -27,9 +27,6 @@ #include "net/cert/x509_util.h" #include "starboard/common/string.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" -#include "starboard/file.h" -#include "starboard/string.h" #include "third_party/boringssl/src/include/openssl/digest.h" #include "third_party/boringssl/src/include/openssl/sha.h" #include "third_party/boringssl/src/include/openssl/x509.h" diff --git a/net/third_party/quiche/src/quiche/common/platform/default/quiche_platform_impl/quiche_file_utils_impl.cc b/net/third_party/quiche/src/quiche/common/platform/default/quiche_platform_impl/quiche_file_utils_impl.cc index bcdc306de5be..d6d62111054d 100644 --- a/net/third_party/quiche/src/quiche/common/platform/default/quiche_platform_impl/quiche_file_utils_impl.cc +++ b/net/third_party/quiche/src/quiche/common/platform/default/quiche_platform_impl/quiche_file_utils_impl.cc @@ -12,7 +12,6 @@ #include #include "starboard/configuration_constants.h" -#include "starboard/directory.h" #elif defined(_WIN32) #include #else diff --git a/starboard/accessibility.h b/starboard/accessibility.h deleted file mode 100644 index 3f765b42653d..000000000000 --- a/starboard/accessibility.h +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2017 The Cobalt Authors. All Rights Reserved. -// -// 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. - -// Module Overview: Starboard Accessibility module -// -// Provides access to the system options and settings related to accessibility. - -#ifndef STARBOARD_ACCESSIBILITY_H_ -#define STARBOARD_ACCESSIBILITY_H_ - -#error This file is deprecated with SB_API_VERSION 16. - -#endif // STARBOARD_ACCESSIBILITY_H_ diff --git a/starboard/android/shared/android_main.cc b/starboard/android/shared/android_main.cc index 011611739aaa..9912d85586f2 100644 --- a/starboard/android/shared/android_main.cc +++ b/starboard/android/shared/android_main.cc @@ -26,10 +26,6 @@ #include "starboard/common/file.h" #include "starboard/common/semaphore.h" #include "starboard/common/string.h" -#if SB_IS(EVERGREEN_COMPATIBLE) -#include "starboard/directory.h" -#include "starboard/file.h" -#endif #include "starboard/event.h" #include "starboard/log.h" #include "starboard/shared/starboard/command_line.h" diff --git a/starboard/android/shared/file_internal.h b/starboard/android/shared/file_internal.h index 7d33227c16d3..866b9f42bfb4 100644 --- a/starboard/android/shared/file_internal.h +++ b/starboard/android/shared/file_internal.h @@ -19,7 +19,6 @@ #include -#include "starboard/file.h" #include "starboard/shared/internal_only.h" struct SbFilePrivate { diff --git a/starboard/android/shared/media_is_supported.cc b/starboard/android/shared/media_is_supported.cc index c27e0d235e16..04acefb035b1 100644 --- a/starboard/android/shared/media_is_supported.cc +++ b/starboard/android/shared/media_is_supported.cc @@ -20,7 +20,6 @@ #include "starboard/android/shared/media_common.h" #include "starboard/media.h" #include "starboard/shared/starboard/media/mime_type.h" -#include "starboard/string.h" bool SbMediaIsSupported(SbMediaVideoCodec video_codec, SbMediaAudioCodec audio_codec, diff --git a/starboard/android/shared/player_create.cc b/starboard/android/shared/player_create.cc index 78b4ba46f252..b51203e6a588 100644 --- a/starboard/android/shared/player_create.cc +++ b/starboard/android/shared/player_create.cc @@ -27,7 +27,6 @@ #include "starboard/shared/starboard/player/filter/filter_based_player_worker_handler.h" #include "starboard/shared/starboard/player/player_internal.h" #include "starboard/shared/starboard/player/player_worker.h" -#include "starboard/string.h" using starboard::shared::starboard::player::PlayerWorker; using starboard::shared::starboard::player::filter:: diff --git a/starboard/android/shared/player_get_preferred_output_mode.cc b/starboard/android/shared/player_get_preferred_output_mode.cc index 185f8e1bd3dd..65fbfc08f0e7 100644 --- a/starboard/android/shared/player_get_preferred_output_mode.cc +++ b/starboard/android/shared/player_get_preferred_output_mode.cc @@ -19,7 +19,6 @@ #include "starboard/configuration.h" #include "starboard/shared/starboard/media/media_util.h" #include "starboard/shared/starboard/player/filter/player_components.h" -#include "starboard/string.h" SbPlayerOutputMode SbPlayerGetPreferredOutputMode( const SbPlayerCreationParam* creation_param) { diff --git a/starboard/android/shared/posix_emu/file.cc b/starboard/android/shared/posix_emu/file.cc index 6f876e5856d9..f16313a00222 100644 --- a/starboard/android/shared/posix_emu/file.cc +++ b/starboard/android/shared/posix_emu/file.cc @@ -20,7 +20,6 @@ #include "starboard/android/shared/file_internal.h" #include "starboard/common/log.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" #include "starboard/log.h" using starboard::android::shared::AssetManager; diff --git a/starboard/android/shared/posix_emu/stat.cc b/starboard/android/shared/posix_emu/stat.cc index 3ed8a9acf5b9..55bcfc555b88 100644 --- a/starboard/android/shared/posix_emu/stat.cc +++ b/starboard/android/shared/posix_emu/stat.cc @@ -20,7 +20,6 @@ #include "starboard/android/shared/file_internal.h" #include "starboard/common/log.h" -#include "starboard/directory.h" using starboard::android::shared::IsAndroidAssetPath; using starboard::android::shared::OpenAndroidAsset; diff --git a/starboard/android/shared/system_get_path.cc b/starboard/android/shared/system_get_path.cc index 139318d0c7f2..379cf1f81233 100644 --- a/starboard/android/shared/system_get_path.cc +++ b/starboard/android/shared/system_get_path.cc @@ -23,7 +23,6 @@ #include "starboard/android/shared/file_internal.h" #include "starboard/common/log.h" #include "starboard/common/string.h" -#include "starboard/directory.h" #if SB_IS(EVERGREEN_COMPATIBLE) #include "starboard/elf_loader/evergreen_config.h" // nogncheck diff --git a/starboard/android/shared/video_decoder.cc b/starboard/android/shared/video_decoder.cc index 48527d2c635a..e345dc1e5e61 100644 --- a/starboard/android/shared/video_decoder.cc +++ b/starboard/android/shared/video_decoder.cc @@ -36,7 +36,6 @@ #include "starboard/memory.h" #include "starboard/shared/starboard/media/mime_type.h" #include "starboard/shared/starboard/player/filter/video_frame_internal.h" -#include "starboard/string.h" #include "starboard/thread.h" namespace starboard { diff --git a/starboard/byte_swap.h b/starboard/byte_swap.h deleted file mode 100644 index e86240a8fc06..000000000000 --- a/starboard/byte_swap.h +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2016 The Cobalt Authors. All Rights Reserved. -// -// 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. - -// Module Overview: Starboard Byte Swap module -// -// Specifies functions for swapping byte order. These functions are used to -// deal with endianness when performing I/O. - -#ifndef STARBOARD_BYTE_SWAP_H_ -#define STARBOARD_BYTE_SWAP_H_ - -#error This file is deprecated with SB_API_VERSION 16. - -#endif // STARBOARD_BYTE_SWAP_H_ diff --git a/starboard/client_porting/icu_init/icu_init.cc b/starboard/client_porting/icu_init/icu_init.cc index d2fca9df3bc1..63c47bcbc080 100644 --- a/starboard/client_porting/icu_init/icu_init.cc +++ b/starboard/client_porting/icu_init/icu_init.cc @@ -23,7 +23,6 @@ #include "starboard/common/once.h" #include "starboard/configuration.h" #include "starboard/configuration_constants.h" -#include "starboard/file.h" #include "starboard/system.h" #include "third_party/icu/source/common/unicode/putil.h" #include "third_party/icu/source/common/unicode/udata.h" diff --git a/starboard/common/condition_variable.h b/starboard/common/condition_variable.h index c7db1264f3f7..ac533379a0e6 100644 --- a/starboard/common/condition_variable.h +++ b/starboard/common/condition_variable.h @@ -23,7 +23,6 @@ #include #include "starboard/common/mutex.h" -#include "starboard/condition_variable.h" #include "starboard/configuration.h" #include "starboard/types.h" diff --git a/starboard/common/experimental/concurrency_debug.h b/starboard/common/experimental/concurrency_debug.h index f07e2b2708fd..8b0379ee6302 100644 --- a/starboard/common/experimental/concurrency_debug.h +++ b/starboard/common/experimental/concurrency_debug.h @@ -22,7 +22,6 @@ #include "starboard/common/log.h" #include "starboard/common/time.h" #include "starboard/configuration_constants.h" -#include "starboard/mutex.h" #include "starboard/thread.h" // WARNING: Features inside experimental namespace is strictly experimental and diff --git a/starboard/common/file.cc b/starboard/common/file.cc index 4e5b30608c52..351fe59b7925 100644 --- a/starboard/common/file.cc +++ b/starboard/common/file.cc @@ -27,10 +27,6 @@ #include "starboard/common/metrics/stats_tracker.h" #include "starboard/common/string.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" -#include "starboard/file.h" -#include "starboard/shared/starboard/file_atomic_replace_write_file.h" -#include "starboard/string.h" namespace starboard { namespace { diff --git a/starboard/common/paths.cc b/starboard/common/paths.cc index ef44eb3d4853..290b25b4acc2 100644 --- a/starboard/common/paths.cc +++ b/starboard/common/paths.cc @@ -20,7 +20,6 @@ #include #include "starboard/common/log.h" #include "starboard/configuration_constants.h" -#include "starboard/file.h" #include "starboard/system.h" namespace starboard { diff --git a/starboard/common/string.h b/starboard/common/string.h index 49e6a1bbe7f5..24f8192c9a03 100644 --- a/starboard/common/string.h +++ b/starboard/common/string.h @@ -28,7 +28,7 @@ #include #include "starboard/configuration.h" -#include "starboard/string.h" +#include "starboard/types.h" namespace starboard { diff --git a/starboard/condition_variable.h b/starboard/condition_variable.h deleted file mode 100644 index b14f08be9f96..000000000000 --- a/starboard/condition_variable.h +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2015 The Cobalt Authors. All Rights Reserved. -// -// 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. - -// Module Overview: Starboard Condition Variable module -// -// Defines an interface for condition variables. - -#ifndef STARBOARD_CONDITION_VARIABLE_H_ -#define STARBOARD_CONDITION_VARIABLE_H_ - -#include "starboard/configuration.h" - -#if SB_API_VERSION < 16 - -#include "starboard/export.h" -#include "starboard/mutex.h" -#include "starboard/types.h" - -#ifdef __cplusplus -extern "C" { -#endif - -// Max size of the SbConditionVariable type. -#define SB_CONDITION_VARIABLE_MAX_SIZE 80 - -// An opaque handle to a condition variable type with -// reserved memory buffer of size SB_CONDITION_VARIABLE_MAX_SIZE and -// aligned at void pointer type. -typedef union SbConditionVariable { - // Reserved memory in which the implementation should map its - // native condition variable type. - uint8_t condition_buffer[SB_CONDITION_VARIABLE_MAX_SIZE]; - - // Guarantees alignment of the type to a void pointer. - void* ptr; -} SbConditionVariable; - -#ifdef __cplusplus -#define SB_CONDITION_VARIABLE_INITIALIZER \ - {} -#else -#define SB_CONDITION_VARIABLE_INITIALIZER {0} -#endif - -// Enumeration of possible results from waiting on a condvar. -typedef enum SbConditionVariableResult { - // The wait completed because the condition variable was signaled. - kSbConditionVariableSignaled, - - // The wait completed because it timed out, and was not signaled. - kSbConditionVariableTimedOut, - - // The wait failed, either because a parameter wasn't valid, or the condition - // variable has already been destroyed, or something similar. - kSbConditionVariableFailed, -} SbConditionVariableResult; - -// Returns whether the given result is a success. -static inline bool SbConditionVariableIsSignaled( - SbConditionVariableResult result) { - return result == kSbConditionVariableSignaled; -} - -// Creates a new condition variable to work with |opt_mutex|, which may be null, -// placing the newly created condition variable in |out_condition|. -// -// The return value indicates whether the condition variable could be created. -SB_EXPORT bool SbConditionVariableCreate(SbConditionVariable* out_condition, - SbMutex* opt_mutex); - -// Destroys the specified SbConditionVariable. The return value indicates -// whether the destruction was successful. The behavior is undefined if other -// threads are currently waiting on this condition variable. -// -// |condition|: The SbConditionVariable to be destroyed. This invalidates the -// condition variable. -SB_EXPORT bool SbConditionVariableDestroy(SbConditionVariable* condition); - -// Waits for |condition|, releasing the held lock |mutex|, blocking -// indefinitely, and returning the result. Behavior is undefined if |mutex| is -// not held. -SB_EXPORT SbConditionVariableResult -SbConditionVariableWait(SbConditionVariable* condition, SbMutex* mutex); - -// Waits for |condition|, releasing the held lock |mutex|, blocking up to -// |timeout_duration|, and returning the acquisition result. Behavior is -// undefined if |mutex| is not held. -// -// |timeout_duration|: The maximum amount of time that function should wait -// for |condition|, in microseconds. If the |timeout_duration| value is less -// than or equal to zero, the function returns as quickly as possible with a -// kSbConditionVariableTimedOut result. -SB_EXPORT SbConditionVariableResult -SbConditionVariableWaitTimed(SbConditionVariable* condition, - SbMutex* mutex, - int64_t timeout_duration); - -// Broadcasts to all current waiters of |condition| to stop waiting. This -// function wakes all of the threads waiting on |condition| while -// SbConditionVariableSignal wakes a single thread. -// -// |condition|: The condition that should no longer be waited for. -SB_EXPORT bool SbConditionVariableBroadcast(SbConditionVariable* condition); - -// Signals the next waiter of |condition| to stop waiting. This function wakes -// a single thread waiting on |condition| while SbConditionVariableBroadcast -// wakes all threads waiting on it. -// -// |condition|: The condition that the waiter should stop waiting for. -SB_EXPORT bool SbConditionVariableSignal(SbConditionVariable* condition); - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif // SB_API_VERSION < 16 -#endif // STARBOARD_CONDITION_VARIABLE_H_ diff --git a/starboard/contrib/cast/cast_starboard_api/samples/cast_starboard_api_test.cc b/starboard/contrib/cast/cast_starboard_api/samples/cast_starboard_api_test.cc index cc6ff4dbed19..f7235bc98c7e 100644 --- a/starboard/contrib/cast/cast_starboard_api/samples/cast_starboard_api_test.cc +++ b/starboard/contrib/cast/cast_starboard_api/samples/cast_starboard_api_test.cc @@ -8,7 +8,6 @@ #include "starboard/common/thread.h" #include "starboard/egl.h" #include "starboard/event.h" -#include "starboard/file.h" #include "starboard/gles.h" #include "starboard/system.h" #include "starboard/window.h" diff --git a/starboard/directory.h b/starboard/directory.h deleted file mode 100644 index c5b5af9250d3..000000000000 --- a/starboard/directory.h +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2015 The Cobalt Authors. All Rights Reserved. -// -// 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. - -// Module Overview: Starboard Directory module -// -// Provides directory listing functions. - -#ifndef STARBOARD_DIRECTORY_H_ -#define STARBOARD_DIRECTORY_H_ - -#include "starboard/configuration.h" -#include "starboard/export.h" -#include "starboard/file.h" -#include "starboard/types.h" - -#ifdef __cplusplus -extern "C" { -#endif - -// Private structure representing an open directory stream. -struct SbDirectoryPrivate; - -// A handle to an open directory stream. -typedef struct SbDirectoryPrivate* SbDirectory; - -// Well-defined value for an invalid directory stream handle. -#define kSbDirectoryInvalid ((SbDirectory)NULL) - -// Returns whether the given directory stream handle is valid. -static inline bool SbDirectoryIsValid(SbDirectory directory) { - return directory != kSbDirectoryInvalid; -} - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif // STARBOARD_DIRECTORY_H_ diff --git a/starboard/elf_loader/dynamic_section_test.cc b/starboard/elf_loader/dynamic_section_test.cc index e0483cd6927d..c61107ca9eca 100644 --- a/starboard/elf_loader/dynamic_section_test.cc +++ b/starboard/elf_loader/dynamic_section_test.cc @@ -14,7 +14,6 @@ #include "starboard/elf_loader/dynamic_section.h" -#include "starboard/string.h" #include "testing/gtest/include/gtest/gtest.h" namespace starboard { diff --git a/starboard/elf_loader/elf_hash_table.cc b/starboard/elf_loader/elf_hash_table.cc index 11580e06d84b..edba5a3b6236 100644 --- a/starboard/elf_loader/elf_hash_table.cc +++ b/starboard/elf_loader/elf_hash_table.cc @@ -16,8 +16,6 @@ #include -#include "starboard/string.h" - namespace starboard { namespace elf_loader { diff --git a/starboard/elf_loader/elf_loader_impl.cc b/starboard/elf_loader/elf_loader_impl.cc index 2875e49c2b8e..8c1913203eee 100644 --- a/starboard/elf_loader/elf_loader_impl.cc +++ b/starboard/elf_loader/elf_loader_impl.cc @@ -25,7 +25,6 @@ #include "starboard/elf_loader/lz4_file_impl.h" #include "starboard/extension/loader_app_metrics.h" #include "starboard/memory.h" -#include "starboard/string.h" #include "starboard/system.h" namespace starboard { diff --git a/starboard/elf_loader/elf_loader_sandbox.cc b/starboard/elf_loader/elf_loader_sandbox.cc index 63c12f63f865..2961c41b87c1 100644 --- a/starboard/elf_loader/elf_loader_sandbox.cc +++ b/starboard/elf_loader/elf_loader_sandbox.cc @@ -24,7 +24,6 @@ #include "starboard/elf_loader/sabi_string.h" #include "starboard/event.h" #include "starboard/shared/starboard/command_line.h" -#include "starboard/string.h" #include "third_party/crashpad/crashpad/wrapper/annotations.h" #include "third_party/crashpad/crashpad/wrapper/wrapper.h" diff --git a/starboard/elf_loader/evergreen_config.cc b/starboard/elf_loader/evergreen_config.cc index ed17ecaef438..6e1723b5d190 100644 --- a/starboard/elf_loader/evergreen_config.cc +++ b/starboard/elf_loader/evergreen_config.cc @@ -19,7 +19,6 @@ #include "starboard/common/log.h" #include "starboard/common/mutex.h" #include "starboard/memory.h" -#include "starboard/string.h" namespace starboard { namespace elf_loader { diff --git a/starboard/elf_loader/exported_symbols.cc b/starboard/elf_loader/exported_symbols.cc index 0d85b766298c..1d875d6e8673 100644 --- a/starboard/elf_loader/exported_symbols.cc +++ b/starboard/elf_loader/exported_symbols.cc @@ -28,12 +28,10 @@ #include "starboard/audio_sink.h" #include "starboard/common/log.h" -#include "starboard/condition_variable.h" #include "starboard/configuration.h" #include "starboard/configuration_constants.h" #include "starboard/cpu_features.h" #include "starboard/decode_target.h" -#include "starboard/directory.h" #include "starboard/egl.h" #include "starboard/event.h" #include "starboard/file.h" @@ -41,7 +39,6 @@ #include "starboard/log.h" #include "starboard/memory.h" #include "starboard/microphone.h" -#include "starboard/mutex.h" #include "starboard/player.h" #if SB_API_VERSION >= 16 #include "starboard/shared/modular/starboard_layer_posix_directory_abi_wrappers.h" @@ -57,7 +54,6 @@ #include "starboard/socket_waiter.h" #include "starboard/speech_synthesis.h" #include "starboard/storage.h" -#include "starboard/string.h" #include "starboard/system.h" #include "starboard/thread.h" #include "starboard/time_zone.h" diff --git a/starboard/elf_loader/file_impl.h b/starboard/elf_loader/file_impl.h index a1a2f9525be5..99f6533fe08e 100644 --- a/starboard/elf_loader/file_impl.h +++ b/starboard/elf_loader/file_impl.h @@ -19,8 +19,6 @@ #include -#include "starboard/file.h" - namespace starboard { namespace elf_loader { diff --git a/starboard/elf_loader/gnu_hash_table.cc b/starboard/elf_loader/gnu_hash_table.cc index 3d7b529f4c52..6ea286c99dca 100644 --- a/starboard/elf_loader/gnu_hash_table.cc +++ b/starboard/elf_loader/gnu_hash_table.cc @@ -18,7 +18,6 @@ #include "starboard/common/log.h" #include "starboard/elf_loader/log.h" -#include "starboard/string.h" namespace starboard { namespace elf_loader { diff --git a/starboard/elf_loader/lz4_file_impl_test.cc b/starboard/elf_loader/lz4_file_impl_test.cc index 1828e5a64f57..dedecb32f810 100644 --- a/starboard/elf_loader/lz4_file_impl_test.cc +++ b/starboard/elf_loader/lz4_file_impl_test.cc @@ -17,7 +17,6 @@ #include "starboard/elf_loader/lz4_file_impl.h" #include "starboard/configuration_constants.h" -#include "starboard/string.h" #include "starboard/system.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/elf_loader/program_table.cc b/starboard/elf_loader/program_table.cc index 3dcb3e26a7de..e3cba22762fc 100644 --- a/starboard/elf_loader/program_table.cc +++ b/starboard/elf_loader/program_table.cc @@ -21,7 +21,6 @@ #include "starboard/elf_loader/evergreen_info.h" #include "starboard/elf_loader/log.h" #include "starboard/memory.h" -#include "starboard/string.h" #define MAYBE_MAP_FLAG(x, from, to) (((x) & (from)) ? (to) : 0) diff --git a/starboard/elf_loader/relocations_test.cc b/starboard/elf_loader/relocations_test.cc index a55c0d32acde..4ce54b2cfc0b 100644 --- a/starboard/elf_loader/relocations_test.cc +++ b/starboard/elf_loader/relocations_test.cc @@ -18,7 +18,6 @@ #include "starboard/elf_loader/elf.h" #include "starboard/elf_loader/file_impl.h" -#include "starboard/string.h" #include "testing/gtest/include/gtest/gtest.h" namespace starboard { diff --git a/starboard/elf_loader/sabi_string.cc b/starboard/elf_loader/sabi_string.cc index 2204160bc104..da5bad354be9 100644 --- a/starboard/elf_loader/sabi_string.cc +++ b/starboard/elf_loader/sabi_string.cc @@ -17,7 +17,6 @@ #include #include "starboard/common/log.h" -#include "starboard/string.h" extern "C" { diff --git a/starboard/file.h b/starboard/file.h index 6f2641807fbb..9f01335da26a 100644 --- a/starboard/file.h +++ b/starboard/file.h @@ -26,111 +26,6 @@ extern "C" { #endif -#if SB_API_VERSION < 17 - -// Private structure representing an open file. -typedef struct SbFilePrivate SbFilePrivate; - -// A handle to an open file. -typedef SbFilePrivate* SbFile; - -// Flags that define how a file is used in the application. These flags should -// be or'd together when passed to SbFileOpen to open or create a file. -// -// The following five flags are mutually exclusive. You must specify exactly one -// of them: -// - |kSbFileOpenAlways| -// - |kSbFileOpenOnly| -// - |kSbFileOpenTruncated| -// - |kSbFileCreateAlways| -// - |kSbFileCreateOnly| -// -// In addition, one or more of the following flags must be specified: -// - |kSbFileRead| -// - |kSbFileWrite| -// -// The |kSbFileAsync| flag is optional. -typedef enum SbFileFlags { - kSbFileOpenOnly = 1 << 0, // Opens a file, only if it exists. - kSbFileCreateOnly = 1 << 1, // Creates a new file, only if it - // does not already exist. - kSbFileOpenAlways = 1 << 2, // Opens an existing file at the specified - // path or creates a new file at that path. - kSbFileCreateAlways = 1 << 3, // Creates a new file at the specified path - // or overwrites an existing file at that - // path. - kSbFileOpenTruncated = 1 << 4, // Opens a file and truncates it to zero, - // only if it exists. - kSbFileRead = 1 << 5, - kSbFileWrite = 1 << 6, - kSbFileAsync = 1 << 7, // May allow asynchronous I/O on some - // platforms, meaning that calls to - // Read or Write will only return the - // data that is readily available. -} SbFileFlags; - -// kSbFileErrorAccessDenied is returned when a call fails because of a -// filesystem restriction. kSbFileErrorSecurity is returned when a security -// policy doesn't allow the operation to be executed. -typedef enum SbFileError { - kSbFileOk = 0, - kSbFileErrorFailed = -1, - kSbFileErrorInUse = -2, - kSbFileErrorExists = -3, - kSbFileErrorNotFound = -4, - kSbFileErrorAccessDenied = -5, - kSbFileErrorTooManyOpened = -6, - kSbFileErrorNoMemory = -7, - kSbFileErrorNoSpace = -8, - kSbFileErrorNotADirectory = -9, - kSbFileErrorInvalidOperation = -10, - kSbFileErrorSecurity = -11, - kSbFileErrorAbort = -12, - kSbFileErrorNotAFile = -13, - kSbFileErrorNotEmpty = -14, - kSbFileErrorInvalidUrl = -15, - kSbFileErrorIO = -16, - kSbFileErrorMax = -17, -} SbFileError; - -// This explicit mapping matches both FILE_ on Windows and SEEK_ on Linux. -typedef enum SbFileWhence { - kSbFileFromBegin = 0, - kSbFileFromCurrent = 1, - kSbFileFromEnd = 2, -} SbFileWhence; - -// Used to hold information about a file. -typedef struct SbFileInfo { - // The size of the file in bytes. Undefined when is_directory is true. - int64_t size; - - // Whether the file corresponds to a directory. - bool is_directory; - - // Whether the file corresponds to a symbolic link. - bool is_symbolic_link; - - // The last modified time of a file - microseconds since Windows epoch UTC. - int64_t last_modified; - - // The last accessed time of a file - microseconds since Windows epoch UTC. - int64_t last_accessed; - - // The creation time of a file - microseconds since Windows epoch UTC. - int64_t creation_time; -} SbFileInfo; - -// Well-defined value for an invalid file handle. -#define kSbFileInvalid (SbFile) NULL - -// Returns whether the given file handle is valid. -static inline bool SbFileIsValid(SbFile file) { - return file != kSbFileInvalid; -} - -#endif - // Replaces the content of the file at |path| with |data|. Returns whether the // contents of the file were replaced. The replacement of the content is an // atomic operation. The file will either have all of the data, or none. diff --git a/starboard/image.h b/starboard/image.h deleted file mode 100644 index 831abe177b1d..000000000000 --- a/starboard/image.h +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2016 The Cobalt Authors. All Rights Reserved. -// -// 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. - -// Module Overview: Starboard Image Decoding Module -// -// API for hardware accelerated image decoding. This module allows for the -// client to feed in raw, encoded data to be decoded directly into an -// SbDecodeTarget. It also provides an interface for the client to query what -// combinations of encoded image formats and SbDecodeTargetFormats are -// supported or not. -// -// All functions in this module are safe to call from any thread at any point -// in time. -// -// # SbImageIsDecodeSupported and SbImageDecode Example -// -// SbDecodeTargetProvider* provider = GetProviderFromSomewhere(); -// void* data = GetCompressedJPEGFromSomewhere(); -// int data_size = GetCompressedJPEGSizeFromSomewhere(); -// const char* mime_type = "image/jpeg"; -// SbDecodeTargetFormat format = kSbDecodeTargetFormat1PlaneRGBA; -// -// if (!SbImageIsDecodeSupported(mime_type, format)) { -// return; -// } -// -// SbDecodeTarget result_target = SbImageDecode(provider, data, data_size, -// mime_type, format); -// - -#ifndef STARBOARD_IMAGE_H_ -#define STARBOARD_IMAGE_H_ - -#error This file is deprecated with SB_API_VERSION 16. - -#endif // STARBOARD_IMAGE_H_ diff --git a/starboard/linux/shared/system_get_path.cc b/starboard/linux/shared/system_get_path.cc index 4d0e125e28f5..1d075a378aa5 100644 --- a/starboard/linux/shared/system_get_path.cc +++ b/starboard/linux/shared/system_get_path.cc @@ -25,7 +25,6 @@ #include "starboard/common/log.h" #include "starboard/common/string.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" #if SB_IS(EVERGREEN_COMPATIBLE) #include "starboard/elf_loader/evergreen_config.h" #endif diff --git a/starboard/loader_app/app_key_files.cc b/starboard/loader_app/app_key_files.cc index 2fd2776309d1..89b8713e6436 100644 --- a/starboard/loader_app/app_key_files.cc +++ b/starboard/loader_app/app_key_files.cc @@ -23,8 +23,6 @@ #include "starboard/common/log.h" #include "starboard/common/string.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" -#include "starboard/string.h" namespace starboard { namespace loader_app { diff --git a/starboard/loader_app/app_key_test.cc b/starboard/loader_app/app_key_test.cc index 9bd3340cda5a..7e9c761a28ba 100644 --- a/starboard/loader_app/app_key_test.cc +++ b/starboard/loader_app/app_key_test.cc @@ -16,7 +16,6 @@ #include -#include "starboard/string.h" #include "testing/gtest/include/gtest/gtest.h" namespace starboard { diff --git a/starboard/loader_app/drain_file.cc b/starboard/loader_app/drain_file.cc index be45051d9d1f..43ae0291eee6 100644 --- a/starboard/loader_app/drain_file.cc +++ b/starboard/loader_app/drain_file.cc @@ -28,8 +28,6 @@ #include "starboard/common/string.h" #include "starboard/common/time.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" -#include "starboard/string.h" #ifdef __cplusplus extern "C" { diff --git a/starboard/loader_app/drain_file_test.cc b/starboard/loader_app/drain_file_test.cc index 680cc3554009..b6948fae8de6 100644 --- a/starboard/loader_app/drain_file_test.cc +++ b/starboard/loader_app/drain_file_test.cc @@ -24,7 +24,6 @@ #include "starboard/common/string.h" #include "starboard/common/time.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" #include "starboard/loader_app/drain_file_helper.h" #include "starboard/system.h" #include "starboard/types.h" diff --git a/starboard/loader_app/installation_manager.cc b/starboard/loader_app/installation_manager.cc index 73ef2cf2f3b6..78b7bba7b7b6 100644 --- a/starboard/loader_app/installation_manager.cc +++ b/starboard/loader_app/installation_manager.cc @@ -28,15 +28,14 @@ #include "starboard/common/mutex.h" #include "starboard/common/string.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" #include "starboard/extension/loader_app_metrics.h" +#include "starboard/file.h" #include "starboard/loader_app/installation_store.pb.h" #if !SB_IS(EVERGREEN_COMPATIBLE_LITE) #include "starboard/loader_app/pending_restart.h" // nogncheck #endif // !SB_IS(EVERGREEN_COMPATIBLE_LITE) #include "starboard/common/once.h" #include "starboard/loader_app/record_loader_app_status.h" -#include "starboard/string.h" namespace starboard { namespace loader_app { diff --git a/starboard/loader_app/installation_manager_test.cc b/starboard/loader_app/installation_manager_test.cc index daec5c62b0a5..a61defe2eb32 100644 --- a/starboard/loader_app/installation_manager_test.cc +++ b/starboard/loader_app/installation_manager_test.cc @@ -25,6 +25,7 @@ #include "starboard/common/file.h" #include "starboard/configuration_constants.h" #include "starboard/extension/loader_app_metrics.h" +#include "starboard/file.h" #include "starboard/loader_app/installation_store.pb.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/loader_app/loader_app.cc b/starboard/loader_app/loader_app.cc index 39ce43d34117..4e7ac1b7960e 100644 --- a/starboard/loader_app/loader_app.cc +++ b/starboard/loader_app/loader_app.cc @@ -28,7 +28,6 @@ #include "starboard/elf_loader/sabi_string.h" #include "starboard/event.h" #include "starboard/extension/loader_app_metrics.h" -#include "starboard/file.h" #include "starboard/loader_app/app_key.h" #include "starboard/loader_app/loader_app_switches.h" #include "starboard/loader_app/memory_tracker_thread.h" @@ -38,7 +37,7 @@ #include "starboard/loader_app/system_get_extension_shim.h" #include "starboard/memory.h" #include "starboard/shared/starboard/command_line.h" -#include "starboard/string.h" + #include "third_party/crashpad/crashpad/wrapper/annotations.h" #include "third_party/crashpad/crashpad/wrapper/wrapper.h" diff --git a/starboard/loader_app/reset_evergreen_update_test.cc b/starboard/loader_app/reset_evergreen_update_test.cc index 3f922d60a717..d5b99ba6b360 100644 --- a/starboard/loader_app/reset_evergreen_update_test.cc +++ b/starboard/loader_app/reset_evergreen_update_test.cc @@ -20,7 +20,6 @@ #include #include "starboard/common/file.h" -#include "starboard/directory.h" #include "testing/gtest/include/gtest/gtest.h" #if SB_IS(EVERGREEN_COMPATIBLE) diff --git a/starboard/loader_app/slot_management.cc b/starboard/loader_app/slot_management.cc index 842a702bc232..1c06bbb3d100 100644 --- a/starboard/loader_app/slot_management.cc +++ b/starboard/loader_app/slot_management.cc @@ -31,12 +31,11 @@ #include "starboard/elf_loader/sabi_string.h" #include "starboard/event.h" #include "starboard/extension/loader_app_metrics.h" -#include "starboard/file.h" #include "starboard/loader_app/app_key_files.h" #include "starboard/loader_app/drain_file.h" #include "starboard/loader_app/installation_manager.h" #include "starboard/memory.h" -#include "starboard/string.h" + #include "third_party/crashpad/crashpad/wrapper/annotations.h" #include "third_party/crashpad/crashpad/wrapper/wrapper.h" #include "third_party/jsoncpp/source/include/json/reader.h" diff --git a/starboard/loader_app/slot_management_test.cc b/starboard/loader_app/slot_management_test.cc index 8b98ed9c22de..ac44f62e80ec 100644 --- a/starboard/loader_app/slot_management_test.cc +++ b/starboard/loader_app/slot_management_test.cc @@ -26,10 +26,8 @@ #include "gmock/gmock.h" #include "starboard/common/file.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" #include "starboard/elf_loader/sabi_string.h" #include "starboard/event.h" -#include "starboard/file.h" #include "starboard/loader_app/app_key_files.h" #include "starboard/loader_app/drain_file.h" #include "starboard/loader_app/installation_manager.h" diff --git a/starboard/loader_app/system_get_extension_shim.cc b/starboard/loader_app/system_get_extension_shim.cc index 636585494f87..6a008b1241aa 100644 --- a/starboard/loader_app/system_get_extension_shim.cc +++ b/starboard/loader_app/system_get_extension_shim.cc @@ -20,7 +20,6 @@ #include "starboard/common/log.h" #include "starboard/extension/installation_manager.h" #include "starboard/loader_app/installation_manager.h" -#include "starboard/string.h" #include "starboard/system.h" namespace { diff --git a/starboard/mutex.h b/starboard/mutex.h deleted file mode 100644 index c7dbcd810244..000000000000 --- a/starboard/mutex.h +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright 2015 The Cobalt Authors. All Rights Reserved. -// -// 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. - -// Module Overview: Starboard Mutex module -// -// Defines a mutually exclusive lock that can be used to coordinate with other -// threads. - -#ifndef STARBOARD_MUTEX_H_ -#define STARBOARD_MUTEX_H_ - -#if SB_API_VERSION < 16 - -#include "starboard/configuration.h" -#include "starboard/export.h" -#include "starboard/thread.h" - -#ifdef __cplusplus -extern "C" { -#endif - -// Max size of the SbMutex type. -#define SB_MUTEX_MAX_SIZE 80 - -// An opaque handle to a mutex type with reserved memory -// buffer of size SB_MUTEX_MAX_SIZE and aligned at void -// pointer type. -typedef union SbMutex { - // Reserved memory in which the implementation should map its - // native mutex type. - uint8_t mutex_buffer[SB_MUTEX_MAX_SIZE]; - - // Guarantees alignment of the type to a void pointer. - void* ptr; -} SbMutex; - -#ifdef __cplusplus -#define SB_MUTEX_INITIALIZER \ - {} -#else -#define SB_MUTEX_INITIALIZER {0} -#endif - -// Enumeration of possible results from acquiring a mutex. -typedef enum SbMutexResult { - // The mutex was acquired successfully. - kSbMutexAcquired, - - // The mutex was not acquired because it was held by someone else. - kSbMutexBusy, - - // The mutex has already been destroyed. - kSbMutexDestroyed, -} SbMutexResult; - -// Indicates whether the given result is a success. A value of |true| indicates -// that the mutex was acquired. -// -// |result|: The result being checked. -static SB_C_FORCE_INLINE bool SbMutexIsSuccess(SbMutexResult result) { - return result == kSbMutexAcquired; -} - -// Creates a new mutex. The return value indicates whether the function -// was able to create a new mutex. -// -// |out_mutex|: The handle to the newly created mutex. -SB_EXPORT bool SbMutexCreate(SbMutex* out_mutex); - -// Destroys a mutex. The return value indicates whether the destruction was -// successful. Destroying a locked mutex results in undefined behavior. -// -// |mutex|: The mutex to be invalidated. -SB_EXPORT bool SbMutexDestroy(SbMutex* mutex); - -// Acquires |mutex|, blocking indefinitely. The return value identifies -// the acquisition result. SbMutexes are not reentrant, so a recursive -// acquisition blocks forever. -// -// |mutex|: The mutex to be acquired. -SB_EXPORT SbMutexResult SbMutexAcquire(SbMutex* mutex); - -// Acquires |mutex|, without blocking. The return value identifies -// the acquisition result. SbMutexes are not reentrant, so a recursive -// acquisition has undefined behavior. -// -// |mutex|: The mutex to be acquired. -SB_EXPORT SbMutexResult SbMutexAcquireTry(SbMutex* mutex); - -// Releases |mutex| held by the current thread. The return value indicates -// whether the release was successful. Releases should always be successful -// if |mutex| is held by the current thread. -// -// |mutex|: The mutex to be released. -SB_EXPORT bool SbMutexRelease(SbMutex* mutex); - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif // SB_API_VERSION < 16 -#endif // STARBOARD_MUTEX_H_ diff --git a/starboard/nplb/extern_c_test.cc b/starboard/nplb/extern_c_test.cc index 09b5fc655e34..f5f46ede4e16 100644 --- a/starboard/nplb/extern_c_test.cc +++ b/starboard/nplb/extern_c_test.cc @@ -17,16 +17,13 @@ extern "C" { #include "starboard/atomic.h" #include "starboard/audio_sink.h" -#include "starboard/condition_variable.h" #include "starboard/configuration.h" #include "starboard/cpu_features.h" #include "starboard/decode_target.h" -#include "starboard/directory.h" #include "starboard/drm.h" #include "starboard/egl.h" #include "starboard/event.h" #include "starboard/export.h" -#include "starboard/file.h" #include "starboard/gles.h" #include "starboard/input.h" #include "starboard/key.h" @@ -34,13 +31,11 @@ extern "C" { #include "starboard/media.h" #include "starboard/memory.h" #include "starboard/microphone.h" -#include "starboard/mutex.h" #include "starboard/player.h" #include "starboard/socket.h" #include "starboard/socket_waiter.h" #include "starboard/speech_synthesis.h" #include "starboard/storage.h" -#include "starboard/string.h" #include "starboard/system.h" #include "starboard/thread.h" #include "starboard/time_zone.h" diff --git a/starboard/nplb/file_delete_recursive_test.cc b/starboard/nplb/file_delete_recursive_test.cc index 3ed6d0e69792..2a6b73dcc2e4 100644 --- a/starboard/nplb/file_delete_recursive_test.cc +++ b/starboard/nplb/file_delete_recursive_test.cc @@ -18,8 +18,6 @@ #include "starboard/common/file.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" -#include "starboard/file.h" #include "starboard/nplb/file_helpers.h" #include "starboard/types.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/file_helpers.cc b/starboard/nplb/file_helpers.cc index 5f979f995ae5..1e0170cc2910 100644 --- a/starboard/nplb/file_helpers.cc +++ b/starboard/nplb/file_helpers.cc @@ -25,7 +25,6 @@ #include "starboard/common/file.h" #include "starboard/common/log.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" #include "starboard/system.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/file_helpers.h b/starboard/nplb/file_helpers.h index 2d883932dcbe..2ba99a8eed7a 100644 --- a/starboard/nplb/file_helpers.h +++ b/starboard/nplb/file_helpers.h @@ -20,8 +20,6 @@ #include #include -#include "starboard/file.h" - namespace starboard { namespace nplb { diff --git a/starboard/nplb/include_all.c b/starboard/nplb/include_all.c index 1f2c7879367b..6f576ef72662 100644 --- a/starboard/nplb/include_all.c +++ b/starboard/nplb/include_all.c @@ -16,16 +16,13 @@ #include "starboard/atomic.h" #include "starboard/audio_sink.h" -#include "starboard/condition_variable.h" #include "starboard/configuration.h" #include "starboard/cpu_features.h" #include "starboard/decode_target.h" -#include "starboard/directory.h" #include "starboard/drm.h" #include "starboard/egl.h" #include "starboard/event.h" #include "starboard/export.h" -#include "starboard/file.h" #include "starboard/gles.h" #include "starboard/input.h" #include "starboard/key.h" @@ -33,13 +30,11 @@ #include "starboard/media.h" #include "starboard/memory.h" #include "starboard/microphone.h" -#include "starboard/mutex.h" #include "starboard/player.h" #include "starboard/socket.h" #include "starboard/socket_waiter.h" #include "starboard/speech_synthesis.h" #include "starboard/storage.h" -#include "starboard/string.h" #include "starboard/system.h" #include "starboard/thread.h" #include "starboard/time_zone.h" diff --git a/starboard/nplb/nplb_evergreen_compat_tests/fonts_test.cc b/starboard/nplb/nplb_evergreen_compat_tests/fonts_test.cc index 3687ca189563..cd1a56e5b478 100644 --- a/starboard/nplb/nplb_evergreen_compat_tests/fonts_test.cc +++ b/starboard/nplb/nplb_evergreen_compat_tests/fonts_test.cc @@ -19,7 +19,6 @@ #include "starboard/common/log.h" #include "starboard/configuration.h" -#include "starboard/file.h" #include "starboard/nplb/nplb_evergreen_compat_tests/checks.h" #include "starboard/system.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/player_get_audio_configuration_test.cc b/starboard/nplb/player_get_audio_configuration_test.cc index 7cd5a7e5a8bc..41bc2c8a6349 100644 --- a/starboard/nplb/player_get_audio_configuration_test.cc +++ b/starboard/nplb/player_get_audio_configuration_test.cc @@ -15,7 +15,6 @@ #include #include "starboard/nplb/player_test_fixture.h" -#include "starboard/string.h" #include "starboard/testing/fake_graphics_context_provider.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/player_get_media_time_test.cc b/starboard/nplb/player_get_media_time_test.cc index fefcce231171..d08a241763fb 100644 --- a/starboard/nplb/player_get_media_time_test.cc +++ b/starboard/nplb/player_get_media_time_test.cc @@ -13,7 +13,6 @@ // limitations under the License. #include "starboard/nplb/player_test_fixture.h" -#include "starboard/string.h" #include "starboard/testing/fake_graphics_context_provider.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/player_write_sample_test.cc b/starboard/nplb/player_write_sample_test.cc index d2428fed5ce7..ab10b02110f4 100644 --- a/starboard/nplb/player_write_sample_test.cc +++ b/starboard/nplb/player_write_sample_test.cc @@ -18,7 +18,6 @@ #include "starboard/nplb/player_test_fixture.h" #include "starboard/nplb/player_test_util.h" #include "starboard/nplb/posix_compliance/posix_thread_helpers.h" -#include "starboard/string.h" #include "starboard/testing/fake_graphics_context_provider.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/posix_compliance/posix_directory_can_open_test.cc b/starboard/nplb/posix_compliance/posix_directory_can_open_test.cc index 56479d1d923a..8ea822a148e5 100644 --- a/starboard/nplb/posix_compliance/posix_directory_can_open_test.cc +++ b/starboard/nplb/posix_compliance/posix_directory_can_open_test.cc @@ -17,7 +17,6 @@ #include #include "starboard/configuration_constants.h" -#include "starboard/directory.h" #include "starboard/nplb/file_helpers.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/posix_compliance/posix_directory_create_test.cc b/starboard/nplb/posix_compliance/posix_directory_create_test.cc index b4b4b31de858..db8cb81c42ca 100644 --- a/starboard/nplb/posix_compliance/posix_directory_create_test.cc +++ b/starboard/nplb/posix_compliance/posix_directory_create_test.cc @@ -15,8 +15,6 @@ #include #include "starboard/configuration_constants.h" -#include "starboard/directory.h" -#include "starboard/file.h" #include "starboard/nplb/file_helpers.h" #include "starboard/system.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/posix_compliance/posix_directory_get_next_test.cc b/starboard/nplb/posix_compliance/posix_directory_get_next_test.cc index 43c39b25d474..86a747fe8195 100644 --- a/starboard/nplb/posix_compliance/posix_directory_get_next_test.cc +++ b/starboard/nplb/posix_compliance/posix_directory_get_next_test.cc @@ -21,8 +21,6 @@ #include "starboard/common/log.h" #include "starboard/configuration.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" -#include "starboard/file.h" #include "starboard/nplb/file_helpers.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/posix_compliance/posix_directory_open_test.cc b/starboard/nplb/posix_compliance/posix_directory_open_test.cc index d979dbcb4a06..41d530ff7f9d 100644 --- a/starboard/nplb/posix_compliance/posix_directory_open_test.cc +++ b/starboard/nplb/posix_compliance/posix_directory_open_test.cc @@ -17,8 +17,6 @@ #include #include "starboard/configuration_constants.h" -#include "starboard/directory.h" -#include "starboard/file.h" #include "starboard/nplb/file_helpers.h" #include "starboard/system.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/posix_compliance/posix_file_delete_test.cc b/starboard/nplb/posix_compliance/posix_file_delete_test.cc index 9b9db4ae01df..367f9588d826 100644 --- a/starboard/nplb/posix_compliance/posix_file_delete_test.cc +++ b/starboard/nplb/posix_compliance/posix_file_delete_test.cc @@ -18,8 +18,6 @@ #include -#include "starboard/directory.h" -#include "starboard/file.h" #include "starboard/nplb/file_helpers.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/posix_compliance/posix_file_get_info_test.cc b/starboard/nplb/posix_compliance/posix_file_get_info_test.cc index 192fe817cef9..f6bb06cfc58f 100644 --- a/starboard/nplb/posix_compliance/posix_file_get_info_test.cc +++ b/starboard/nplb/posix_compliance/posix_file_get_info_test.cc @@ -21,7 +21,6 @@ #include #include "starboard/common/time.h" -#include "starboard/file.h" #include "starboard/nplb/file_helpers.h" #include "starboard/system.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/posix_compliance/posix_file_get_path_info_test.cc b/starboard/nplb/posix_compliance/posix_file_get_path_info_test.cc index fbada38a57dc..81a27511cdb4 100644 --- a/starboard/nplb/posix_compliance/posix_file_get_path_info_test.cc +++ b/starboard/nplb/posix_compliance/posix_file_get_path_info_test.cc @@ -20,7 +20,6 @@ #include "starboard/common/time.h" #include "starboard/configuration_constants.h" -#include "starboard/file.h" #include "starboard/nplb/file_helpers.h" #include "starboard/system.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/posix_compliance/posix_file_open_test.cc b/starboard/nplb/posix_compliance/posix_file_open_test.cc index 5b329da2a392..8fb2cd59c8ea 100644 --- a/starboard/nplb/posix_compliance/posix_file_open_test.cc +++ b/starboard/nplb/posix_compliance/posix_file_open_test.cc @@ -16,7 +16,6 @@ #include #include -#include "starboard/file.h" #include "starboard/nplb/file_helpers.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/posix_compliance/posix_file_seek_test.cc b/starboard/nplb/posix_compliance/posix_file_seek_test.cc index 6473c00f3fde..d4dc3a4be289 100644 --- a/starboard/nplb/posix_compliance/posix_file_seek_test.cc +++ b/starboard/nplb/posix_compliance/posix_file_seek_test.cc @@ -21,7 +21,6 @@ #include #include -#include "starboard/file.h" #include "starboard/nplb/file_helpers.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/system_get_error_string_test.cc b/starboard/nplb/system_get_error_string_test.cc index 04fa50d84803..e47177fd39ad 100644 --- a/starboard/nplb/system_get_error_string_test.cc +++ b/starboard/nplb/system_get_error_string_test.cc @@ -15,7 +15,6 @@ #include #include "starboard/common/string.h" -#include "starboard/file.h" #include "starboard/nplb/file_helpers.h" #include "starboard/system.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/system_get_last_error_test.cc b/starboard/nplb/system_get_last_error_test.cc index f001a9d23993..3b5bcc6c2491 100644 --- a/starboard/nplb/system_get_last_error_test.cc +++ b/starboard/nplb/system_get_last_error_test.cc @@ -14,7 +14,6 @@ #include -#include "starboard/file.h" #include "starboard/nplb/file_helpers.h" #include "starboard/system.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/starboard/nplb/system_get_path_test.cc b/starboard/nplb/system_get_path_test.cc index 002d515e89fc..93f22f1a0849 100644 --- a/starboard/nplb/system_get_path_test.cc +++ b/starboard/nplb/system_get_path_test.cc @@ -23,7 +23,6 @@ #include "starboard/common/string.h" #include "starboard/common/time.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" #include "starboard/memory.h" #include "starboard/nplb/file_helpers.h" #include "starboard/system.h" diff --git a/starboard/once.h b/starboard/once.h deleted file mode 100644 index d2a54c09a483..000000000000 --- a/starboard/once.h +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2015 The Cobalt Authors. All Rights Reserved. -// -// 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. - -// Module Overview: Starboard Once module -// -// Onces represent initializations that should only ever happen once per -// process, in a thread-safe way. - -#ifndef STARBOARD_ONCE_H_ -#define STARBOARD_ONCE_H_ - -#error This file is deprecated with SB_API_VERSION 16. - -#endif // STARBOARD_ONCE_H_ diff --git a/starboard/shared/libde265/de265_video_decoder.cc b/starboard/shared/libde265/de265_video_decoder.cc index 2cbef0364477..27746f30e604 100644 --- a/starboard/shared/libde265/de265_video_decoder.cc +++ b/starboard/shared/libde265/de265_video_decoder.cc @@ -17,7 +17,6 @@ #include "starboard/common/string.h" #include "starboard/linux/shared/decode_target_internal.h" #include "starboard/shared/libde265/de265_library_loader.h" -#include "starboard/string.h" #include "starboard/thread.h" namespace starboard { diff --git a/starboard/shared/libjpeg/jpeg_image_decoder.cc b/starboard/shared/libjpeg/jpeg_image_decoder.cc index b6b8c2bd14c2..c7308d7e4898 100644 --- a/starboard/shared/libjpeg/jpeg_image_decoder.cc +++ b/starboard/shared/libjpeg/jpeg_image_decoder.cc @@ -21,7 +21,6 @@ #include "starboard/common/log.h" #include "starboard/configuration.h" -#include "starboard/file.h" #include "starboard/linux/shared/decode_target_internal.h" // Inhibit C++ name-mangling for libjpeg functions. diff --git a/starboard/shared/linux/dev_input/dev_input.cc b/starboard/shared/linux/dev_input/dev_input.cc index 6d8aa048424a..595453edb30d 100644 --- a/starboard/shared/linux/dev_input/dev_input.cc +++ b/starboard/shared/linux/dev_input/dev_input.cc @@ -38,7 +38,6 @@ #include "starboard/common/string.h" #include "starboard/configuration.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" #include "starboard/input.h" #include "starboard/key.h" #include "starboard/memory.h" diff --git a/starboard/shared/media_session/playback_state.cc b/starboard/shared/media_session/playback_state.cc index b29f2d18148a..b12b2041f363 100644 --- a/starboard/shared/media_session/playback_state.cc +++ b/starboard/shared/media_session/playback_state.cc @@ -18,7 +18,6 @@ #include "starboard/common/log.h" #include "starboard/extension/media_session.h" -#include "starboard/string.h" #include "starboard/system.h" namespace starboard { diff --git a/starboard/shared/posix/file_internal.h b/starboard/shared/posix/file_internal.h index d49a5ef57384..55d242558b09 100644 --- a/starboard/shared/posix/file_internal.h +++ b/starboard/shared/posix/file_internal.h @@ -17,7 +17,6 @@ #include -#include "starboard/file.h" #include "starboard/shared/internal_only.h" struct SbFilePrivate { diff --git a/starboard/shared/posix/impl/file_can_open.h b/starboard/shared/posix/impl/file_can_open.h index 11ffba904837..e81bac4f256d 100644 --- a/starboard/shared/posix/impl/file_can_open.h +++ b/starboard/shared/posix/impl/file_can_open.h @@ -17,8 +17,6 @@ #ifndef STARBOARD_SHARED_POSIX_IMPL_FILE_CAN_OPEN_H_ #define STARBOARD_SHARED_POSIX_IMPL_FILE_CAN_OPEN_H_ -#include "starboard/file.h" - #include #include diff --git a/starboard/shared/posix/impl/file_close.h b/starboard/shared/posix/impl/file_close.h index b5b9f46861d1..37cce9c375ca 100644 --- a/starboard/shared/posix/impl/file_close.h +++ b/starboard/shared/posix/impl/file_close.h @@ -17,8 +17,6 @@ #ifndef STARBOARD_SHARED_POSIX_IMPL_FILE_CLOSE_H_ #define STARBOARD_SHARED_POSIX_IMPL_FILE_CLOSE_H_ -#include "starboard/file.h" - #include #include "starboard/shared/posix/handle_eintr.h" diff --git a/starboard/shared/posix/impl/file_delete.h b/starboard/shared/posix/impl/file_delete.h index a73c25f520f0..b8df09d83553 100644 --- a/starboard/shared/posix/impl/file_delete.h +++ b/starboard/shared/posix/impl/file_delete.h @@ -17,8 +17,6 @@ #ifndef STARBOARD_SHARED_POSIX_IMPL_FILE_DELETE_H_ #define STARBOARD_SHARED_POSIX_IMPL_FILE_DELETE_H_ -#include "starboard/file.h" - #include #include #include diff --git a/starboard/shared/posix/impl/file_exists.h b/starboard/shared/posix/impl/file_exists.h index aa5a4c77df9e..4387c78efd17 100644 --- a/starboard/shared/posix/impl/file_exists.h +++ b/starboard/shared/posix/impl/file_exists.h @@ -17,8 +17,6 @@ #ifndef STARBOARD_SHARED_POSIX_IMPL_FILE_EXISTS_H_ #define STARBOARD_SHARED_POSIX_IMPL_FILE_EXISTS_H_ -#include "starboard/file.h" - #include #include "starboard/shared/internal_only.h" diff --git a/starboard/shared/posix/impl/file_flush.h b/starboard/shared/posix/impl/file_flush.h index 51b5b14ed429..af7fcc00462d 100644 --- a/starboard/shared/posix/impl/file_flush.h +++ b/starboard/shared/posix/impl/file_flush.h @@ -17,8 +17,6 @@ #ifndef STARBOARD_SHARED_POSIX_IMPL_FILE_FLUSH_H_ #define STARBOARD_SHARED_POSIX_IMPL_FILE_FLUSH_H_ -#include "starboard/file.h" - #include #include "starboard/shared/posix/handle_eintr.h" diff --git a/starboard/shared/posix/impl/file_get_info.h b/starboard/shared/posix/impl/file_get_info.h index e086b41efdc3..f875c08d4785 100644 --- a/starboard/shared/posix/impl/file_get_info.h +++ b/starboard/shared/posix/impl/file_get_info.h @@ -17,8 +17,6 @@ #ifndef STARBOARD_SHARED_POSIX_IMPL_FILE_GET_INFO_H_ #define STARBOARD_SHARED_POSIX_IMPL_FILE_GET_INFO_H_ -#include "starboard/file.h" - #include #include diff --git a/starboard/shared/posix/impl/file_impl.h b/starboard/shared/posix/impl/file_impl.h index 27fa9cc0785f..8298324cff69 100644 --- a/starboard/shared/posix/impl/file_impl.h +++ b/starboard/shared/posix/impl/file_impl.h @@ -19,7 +19,6 @@ #include "starboard/common/time.h" #include "starboard/configuration.h" -#include "starboard/file.h" #include "starboard/shared/internal_only.h" diff --git a/starboard/shared/posix/impl/file_open.h b/starboard/shared/posix/impl/file_open.h index 8721d5b5cc06..f2859a69898f 100644 --- a/starboard/shared/posix/impl/file_open.h +++ b/starboard/shared/posix/impl/file_open.h @@ -17,8 +17,6 @@ #ifndef STARBOARD_SHARED_POSIX_IMPL_FILE_OPEN_H_ #define STARBOARD_SHARED_POSIX_IMPL_FILE_OPEN_H_ -#include "starboard/file.h" - #include #include #include diff --git a/starboard/shared/posix/impl/file_read.h b/starboard/shared/posix/impl/file_read.h index 8be3e99a72b8..0a9982059656 100644 --- a/starboard/shared/posix/impl/file_read.h +++ b/starboard/shared/posix/impl/file_read.h @@ -17,8 +17,6 @@ #ifndef STARBOARD_SHARED_POSIX_IMPL_FILE_READ_H_ #define STARBOARD_SHARED_POSIX_IMPL_FILE_READ_H_ -#include "starboard/file.h" - #include #include "starboard/shared/posix/handle_eintr.h" diff --git a/starboard/shared/posix/impl/file_seek.h b/starboard/shared/posix/impl/file_seek.h index c769b882db1e..8d710af2c404 100644 --- a/starboard/shared/posix/impl/file_seek.h +++ b/starboard/shared/posix/impl/file_seek.h @@ -17,8 +17,6 @@ #ifndef STARBOARD_SHARED_POSIX_IMPL_FILE_SEEK_H_ #define STARBOARD_SHARED_POSIX_IMPL_FILE_SEEK_H_ -#include "starboard/file.h" - #include #include "starboard/shared/internal_only.h" diff --git a/starboard/shared/posix/impl/file_truncate.h b/starboard/shared/posix/impl/file_truncate.h index 0f8d8a3c1f2d..67ee5d57df39 100644 --- a/starboard/shared/posix/impl/file_truncate.h +++ b/starboard/shared/posix/impl/file_truncate.h @@ -17,8 +17,6 @@ #ifndef STARBOARD_SHARED_POSIX_IMPL_FILE_TRUNCATE_H_ #define STARBOARD_SHARED_POSIX_IMPL_FILE_TRUNCATE_H_ -#include "starboard/file.h" - #include #include "starboard/shared/posix/handle_eintr.h" diff --git a/starboard/shared/posix/impl/file_write.h b/starboard/shared/posix/impl/file_write.h index 13dc16a6867a..783c07e69d96 100644 --- a/starboard/shared/posix/impl/file_write.h +++ b/starboard/shared/posix/impl/file_write.h @@ -17,8 +17,6 @@ #ifndef STARBOARD_SHARED_POSIX_IMPL_FILE_WRITE_H_ #define STARBOARD_SHARED_POSIX_IMPL_FILE_WRITE_H_ -#include "starboard/file.h" - #include #include "starboard/shared/posix/handle_eintr.h" diff --git a/starboard/shared/starboard/localized_strings.h b/starboard/shared/starboard/localized_strings.h index 9cea810ceaf1..37f95ce73466 100644 --- a/starboard/shared/starboard/localized_strings.h +++ b/starboard/shared/starboard/localized_strings.h @@ -20,8 +20,6 @@ #include #include -#include "starboard/file.h" - namespace starboard { namespace shared { namespace starboard { diff --git a/starboard/shared/starboard/player/file_cache_reader.cc b/starboard/shared/starboard/player/file_cache_reader.cc index bce8ddec522d..86b14163b9a7 100644 --- a/starboard/shared/starboard/player/file_cache_reader.cc +++ b/starboard/shared/starboard/player/file_cache_reader.cc @@ -20,7 +20,6 @@ #include "starboard/common/log.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" namespace starboard { namespace shared { diff --git a/starboard/shared/starboard/player/filter/testing/test_util.cc b/starboard/shared/starboard/player/filter/testing/test_util.cc index 3cc4bf5078e7..daf8c78d39dc 100644 --- a/starboard/shared/starboard/player/filter/testing/test_util.cc +++ b/starboard/shared/starboard/player/filter/testing/test_util.cc @@ -18,14 +18,12 @@ #include "starboard/audio_sink.h" #include "starboard/common/log.h" -#include "starboard/directory.h" #include "starboard/extension/enhanced_audio.h" #include "starboard/shared/starboard/media/media_support_internal.h" #include "starboard/shared/starboard/media/mime_type.h" #include "starboard/shared/starboard/player/filter/player_components.h" #include "starboard/shared/starboard/player/filter/stub_player_components_factory.h" #include "starboard/shared/starboard/player/video_dmp_reader.h" -#include "starboard/string.h" #include "starboard/system.h" namespace starboard { diff --git a/starboard/shared/starboard/player/video_dmp_writer.h b/starboard/shared/starboard/player/video_dmp_writer.h index 4869f160ac5a..f5212ff1d281 100644 --- a/starboard/shared/starboard/player/video_dmp_writer.h +++ b/starboard/shared/starboard/player/video_dmp_writer.h @@ -15,7 +15,6 @@ #ifndef STARBOARD_SHARED_STARBOARD_PLAYER_VIDEO_DMP_WRITER_H_ #define STARBOARD_SHARED_STARBOARD_PLAYER_VIDEO_DMP_WRITER_H_ -#include "starboard/file.h" #include "starboard/media.h" #include "starboard/player.h" #include "starboard/shared/internal_only.h" diff --git a/starboard/shared/widevine/drm_system_widevine.h b/starboard/shared/widevine/drm_system_widevine.h index 257de6558cf0..c72f5c537973 100644 --- a/starboard/shared/widevine/drm_system_widevine.h +++ b/starboard/shared/widevine/drm_system_widevine.h @@ -24,7 +24,6 @@ #include "starboard/common/mutex.h" #include "starboard/common/optional.h" -#include "starboard/mutex.h" #include "starboard/shared/starboard/drm/drm_system_internal.h" #include "starboard/shared/starboard/thread_checker.h" #include "starboard/thread.h" diff --git a/starboard/string.h b/starboard/string.h deleted file mode 100644 index e634c8417821..000000000000 --- a/starboard/string.h +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright 2015 The Cobalt Authors. All Rights Reserved. -// -// 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. - -// Module Overview: Starboard String module -// -// Defines functions for interacting with c-style strings. - -#ifndef STARBOARD_STRING_H_ -#define STARBOARD_STRING_H_ - -#include -#include - -#include "starboard/configuration.h" -#include "starboard/export.h" -#include "starboard/types.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if SB_API_VERSION < 16 -// Copies |source| into a buffer that is allocated by this function and that -// can be freed with SbMemoryDeallocate. This function is meant to be a drop-in -// replacement for |strdup|. -// -// |source|: The string to be copied. -SB_EXPORT char* SbStringDuplicate(const char* source); - -// Compares two strings, ignoring differences in case. The return value is: -// - |< 0| if |string1| is ASCII-betically lower than |string2|. -// - |0| if the two strings are equal. -// - |> 0| if |string1| is ASCII-betically higher than |string2|. -// -// This function is meant to be a drop-in replacement for |strcasecmp|. -// -// |string1|: The first string to compare. -// |string2|: The second string to compare. -SB_EXPORT int SbStringCompareNoCase(const char* string1, const char* string2); - -// Compares the first |count| characters of two strings, ignoring differences -// in case. The return value is: -// - |< 0| if |string1| is ASCII-betically lower than |string2|. -// - |0| if the two strings are equal. -// - |> 0| if |string1| is ASCII-betically higher than |string2|. -// -// This function is meant to be a drop-in replacement for |strncasecmp|. -// -// |string1|: The first string to compare. -// |string2|: The second string to compare. -// |count|: The number of characters to compare. -SB_EXPORT int SbStringCompareNoCaseN(const char* string1, - const char* string2, - size_t count); - -// Produces a string formatted with |format| and |arguments|, placing as much -// of the result that will fit into |out_buffer|. The return value specifies -// the number of characters that the format would produce if |buffer_size| were -// infinite. -// -// This function is meant to be a drop-in replacement for |vsnprintf|. -// -// |out_buffer|: The location where the formatted string is stored. -// |buffer_size|: The size of |out_buffer|. -// |format|: A string that specifies how the data should be formatted. -// |arguments|: Variable arguments used in the string. -SB_EXPORT int SbStringFormat(char* out_buffer, - size_t buffer_size, - const char* format, - va_list arguments) SB_PRINTF_FORMAT(3, 0); -// An inline wrapper of SbStringFormat that converts from ellipsis to va_args. -// This function is meant to be a drop-in replacement for |snprintf|. -// -// |out_buffer|: The location where the formatted string is stored. -// |buffer_size|: The size of |out_buffer|. -// |format|: A string that specifies how the data should be formatted. -// |...|: Arguments used in the string. -static inline int SbStringFormatF(char* out_buffer, - size_t buffer_size, - const char* format, - ...) SB_PRINTF_FORMAT(3, 4); -static inline int SbStringFormatF(char* out_buffer, - size_t buffer_size, - const char* format, - ...) { - va_list arguments; - va_start(arguments, format); - int result = SbStringFormat(out_buffer, buffer_size, format, arguments); - va_end(arguments); - return result; -} - -// An inline wrapper of SbStringFormat that is meant to be a drop-in -// replacement for the unsafe but commonly used |sprintf|. -// -// |out_buffer|: The location where the formatted string is stored. -// |format|: A string that specifies how the data should be formatted. -// |...|: Arguments used in the string. -static inline int SbStringFormatUnsafeF(char* out_buffer, - const char* format, - ...) SB_PRINTF_FORMAT(2, 3); -static inline int SbStringFormatUnsafeF(char* out_buffer, - const char* format, - ...) { - va_list arguments; - va_start(arguments, format); - int result = SbStringFormat(out_buffer, SSIZE_MAX, format, arguments); - va_end(arguments); - return result; -} - -// This function is identical to SbStringFormat, but is for wide characters. -// It is meant to be a drop-in replacement for |vswprintf|. -// -// |out_buffer|: The location where the formatted string is stored. -// |buffer_size|: The size of |out_buffer|. -// |format|: A string that specifies how the data should be formatted. -// |arguments|: Variable arguments used in the string. -SB_EXPORT int SbStringFormatWide(wchar_t* out_buffer, - size_t buffer_size, - const wchar_t* format, - va_list arguments); - -// An inline wrapper of SbStringFormatWide that converts from ellipsis to -// |va_args|. -// -// |out_buffer|: The location where the formatted string is stored. -// |buffer_size|: The size of |out_buffer|. -// |format|: A string that specifies how the data should be formatted. -// |...|: Arguments used in the string. - -static inline int SbStringFormatWideF(wchar_t* out_buffer, - size_t buffer_size, - const wchar_t* format, - ...) { - va_list arguments; - va_start(arguments, format); - int result = SbStringFormatWide(out_buffer, buffer_size, format, arguments); - va_end(arguments); - return result; -} - -// Scans |buffer| for |pattern|, placing the extracted values in |arguments|. -// The return value specifies the number of successfully matched items, which -// may be |0|. -// -// This function is meant to be a drop-in replacement for |vsscanf|. -// -// |buffer|: The string to scan for the pattern. -// |pattern|: The string to search for in |buffer|. -// |arguments|: Values matching |pattern| that were extracted from |buffer|. -SB_EXPORT int SbStringScan(const char* buffer, - const char* pattern, - va_list arguments); - -// An inline wrapper of SbStringScan that converts from ellipsis to |va_args|. -// This function is meant to be a drop-in replacement for |sscanf|. -// |buffer|: The string to scan for the pattern. -// |pattern|: The string to search for in |buffer|. -// |...|: Values matching |pattern| that were extracted from |buffer|. -static inline int SbStringScanF(const char* buffer, const char* pattern, ...) { - va_list arguments; - va_start(arguments, pattern); - int result = SbStringScan(buffer, pattern, arguments); - va_end(arguments); - return result; -} -#endif // SB_API_VERSION < 16 - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif // STARBOARD_STRING_H_ diff --git a/starboard/stub/javascript_cache.cc b/starboard/stub/javascript_cache.cc index c458fac2ff6d..c2ca1bcfd520 100644 --- a/starboard/stub/javascript_cache.cc +++ b/starboard/stub/javascript_cache.cc @@ -19,7 +19,6 @@ #include "starboard/common/log.h" #include "starboard/extension/javascript_cache.h" -#include "starboard/file.h" namespace starboard { namespace stub { diff --git a/starboard/time.h b/starboard/time.h deleted file mode 100644 index a0f1a71cd291..000000000000 --- a/starboard/time.h +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2015 The Cobalt Authors. All Rights Reserved. -// -// 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. - -// Module Overview: Starboard Time module -// -// Provides access to system time and timers. - -#ifndef STARBOARD_TIME_H_ -#define STARBOARD_TIME_H_ - -#error This file is deprecated with SB_API_VERSION 16. - -#endif // STARBOARD_TIME_H_ diff --git a/starboard/ui_navigation.h b/starboard/ui_navigation.h deleted file mode 100644 index 16729a4ec8f5..000000000000 --- a/starboard/ui_navigation.h +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2019 The Cobalt Authors. All Rights Reserved. -// -// 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. - -// Module Overview: User Interface Navigation module -// -// API to allow applications to take advantage of the platform's native UI -// engine. This is mainly to drive the animation of visual elements and to -// signal which of those elements have focus. The implementation should not -// render any visual elements; instead, it will be used to guide the app in -// where these elements should be drawn. -// -// When the application creates the user interface, it will create SbUiNavItems -// for interactable elements. Additionally, the app must specify the position -// and size of these navigation items. As the app's user interface changes, it -// will create and destroy navigation items as appropriate. -// -// For each render frame, the app will query the local transform for each -// SbUiNavItem in case the native UI engine moves individual items in response -// to user interaction. If the navigation item is a container, then the content -// offset will also be queried to determine the placement of its content items. - -#ifndef STARBOARD_UI_NAVIGATION_H_ -#define STARBOARD_UI_NAVIGATION_H_ - -#error This file is deprecated with SB_API_VERSION 16. - -#endif // STARBOARD_UI_NAVIGATION_H_ diff --git a/starboard/user.h b/starboard/user.h deleted file mode 100644 index c350bfc393d5..000000000000 --- a/starboard/user.h +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2016 The Cobalt Authors. All Rights Reserved. -// -// 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. - -// Module Overview: Starboard User module -// -// Defines a user management API. This module defines functions only for -// managing signed-in users. Platforms that do not have users must still -// implement this API, always reporting a single user that is current and -// signed in. -// -// These APIs are NOT expected to be thread-safe, so either call them from a -// single thread, or perform proper synchronization around all calls. - -#ifndef STARBOARD_USER_H_ -#define STARBOARD_USER_H_ - -#error This file is deprecated with SB_API_VERSION 16. - -#endif // STARBOARD_USER_H_ diff --git a/third_party/boringssl/src/config/starboard/openssl/opensslconf.h b/third_party/boringssl/src/config/starboard/openssl/opensslconf.h index d1b967213da5..b483a95fa4f2 100644 --- a/third_party/boringssl/src/config/starboard/openssl/opensslconf.h +++ b/third_party/boringssl/src/config/starboard/openssl/opensslconf.h @@ -4,9 +4,7 @@ #include "starboard/common/log.h" #include "starboard/configuration.h" -#include "starboard/file.h" #include "starboard/memory.h" -#include "starboard/string.h" #include "starboard/system.h" #include "starboard/thread.h" diff --git a/third_party/boringssl/src/crypto/cpu-starboard.c b/third_party/boringssl/src/crypto/cpu-starboard.c index 335cd917999a..6d0f5cb70633 100644 --- a/third_party/boringssl/src/crypto/cpu-starboard.c +++ b/third_party/boringssl/src/crypto/cpu-starboard.c @@ -16,7 +16,6 @@ #include #include "../../crypto/internal.h" #include -#include #if defined(STARBOARD) diff --git a/third_party/boringssl/src/include/openssl/thread.h b/third_party/boringssl/src/include/openssl/thread.h index f954ce6337a0..6e4b72ff1e07 100644 --- a/third_party/boringssl/src/include/openssl/thread.h +++ b/third_party/boringssl/src/include/openssl/thread.h @@ -63,8 +63,6 @@ #ifdef STARBOARD #include "starboard/atomic.h" -#include "starboard/condition_variable.h" -#include "starboard/mutex.h" #endif #if defined(__cplusplus) diff --git a/third_party/crashpad/crashpad/wrapper/wrapper.cc b/third_party/crashpad/crashpad/wrapper/wrapper.cc index 9b8dc7d88ec3..75ba2acd8b08 100644 --- a/third_party/crashpad/crashpad/wrapper/wrapper.cc +++ b/third_party/crashpad/crashpad/wrapper/wrapper.cc @@ -27,9 +27,7 @@ #include "client/settings.h" #include "starboard/common/system_property.h" #include "starboard/configuration_constants.h" -#include "starboard/directory.h" #include "starboard/extension/loader_app_metrics.h" -#include "starboard/file.h" #include "starboard/system.h" #include "third_party/crashpad/crashpad/snapshot/sanitized/sanitization_information.h" diff --git a/third_party/freetype/src/include/freetype/config/ftstdlib.h b/third_party/freetype/src/include/freetype/config/ftstdlib.h index 239858c80ec6..64cf92303bf3 100644 --- a/third_party/freetype/src/include/freetype/config/ftstdlib.h +++ b/third_party/freetype/src/include/freetype/config/ftstdlib.h @@ -114,7 +114,6 @@ #include #include "starboard/common/file_wrapper.h" -#include "starboard/string.h" #define FT_FILE FileStruct #define ft_fclose file_close diff --git a/third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h b/third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h index 13c2809c8518..f3aa05b5e53a 100644 --- a/third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h +++ b/third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h @@ -273,11 +273,8 @@ #include "starboard/common/log.h" #include "starboard/common/spin_lock.h" #include "starboard/common/string.h" -#include "starboard/directory.h" -#include "starboard/file.h" #include "starboard/log.h" #include "starboard/memory.h" -#include "starboard/mutex.h" #include "starboard/system.h" #include "starboard/thread.h" #include "starboard/types.h" diff --git a/third_party/libjpeg_turbo/jinclude.h b/third_party/libjpeg_turbo/jinclude.h index 0fb7acf812f1..72c26e1e4260 100644 --- a/third_party/libjpeg_turbo/jinclude.h +++ b/third_party/libjpeg_turbo/jinclude.h @@ -32,10 +32,6 @@ * But we must pull it in because of the references to FILE in jpeglib.h. * You can remove those references if you want to compile without . */ - -#ifdef STARBOARD -#include "starboard/file.h" -#endif #include #include #include diff --git a/third_party/libxml/starboard/config.h b/third_party/libxml/starboard/config.h index 5324c4489dfd..ad5569d3801d 100644 --- a/third_party/libxml/starboard/config.h +++ b/third_party/libxml/starboard/config.h @@ -1,7 +1,6 @@ #include "starboard/common/log.h" #include "starboard/configuration.h" #include "starboard/memory.h" -#include "starboard/string.h" #include "starboard/types.h" /* Define if getaddrinfo is there */ diff --git a/third_party/zlib/arm_features.c b/third_party/zlib/arm_features.c index 0b314919b90d..85eff572ce80 100644 --- a/third_party/zlib/arm_features.c +++ b/third_party/zlib/arm_features.c @@ -21,7 +21,6 @@ int ZLIB_INTERNAL arm_cpu_enable_pmull = 0; #if defined(STARBOARD) #include "starboard/log.h" -#include "starboard/string.h" #include "starboard/cpu_features.h" #elif defined(ARMV8_OS_ANDROID) #include