* garrow_schema_import: * @c_abi_schema: (not nullable): A `struct ArrowSchema *`. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full) (nullable): An imported #GArrowSchema on success, * %NULL on error. * * You don't need to release the passed `struct ArrowSchema *`, * even if this function reports an error. * * Since: 6.0.0 */
| 134 | * Since: 6.0.0 |
| 135 | */ |
| 136 | GArrowSchema * |
| 137 | garrow_schema_import(gpointer c_abi_schema, GError **error) |
| 138 | { |
| 139 | auto arrow_schema_result = |
| 140 | arrow::ImportSchema(static_cast<ArrowSchema *>(c_abi_schema)); |
| 141 | if (garrow::check(error, arrow_schema_result, "[schema][import]")) { |
| 142 | return garrow_schema_new_raw(&(*arrow_schema_result)); |
| 143 | } else { |
| 144 | return NULL; |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * garrow_schema_new: |
nothing calls this directly
no test coverage detected