@@ -44,6 +44,8 @@ public struct GArrowStringScalar { }
44
44
public struct GArrowInt8Scalar { }
45
45
public struct GArrowSortOptions { }
46
46
public struct GArrowSortKey { }
47
+ public struct GArrowProjectNodeOptions { }
48
+ public struct GArrowInt32Scalar { }
47
49
48
50
public enum GArrowJoinType
49
51
{
@@ -66,16 +68,16 @@ public enum GArrowSortOrder
66
68
public const string DllName = "libarrow-glib-1300.dll" ;
67
69
68
70
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_execute_plan_new" ) ]
69
- public static extern unsafe GArrowExecutePlan * garrow_execute_plan_new ( GError * * error ) ;
71
+ public static extern unsafe GArrowExecutePlan * garrow_execute_plan_new ( out GError * * error ) ;
70
72
71
73
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_source_node_options_new_record_batch" ) ]
72
74
public static extern unsafe GArrowSourceNodeOptions * garrow_source_node_options_new_record_batch ( GArrowRecordBatch * record_batch ) ;
73
75
74
76
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_record_batch_import" ) ]
75
- public static extern unsafe GArrowRecordBatch * garrow_record_batch_import ( CArrowArray * c_abi_array , GArrowSchema * schema , GError * * error ) ;
77
+ public static extern unsafe GArrowRecordBatch * garrow_record_batch_import ( CArrowArray * c_abi_array , GArrowSchema * schema , out GError * * error ) ;
76
78
77
79
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_schema_import" ) ]
78
- public static extern unsafe GArrowSchema * garrow_schema_import ( CArrowSchema * c_abi_schema , GError * * error ) ;
80
+ public static extern unsafe GArrowSchema * garrow_schema_import ( CArrowSchema * c_abi_schema , out GError * * error ) ;
79
81
80
82
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_schema_get_field" ) ]
81
83
public static extern unsafe GArrowField * garrow_schema_get_field ( GArrowSchema * schema , uint i ) ;
@@ -84,22 +86,22 @@ public enum GArrowSortOrder
84
86
public static extern unsafe bool garrow_field_is_nullable ( GArrowField * field ) ;
85
87
86
88
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_hash_join_node_options_new" ) ]
87
- public static extern unsafe GArrowHashJoinNodeOptions * garrow_hash_join_node_options_new ( GArrowJoinType type , IntPtr left_keys , uint n_left_keys , IntPtr right_keys , uint n_right_keys , GError * * error ) ;
89
+ public static extern unsafe GArrowHashJoinNodeOptions * garrow_hash_join_node_options_new ( GArrowJoinType type , IntPtr left_keys , uint n_left_keys , IntPtr right_keys , uint n_right_keys , out GError * * error ) ;
88
90
89
91
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_execute_plan_build_hash_join_node" ) ]
90
- public static extern unsafe GArrowExecuteNode * garrow_execute_plan_build_hash_join_node ( GArrowExecutePlan * plan , GArrowExecuteNode * left , GArrowExecuteNode * right , GArrowHashJoinNodeOptions * options , GError * * error ) ;
92
+ public static extern unsafe GArrowExecuteNode * garrow_execute_plan_build_hash_join_node ( GArrowExecutePlan * plan , GArrowExecuteNode * left , GArrowExecuteNode * right , GArrowHashJoinNodeOptions * options , out GError * * error ) ;
91
93
92
94
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_execute_plan_build_source_node" ) ]
93
- public static extern unsafe GArrowExecuteNode * garrow_execute_plan_build_source_node ( GArrowExecutePlan * plan , GArrowSourceNodeOptions * options , GError * * error ) ;
95
+ public static extern unsafe GArrowExecuteNode * garrow_execute_plan_build_source_node ( GArrowExecutePlan * plan , GArrowSourceNodeOptions * options , out GError * * error ) ;
94
96
95
97
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_execute_plan_validate" ) ]
96
- public static extern unsafe bool garrow_execute_plan_validate ( GArrowExecutePlan * plan , GError * * error ) ;
98
+ public static extern unsafe bool garrow_execute_plan_validate ( GArrowExecutePlan * plan , out GError * * error ) ;
97
99
98
100
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_sink_node_options_new" ) ]
99
101
public static extern unsafe GArrowSinkNodeOptions * garrow_sink_node_options_new ( ) ;
100
102
101
103
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_execute_plan_build_sink_node" ) ]
102
- public static extern unsafe GArrowExecuteNode * garrow_execute_plan_build_sink_node ( GArrowExecutePlan * plan , GArrowExecuteNode * input , GArrowSinkNodeOptions * options , GError * * error ) ;
104
+ public static extern unsafe GArrowExecuteNode * garrow_execute_plan_build_sink_node ( GArrowExecutePlan * plan , GArrowExecuteNode * input , GArrowSinkNodeOptions * options , out GError * * error ) ;
103
105
104
106
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_execute_plan_start" ) ]
105
107
public static extern unsafe void garrow_execute_plan_start ( GArrowExecutePlan * plan ) ;
@@ -111,16 +113,16 @@ public enum GArrowSortOrder
111
113
public static extern unsafe GArrowRecordBatchReader * garrow_sink_node_options_get_reader ( GArrowSinkNodeOptions * options , GArrowSchema * schema ) ;
112
114
113
115
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_record_batch_reader_export" ) ]
114
- public static extern unsafe CArrowArrayStream * garrow_record_batch_reader_export ( GArrowRecordBatchReader * reader , GError * * error ) ;
116
+ public static extern unsafe CArrowArrayStream * garrow_record_batch_reader_export ( GArrowRecordBatchReader * reader , out GError * * error ) ;
115
117
116
118
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_record_batch_reader_import" ) ]
117
- public static extern unsafe GArrowRecordBatchReader * garrow_record_batch_reader_import ( CArrowArrayStream * c_abi_array_stream , GError * * error ) ;
119
+ public static extern unsafe GArrowRecordBatchReader * garrow_record_batch_reader_import ( CArrowArrayStream * c_abi_array_stream , out GError * * error ) ;
118
120
119
121
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_source_node_options_new_record_batch_reader" ) ]
120
122
public static extern unsafe GArrowSourceNodeOptions * garrow_source_node_options_new_record_batch_reader ( GArrowRecordBatchReader * reader ) ;
121
123
122
124
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_execute_plan_build_filter_node" ) ]
123
- public static extern unsafe GArrowExecuteNode * garrow_execute_plan_build_filter_node ( GArrowExecutePlan * plan , GArrowExecuteNode * input , GArrowFilterNodeOptions * options , GError * * error ) ;
125
+ public static extern unsafe GArrowExecuteNode * garrow_execute_plan_build_filter_node ( GArrowExecutePlan * plan , GArrowExecuteNode * input , GArrowFilterNodeOptions * options , out GError * * error ) ;
124
126
125
127
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_filter_node_options_new" ) ]
126
128
public static extern unsafe GArrowFilterNodeOptions * garrow_filter_node_options_new ( IntPtr expression ) ;
@@ -129,7 +131,7 @@ public enum GArrowSortOrder
129
131
public static extern unsafe GArrowCallExpression * garrow_call_expression_new ( IntPtr function , IntPtr arguments , GArrowFunctionOptions * options ) ;
130
132
131
133
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_field_expression_new" ) ]
132
- public static extern unsafe GArrowFieldExpression * garrow_field_expression_new ( IntPtr reference , GError * * error ) ;
134
+ public static extern unsafe GArrowFieldExpression * garrow_field_expression_new ( IntPtr reference , out GError * * error ) ;
133
135
134
136
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_literal_expression_new" ) ]
135
137
public static extern unsafe GArrowFieldExpression * garrow_literal_expression_new ( GArrowDatum * datum ) ;
@@ -156,10 +158,20 @@ public enum GArrowSortOrder
156
158
public static extern unsafe GArrowSortOptions * garrow_sort_options_new ( GList * sort_keys ) ;
157
159
158
160
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_sort_key_new" ) ]
159
- public static extern unsafe GArrowSortKey * garrow_sort_key_new ( IntPtr target , GArrowSortOrder order , GError * * error ) ;
161
+ public static extern unsafe GArrowSortKey * garrow_sort_key_new ( IntPtr target , GArrowSortOrder order , out GError * * error ) ;
160
162
161
163
[ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_execute_plan_build_node" ) ]
162
164
public static extern unsafe GArrowExecuteNode * garrow_execute_plan_build_node ( GArrowExecutePlan * plan , IntPtr factory_name , IntPtr inputs , IntPtr options , out GError * * error ) ;
165
+
166
+ [ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_project_node_options_new" ) ]
167
+ public static extern unsafe GArrowProjectNodeOptions * garrow_project_node_options_new ( GList * expressions , IntPtr names , int n_names ) ;
168
+
169
+ [ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_execute_plan_build_project_node" ) ]
170
+ public static extern unsafe GArrowExecuteNode * garrow_execute_plan_build_project_node ( GArrowExecutePlan * plan , GArrowExecuteNode * input , GArrowProjectNodeOptions * options , out GError * * error ) ;
171
+
172
+
173
+ [ DllImport ( DllName , CallingConvention = CallingConvention . Cdecl , EntryPoint = "garrow_int32_scalar_new" ) ]
174
+ public static extern unsafe GArrowInt32Scalar * garrow_int32_scalar_new ( int value ) ;
163
175
}
164
176
165
177
[ StructLayout ( LayoutKind . Sequential ) ]
0 commit comments