Files
caltool/caltool.h
2017-08-26 08:54:02 -04:00

40 lines
1.0 KiB
C

/* caltool.h
* Author: Bronson Graansma 0872249
* Contact: bgraansm@mail.uoguelph.ca
* Date: Feb 21, 2016
* Description: Public Interface for caltool. */
#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 <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <stdbool.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