-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.h
36 lines (25 loc) · 814 Bytes
/
types.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
36
/*
* ----------------------------------------------------------------------------
* "THE COFFEE-WARE LICENSE" (Revision 23):
* <[email protected]> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can bring me a coffee in return.
* ----------------------------------------------------------------------------
*/
#ifndef _KRAUS_TYPES_H_
#define _KRAUS_TYPES_H_
#include <time.h>
#include <stdlib.h>
#define ERROR_FLOOR 255
typedef unsigned char kraus_t;
typedef int (*KRAUS_PTR)(struct tm *);
typedef struct {
unsigned weekday: 1;
unsigned reserved: 7;
} cal_flags_t;
typedef struct {
time_t start_date;
unsigned int count;
cal_flags_t flags;
} calendar_t;
#endif