kou commented on code in PR #55464:
URL: https://github.com/apache/arrow/pull/55464#discussion_r4560469906
##########
c_glib/arrow-glib/file-system.cpp:
##########
@@ -545,6 +549,26 @@ garrow_file_selector_class_init(GArrowFileSelectorClass
*klass)
/* arrow::fs::FileSystem */
+struct GArrowFileSystemTypeRegistry
+{
+ std::mutex mutex;
+ std::unordered_map<std::string, GType> types = {
+ {"local", GARROW_TYPE_LOCAL_FILE_SYSTEM},
+ {"hdfs", GARROW_TYPE_HDFS_FILE_SYSTEM},
+ {"s3", GARROW_TYPE_S3_FILE_SYSTEM},
+ {"gcs", GARROW_TYPE_GCS_FILE_SYSTEM},
+ {"abfs", GARROW_TYPE_AZURE_FILE_SYSTEM},
+ {"mock", GARROW_TYPE_MOCK_FILE_SYSTEM},
+ };
+};
Review Comment:
How about using `GIOExtensionPoint` instead?
https://docs.gtk.org/gio/struct.IOExtensionPoint.html
If you aren't familiar with `GIOExtensionPoint`, I can push some commits to
this branch.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]