blob: 8f13b2d389ffc25641939f83529f87c5747f8dc5 (
plain)
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
|
#ifndef __AGENDA_ENTRY_H__
#include <stdlib.h>
#include <string.h>
#include "date.h"
typedef struct entry {
//struct entry *parent;
//struct entry *children;
//int8_t level;// nesting level of the entry
//char *todo; // TODO keyword
char *tag; // tag keyword
char *title; // the actual entry
//char *text; // description (if there is one)
Date date; // scheduled or deadline date
} entry;
char *next_word(char *str);
char *next_line(char *str);
char *next_entry(char *str);
entry read_agenda_entry(char *agenda);
char *format_entry(entry e);
void merge_entry_array(entry *arr, int halfway, int n);
void insertion_sort_entry_array(entry *arr, int n);
void merge_sort_entry_array(entry *arr, int n);
void sort_entry_array(entry *arr, int n);
void print_entry(entry e);
void destroy_entry(entry e);
#define __AGENDA_ENTRY_H__
#endif
|