Add weekday query parameter for macro execute

This commit is contained in:
Tobias Reisinger 2024-04-16 23:07:30 +02:00
parent ea6b653121
commit 173b9d41e8
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 83 additions and 5 deletions

View file

@ -2,6 +2,7 @@
#define CORE_HELPERS_H
#include <time.h>
#include <mongoose.h>
#include <config.h>
int
@ -13,4 +14,7 @@ helper_get_weekday(const struct tm *time_struct);
int
helper_drop_privileges();
char*
find_query_param(struct mg_str query_mg_str, char* search_key);
#endif /* CORE_HELPERS_H */

View file

@ -18,6 +18,9 @@ macro_action_delete_for_macro(int macro_id);
macro_action_t**
macro_action_get_for_macro(int macro_id);
macro_action_t**
macro_action_get_for_macro_and_weekday(int macro_id, int weekday);
int
macro_action_execute(macro_action_t *macro_action);