Add weekday query parameter for macro execute
This commit is contained in:
parent
ea6b653121
commit
173b9d41e8
7 changed files with 83 additions and 5 deletions
include
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue