-
Notifications
You must be signed in to change notification settings - Fork 0
/
caltool.h
35 lines (25 loc) · 953 Bytes
/
caltool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/********
* Author: Andrew Adams #0828800
* Contact: aadams03@mail.uoguelph.ca
caltool.h -- Public interface for iCalendar tools in caltool.c
Last updated: 10:09 PM January-27-16
********/
#ifndef CALTOOL_H
#define CALTOOL_H A2_RevA
#define _GNU_SOURCE // for getdate_r
#define _XOPEN_SOURCE // for strptime
#include <time.h>
#include <stdio.h>
#include "calutil.h"
/* Symbols used to send options to command execution modules */
typedef enum {
OEVENT, // events
OPROP, // properties
OTODO, // to-do items
} CalOpt;
/* iCalendar tool functions */
CalStatus calInfo( const CalComp *comp, int lines, FILE *const txtfile );
CalStatus calExtract( const CalComp *comp, CalOpt kind, FILE *const txtfile );
CalStatus calFilter( const CalComp *comp, CalOpt content, time_t datefrom, time_t dateto, FILE *const icsfile );
CalStatus calCombine( const CalComp *comp1, const CalComp *comp2, FILE *const icsfile );
#endif