summaryrefslogtreecommitdiff
path: root/src/note.h
blob: 239ef0ffd7a93b5e4d61f22bd59e5807f0e559b6 (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_rm(note_t*);
   39 
   40 int line_matches(char*, char*);
   41 
   42 
   43 /**
   44  * C++ code
   45  */
   46 //vector<string> body;
   47 //void read();
   48 //string friendly_name();
   49 //string get_fqp();
   50 //vector<string> find( bool, string );
   51 
   52 #endif

Generated by cgit