blob: 2627295d1ec4f3cf573cfacfc05ece4a8e186082 (
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 <stdio.h>
19 #include <string.h>
20 #include "common.h"
21 //#include "path.h"
22
23 #ifndef noteless_note_h
24 #define noteless_note_h
25
26 typedef struct note {
27 char extension[32];
28 char path[256];
29 char name[256];
30 } note_t;
31
32 void note_new(note_t*, char*);
33
34 int note_create(note_t*, char*);
35
36 int note_edit(note_t*, char*);
37
38 int note_cat(note_t*);
39
40 int note_rm(note_t*);
41
42 int line_matches(char*, char*);
43
44
45 /**
46 * C++ code
47 */
48 //vector<string> body;
49 //string friendly_name();
50 //string get_fqp();
51 //vector<string> find( bool, string );
52
53 #endif
|