BSB Developer Docs
Loading...
Searching...
No Matches
cli_command_min.h
Go to the documentation of this file.
1
7#pragma once
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef enum {
19 (1
20 << 3),
22 (1 << 4),
24 // internal use flags (do not set them yourselves!)
25 // only to be set inside CLI shell code
26
29
30typedef struct PipeSide PipeSide;
31typedef struct FuriString FuriString;
32
48typedef void (*CliCommandExecuteCallback)(PipeSide* pipe, FuriString* args, void* context);
49
50#ifdef __cplusplus
51}
52#endif
CliCommandFlag
Definition cli_command_min.h:13
@ CliCommandFlagDefault
Default.
Definition cli_command_min.h:14
@ CliCommandFlagInsomniaSafe
Safe to run with insomnia mode on.
Definition cli_command_min.h:16
@ CliCommandFlagUseShellThread
Don't start a separate thread to run the command in.
Definition cli_command_min.h:18
@ CliCommandFlagExclusive
Only one instance of the command can be run at a time.
Definition cli_command_min.h:21
@ CliCommandFlagDontAttachStdio
Do no attach I/O pipe to thread stdio.
Definition cli_command_min.h:17
@ CliCommandFlagExternal
The command comes from a .fal file.
Definition cli_command_min.h:27
@ CliCommandFlagParallelUnsafe
Unsafe to run in parallel with other apps.
Definition cli_command_min.h:15
void(* CliCommandExecuteCallback)(PipeSide *pipe, FuriString *args, void *context)
CLI command execution callback pointer.
Definition cli_command_min.h:48
There are two PipeSides per pipe.
Definition pipe.c:22