Skip to content

Commit dfa5a9f

Browse files
committed
Add actions/force priority
This commit also formats the codebase because I couldn't be arsed to put that in a separate commit. Oh well :^) Closes: #3 Signed-off-by: Slendi <slendi@socopon.com>
1 parent 9430715 commit dfa5a9f

File tree

4 files changed

+892
-851
lines changed

4 files changed

+892
-851
lines changed

.envrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
use flake
2+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ examples/tictactoe
2020
*.obj
2121
*.pdb
2222
*/*.dSYM
23+
.direnv

include/neurosdk.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ typedef enum neurosdk_severity {
5252
NeuroSDK_Severity_Error
5353
} neurosdk_severity_e;
5454

55+
// Force Priority Levels
56+
typedef enum neurosdk_priority {
57+
NeuroSDK_Priority_Low,
58+
NeuroSDK_Priority_Medium,
59+
NeuroSDK_Priority_High,
60+
NeuroSDK_Priority_Critical,
61+
} neurosdk_priority_e;
62+
5563
// Context Creation Flags
5664
typedef enum neurosdk_context_create_flags {
5765
NeuroSDK_ContextCreateFlags_None = 0,
@@ -118,6 +126,7 @@ typedef struct neurosdk_message_actions_force {
118126
bool ephemeral_context;
119127
char **action_names;
120128
int action_names_len;
129+
neurosdk_priority_e priority;
121130
} neurosdk_message_actions_force_t;
122131

123132
// Action Result

0 commit comments

Comments
 (0)