2323#include < vector>
2424
2525#include " arrow/filesystem/filesystem.h"
26+ #include " arrow/filesystem/s3_visibility.h"
2627#include " arrow/util/macros.h"
2728#include " arrow/util/uri.h"
2829
@@ -38,7 +39,7 @@ class STSClient;
3839namespace arrow ::fs {
3940
4041// / Options for using a proxy for S3
41- struct ARROW_EXPORT S3ProxyOptions {
42+ struct ARROW_S3_EXPORT S3ProxyOptions {
4243 std::string scheme;
4344 std::string host;
4445 int port = -1 ;
@@ -67,7 +68,7 @@ enum class S3CredentialsKind : int8_t {
6768};
6869
6970// / Pure virtual class for describing custom S3 retry strategies
70- class ARROW_EXPORT S3RetryStrategy {
71+ class ARROW_S3_EXPORT S3RetryStrategy {
7172 public:
7273 virtual ~S3RetryStrategy () = default ;
7374
@@ -96,7 +97,7 @@ class ARROW_EXPORT S3RetryStrategy {
9697};
9798
9899// / Options for the S3FileSystem implementation.
99- struct ARROW_EXPORT S3Options {
100+ struct ARROW_S3_EXPORT S3Options {
100101 // / \brief Smart defaults for option values
101102 // /
102103 // / The possible values for this setting are explained in the AWS docs:
@@ -315,7 +316,7 @@ struct ARROW_EXPORT S3Options {
315316// / Some implementation notes:
316317// / - buckets are special and the operations available on them may be limited
317318// / or more expensive than desired.
318- class ARROW_EXPORT S3FileSystem : public FileSystem {
319+ class ARROW_S3_EXPORT S3FileSystem : public FileSystem {
319320 public:
320321 ~S3FileSystem () override ;
321322
@@ -409,7 +410,7 @@ class ARROW_EXPORT S3FileSystem : public FileSystem {
409410
410411enum class S3LogLevel : int8_t { Off, Fatal, Error, Warn, Info, Debug, Trace };
411412
412- struct ARROW_EXPORT S3GlobalOptions {
413+ struct ARROW_S3_EXPORT S3GlobalOptions {
413414 // / The log level for S3-originating messages.
414415 S3LogLevel log_level;
415416
@@ -444,21 +445,21 @@ struct ARROW_EXPORT S3GlobalOptions {
444445// /
445446// / Once this function is called you MUST call FinalizeS3 before the end of the
446447// / application in order to avoid a segmentation fault at shutdown.
447- ARROW_EXPORT
448+ ARROW_S3_EXPORT
448449Status InitializeS3 (const S3GlobalOptions& options);
449450
450451// / \brief Ensure the S3 APIs are initialized, but only if not already done.
451452// /
452453// / If necessary, this will call InitializeS3() with some default options.
453- ARROW_EXPORT
454+ ARROW_S3_EXPORT
454455Status EnsureS3Initialized ();
455456
456457// / Whether S3 was initialized, and not finalized.
457- ARROW_EXPORT
458+ ARROW_S3_EXPORT
458459bool IsS3Initialized ();
459460
460461// / Whether S3 was finalized.
461- ARROW_EXPORT
462+ ARROW_S3_EXPORT
462463bool IsS3Finalized ();
463464
464465// / \brief Shutdown the S3 APIs.
@@ -470,16 +471,16 @@ bool IsS3Finalized();
470471// / Calls to InitializeS3() and FinalizeS3() should be serialized by the
471472// / application (this also applies to EnsureS3Initialized() and
472473// / EnsureS3Finalized()).
473- ARROW_EXPORT
474+ ARROW_S3_EXPORT
474475Status FinalizeS3 ();
475476
476477// / \brief Ensure the S3 APIs are shutdown, but only if not already done.
477478// /
478479// / If necessary, this will call FinalizeS3().
479- ARROW_EXPORT
480+ ARROW_S3_EXPORT
480481Status EnsureS3Finalized ();
481482
482- ARROW_EXPORT
483+ ARROW_S3_EXPORT
483484Result<std::string> ResolveS3BucketRegion (const std::string& bucket);
484485
485486} // namespace arrow::fs
0 commit comments