AppStartFn

Type Alias AppStartFn 

Source
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

  • api is a pointer to the Api callback table
  • argc is the number of arguments passed. If this is non-zero, then argv must be non-null.
  • argv is a pointer to the start of an array of arguments to the program. Every item in that array is a FfiString. There are argc items in the array.

The function should return 0 on success, or anything else to indicate an error.