libamxp
1.4.0
Patterns C Implementation
|
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include <amxc/amxc.h>
#include <amxp/amxp_cron.h>
#include <amxc/amxc_macros.h>
#include "amxp_cron_parser_priv.h"
Go to the source code of this file.
Macros | |
#define | _GNU_SOURCE |
#define | CRON_MONTHS_ARR_LEN 13 |
#define | CRON_DAYS_ARR_LEN 7 |
Functions | |
static void | cron_set_bit (uint8_t *rbyte, int idx) |
static void | cron_del_bit (uint8_t *rbyte, int idx) |
static bool | has_char (const char *str, char ch) |
static uint32_t | parse_uint (const char *str, bool *invalid) |
static void | replace_ordinals (amxc_string_t *value, const char *const *arr, uint32_t arr_len) |
static int | split_string (amxc_llist_t *parts, char *str, const char sep, uint32_t expected_len) |
static uint32_t * | get_range (char *field, uint32_t min, uint32_t max, const char **error) |
static uint32_t * | get_range_increment (char *field, uint32_t min, uint32_t max, uint32_t *increment, const char **error) |
uint8_t | cron_get_bit (const uint8_t *rbyte, int idx) |
int | amxp_cron_reset (amxp_cron_expr_t *cron_expr) |
int | amxp_cron_set_hits (amxc_var_t *value, uint8_t *target, uint32_t min, uint32_t max, const char **error) |
int | amxp_cron_set_months (amxc_var_t *value, uint8_t *target, uint32_t min, uint32_t max, const char **error) |
int | amxp_cron_set_days_of_week (amxc_var_t *value, uint8_t *target, uint32_t min, uint32_t max, const char **error) |
int | amxp_cron_set_days_of_month (amxc_var_t *value, uint8_t *target, uint32_t min, uint32_t max, const char **error) |
Variables | |
static const char *const | MONTHS_ARR [] |
static const char *const | DAYS_ARR [] |
static const char *const | DAYS_ARR_FULL [] |
#define _GNU_SOURCE |
Definition at line 56 of file amxp_cron_parser.c.
#define CRON_DAYS_ARR_LEN 7 |
Definition at line 88 of file amxp_cron_parser.c.
#define CRON_MONTHS_ARR_LEN 13 |
Definition at line 87 of file amxp_cron_parser.c.
int amxp_cron_reset | ( | amxp_cron_expr_t * | cron_expr | ) |
Definition at line 285 of file amxp_cron_parser.c.
int amxp_cron_set_days_of_month | ( | amxc_var_t * | value, |
uint8_t * | target, | ||
uint32_t | min, | ||
uint32_t | max, | ||
const char ** | error | ||
) |
Definition at line 404 of file amxp_cron_parser.c.
int amxp_cron_set_days_of_week | ( | amxc_var_t * | value, |
uint8_t * | target, | ||
uint32_t | min, | ||
uint32_t | max, | ||
const char ** | error | ||
) |
Definition at line 370 of file amxp_cron_parser.c.
int amxp_cron_set_hits | ( | amxc_var_t * | value, |
uint8_t * | target, | ||
uint32_t | min, | ||
uint32_t | max, | ||
const char ** | error | ||
) |
Definition at line 294 of file amxp_cron_parser.c.
int amxp_cron_set_months | ( | amxc_var_t * | value, |
uint8_t * | target, | ||
uint32_t | min, | ||
uint32_t | max, | ||
const char ** | error | ||
) |
Definition at line 342 of file amxp_cron_parser.c.
|
static |
Definition at line 97 of file amxp_cron_parser.c.
uint8_t cron_get_bit | ( | const uint8_t * | rbyte, |
int | idx | ||
) |
Definition at line 274 of file amxp_cron_parser.c.
|
static |
Definition at line 90 of file amxp_cron_parser.c.
|
static |
Definition at line 183 of file amxp_cron_parser.c.
|
static |
Definition at line 237 of file amxp_cron_parser.c.
|
static |
Definition at line 104 of file amxp_cron_parser.c.
|
static |
Definition at line 121 of file amxp_cron_parser.c.
|
static |
Definition at line 141 of file amxp_cron_parser.c.
|
static |
Definition at line 156 of file amxp_cron_parser.c.
|
static |
Definition at line 77 of file amxp_cron_parser.c.
|
static |
Definition at line 82 of file amxp_cron_parser.c.
|
static |
Definition at line 71 of file amxp_cron_parser.c.