From adacaef799455013bf00b85a43237ac8d9471ade Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Mon, 6 Feb 2017 09:26:14 -0500 Subject: iOS: cd into Documents folder at startup CQ_INCLUDE_TRYBOTS=skia.primary:Test-iOS-Clang-iPadMini4-GPU-GX6450-arm-Release Change-Id: I7beadad742bc9444491c7a315a827297a636d70d Reviewed-on: https://skia-review.googlesource.com/8049 Reviewed-by: Mike Klein Commit-Queue: Mike Klein --- tools/ios_utils.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tools/ios_utils.h (limited to 'tools/ios_utils.h') diff --git a/tools/ios_utils.h b/tools/ios_utils.h new file mode 100644 index 0000000000..0287dc14ae --- /dev/null +++ b/tools/ios_utils.h @@ -0,0 +1,23 @@ +/* + * Copyright 2017 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef ios_util_DEFINED +#define ios_util_DEFINED + +#if defined(__cplusplus) +extern "C" { +#endif + + // cd into the current app's Documents/ directory. + // (This is the only directory we can easily read and write.) + void cd_Documents(); + +#if defined(__cplusplus) +} +#endif + +#endif//ios_util_DEFINED -- cgit v1.2.3