@@ -81,7 +81,7 @@ comptime {
8181}
8282
8383/// Android entry point
84- fn NativeActivity_onCreate (activity : * androidbind.ANativeActivity , rawSavedState : ? [* ]u8 , rawSavedStateSize : usize ) callconv (.C ) void {
84+ fn NativeActivity_onCreate (activity : * androidbind.ANativeActivity , rawSavedState : ? [* ]u8 , rawSavedStateSize : usize ) callconv (.c ) void {
8585 const savedState : []const u8 = if (rawSavedState ) | s |
8686 s [0.. rawSavedStateSize ]
8787 else
@@ -147,7 +147,7 @@ fn makeNativeActivityGlue(comptime App: type) androidbind.ANativeActivityCallbac
147147 }
148148
149149 // return value must be created with malloc(), so we pass the c_allocator to App.onSaveInstanceState
150- fn onSaveInstanceState (activity : * androidbind.ANativeActivity , outSize : * usize ) callconv (.C ) ? [* ]u8 {
150+ fn onSaveInstanceState (activity : * androidbind.ANativeActivity , outSize : * usize ) callconv (.c ) ? [* ]u8 {
151151 outSize .* = 0 ;
152152 if (! @hasDecl (App , "onSaveInstanceState" )) {
153153 log .debug ("ANativeActivity callback onSaveInstanceState not available on {s}" , .{@typeName (App )});
@@ -162,52 +162,52 @@ fn makeNativeActivityGlue(comptime App: type) androidbind.ANativeActivityCallbac
162162 return null ;
163163 }
164164
165- fn onDestroy (activity : * androidbind.ANativeActivity ) callconv (.C ) void {
165+ fn onDestroy (activity : * androidbind.ANativeActivity ) callconv (.c ) void {
166166 const instance = activity .instance orelse return ;
167167 const app : * App = @ptrCast (@alignCast (instance ));
168168 app .deinit ();
169169 std .heap .c_allocator .destroy (app );
170170 }
171- fn onStart (activity : * androidbind.ANativeActivity ) callconv (.C ) void {
171+ fn onStart (activity : * androidbind.ANativeActivity ) callconv (.c ) void {
172172 invoke (activity , "onStart" , .{});
173173 }
174- fn onResume (activity : * androidbind.ANativeActivity ) callconv (.C ) void {
174+ fn onResume (activity : * androidbind.ANativeActivity ) callconv (.c ) void {
175175 invoke (activity , "onResume" , .{});
176176 }
177- fn onPause (activity : * androidbind.ANativeActivity ) callconv (.C ) void {
177+ fn onPause (activity : * androidbind.ANativeActivity ) callconv (.c ) void {
178178 invoke (activity , "onPause" , .{});
179179 }
180- fn onStop (activity : * androidbind.ANativeActivity ) callconv (.C ) void {
180+ fn onStop (activity : * androidbind.ANativeActivity ) callconv (.c ) void {
181181 invoke (activity , "onStop" , .{});
182182 }
183- fn onConfigurationChanged (activity : * androidbind.ANativeActivity ) callconv (.C ) void {
183+ fn onConfigurationChanged (activity : * androidbind.ANativeActivity ) callconv (.c ) void {
184184 invoke (activity , "onConfigurationChanged" , .{});
185185 }
186- fn onLowMemory (activity : * androidbind.ANativeActivity ) callconv (.C ) void {
186+ fn onLowMemory (activity : * androidbind.ANativeActivity ) callconv (.c ) void {
187187 invoke (activity , "onLowMemory" , .{});
188188 }
189- fn onWindowFocusChanged (activity : * androidbind.ANativeActivity , hasFocus : c_int ) callconv (.C ) void {
189+ fn onWindowFocusChanged (activity : * androidbind.ANativeActivity , hasFocus : c_int ) callconv (.c ) void {
190190 invoke (activity , "onWindowFocusChanged" , .{(hasFocus != 0 )});
191191 }
192- fn onNativeWindowCreated (activity : * androidbind.ANativeActivity , window : * androidbind.ANativeWindow ) callconv (.C ) void {
192+ fn onNativeWindowCreated (activity : * androidbind.ANativeActivity , window : * androidbind.ANativeWindow ) callconv (.c ) void {
193193 invoke (activity , "onNativeWindowCreated" , .{window });
194194 }
195- fn onNativeWindowResized (activity : * androidbind.ANativeActivity , window : * androidbind.ANativeWindow ) callconv (.C ) void {
195+ fn onNativeWindowResized (activity : * androidbind.ANativeActivity , window : * androidbind.ANativeWindow ) callconv (.c ) void {
196196 invoke (activity , "onNativeWindowResized" , .{window });
197197 }
198- fn onNativeWindowRedrawNeeded (activity : * androidbind.ANativeActivity , window : * androidbind.ANativeWindow ) callconv (.C ) void {
198+ fn onNativeWindowRedrawNeeded (activity : * androidbind.ANativeActivity , window : * androidbind.ANativeWindow ) callconv (.c ) void {
199199 invoke (activity , "onNativeWindowRedrawNeeded" , .{window });
200200 }
201- fn onNativeWindowDestroyed (activity : * androidbind.ANativeActivity , window : * androidbind.ANativeWindow ) callconv (.C ) void {
201+ fn onNativeWindowDestroyed (activity : * androidbind.ANativeActivity , window : * androidbind.ANativeWindow ) callconv (.c ) void {
202202 invoke (activity , "onNativeWindowDestroyed" , .{window });
203203 }
204- fn onInputQueueCreated (activity : * androidbind.ANativeActivity , input_queue : * androidbind.AInputQueue ) callconv (.C ) void {
204+ fn onInputQueueCreated (activity : * androidbind.ANativeActivity , input_queue : * androidbind.AInputQueue ) callconv (.c ) void {
205205 invoke (activity , "onInputQueueCreated" , .{input_queue });
206206 }
207- fn onInputQueueDestroyed (activity : * androidbind.ANativeActivity , input_queue : * androidbind.AInputQueue ) callconv (.C ) void {
207+ fn onInputQueueDestroyed (activity : * androidbind.ANativeActivity , input_queue : * androidbind.AInputQueue ) callconv (.c ) void {
208208 invoke (activity , "onInputQueueDestroyed" , .{input_queue });
209209 }
210- fn onContentRectChanged (activity : * androidbind.ANativeActivity , rect : * const androidbind.ARect ) callconv (.C ) void {
210+ fn onContentRectChanged (activity : * androidbind.ANativeActivity , rect : * const androidbind.ARect ) callconv (.c ) void {
211211 invoke (activity , "onContentRectChanged" , .{rect });
212212 }
213213 };
0 commit comments