loader.h 432 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <stdbool.h>
  3. typedef struct Loader Loader;
  4. /** Start application
  5. * @param name - application name
  6. * @param args - application arguments
  7. * @retval true on success
  8. */
  9. bool loader_start(Loader* instance, const char* name, const char* args);
  10. /** Lock application start
  11. * @retval true on success
  12. */
  13. bool loader_lock(Loader* instance);
  14. /** Unlock application start */
  15. void loader_unlock(Loader* instance);