summaryrefslogtreecommitdiff
path: root/src/note_list.h
blob: 524e689beac300b3fb374b90bbe45ae67cd95359 (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 
   22 #include "common.h"
   23 #include "note.h"
   24 
   25 #ifndef noteless_note_list_h
   26 #define noteless_note_list_h
   27 
   28 typedef struct {
   29   DIR*  dirp;
   30   note* noteent;
   31   char  path[256];
   32   char  ext[64];
   33   int   cursor;
   34 } note_list;
   35 
   36 //typedef struct note_list{
   37 //  DIR* dirp;
   38 //  char path[256];
   39 //  char ext[64];
   40 //  int  cursor;
   41 //} note_list;
   42 
   43 int note_list_new(note_list*, char*, char*);
   44 
   45 void note_list_free(note_list*);
   46 
   47 note* note_list_read(note_list*);
   48 
   49 int note_list_edit(note_list*, char*, char*);
   50 
   51 int note_list_create_note(note_list*, char*, char*);
   52 
   53 int note_list_cat_note(note_list*, char*);
   54 
   55 int note_list_search(note_list*, char*, int);
   56 
   57 int note_list_rm_note(note_list*, char*);
   58 
   59 #endif

Generated by cgit