summaryrefslogtreecommitdiff
path: root/src/note.h
blob: 04a34049235b8226e60d848831e1b9142bec4bae (plain)
    1 /**
    2  * Copyright (C) 2016 Aaron Ball <nullspoon@oper.io>
    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 
   21 #include "common.h"
   22 
   23 #ifndef noteless_note_h
   24 #define noteless_note_h
   25 
   26 #define file_width 256
   27 
   28 typedef struct {
   29   char extension[32];
   30   char path[256];
   31   char name[256];
   32 } note;
   33 
   34 void note_new(note*, char*);
   35 
   36 int note_create(note*, char*);
   37 
   38 int note_edit(note*, char*);
   39 
   40 int note_cat(note*);
   41 
   42 int note_rm(note*);
   43 
   44 int note_search(note*, char*, int);
   45 
   46 #endif

Generated by cgit