blob: d393a807d9ae1320b061342c96e796cb71c7ea8a (
plain)
1 /**
2 * Copyright (C) 2014 Aaron Ball <nullspoon@iohq.net>
3 *
4 * Noteless is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Noteless is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with noteless. If not, see <http://www.gnu.org/licenses/>.
16 */
17 #include <stdlib.h>
18 #include <dirent.h>
19 #include <stdio.h>
20 #include <string.h>
21 #include "note.h"
22
23 #ifndef noteless_note_list_h
24 #define noteless_note_list_h
25
26 typedef struct note_list {
27 char path[256];
28 char extension[32];
29 char** names;
30 int count;
31 } note_list_t;
32
33 void note_list_new(note_list_t*, char*, char*);
34
35 void note_list_free(note_list_t*);
36
37 int note_list_edit(note_list_t*, char*, char*);
38
39 int note_list_get_note_id(note_list_t*, char*);
40
41 int note_list_cat_note(note_list_t*, char*);
42
43 int note_list_create_note(note_list_t*, char*, char*);
44
45 int note_list_rm_note(note_list_t*, char*);
46
47 int note_list_search(note_list_t*, char*, int);
48
49 #endif
|