pub type AppStartFn = extern "C" fn(api: *const Api, argc: usize, argv: *const FfiString<'_>) -> i32;Expand description
The type of the entry function for an application
apiis a pointer to theApicallback tableargcis the number of arguments passed. If this is non-zero, thenargvmust be non-null.argvis a pointer to the start of an array of arguments to the program. Every item in that array is aFfiString. There areargcitems in the array.
The function should return 0 on success, or anything else to indicate an
error.