diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-08-06 09:26:46 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-08-06 12:08:14 +0200 |
commit | 9ce586146825200c819662ea8dcb44cc03d2cd53 (patch) | |
tree | ca9e9db902574de4da0eb2155d9020b73c695699 /src/calcurse.h | |
parent | bfe73d0e5d66c43006a8a0dd8d58e311432bcb57 (diff) | |
download | calcurse-9ce586146825200c819662ea8dcb44cc03d2cd53.zip |
Add pattern filter option
This adds a new item filter option --filter-pattern and removes the
whole -S parameter logic, while making -S an alias for --filter-pattern.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index 4ae6c66..0290520 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -394,6 +394,7 @@ enum day_item_type { /* Filter settings. */ struct item_filter { int type_mask; + regex_t *regex; long start_from; long start_to; long end_from; @@ -722,7 +723,7 @@ long day_item_get_duration(struct day_item *); int day_item_get_state(struct day_item *); void day_item_add_exc(struct day_item *, long); void day_item_fork(struct day_item *, struct day_item *); -void day_store_items(long, regex_t *, int); +void day_store_items(long, int); void day_process_storage(struct date *, unsigned); void day_display_item_date(struct day_item *, WINDOW *, int, long, int, int); void day_display_item(struct day_item *, WINDOW *, int, int, int, int); |