summaryrefslogtreecommitdiff
path: root/src/note_list.h
blob: 11744a6606c3ba847fe4ba398d225084a9d1b664 (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 //#include "path.h"
   23 
   24 #ifndef noteless_note_list_h
   25 #define noteless_note_list_h
   26 
   27 typedef struct note_list {
   28   char path[256];
   29   char extension[32];
   30   char** names;
   31   int count;
   32 } note_list_t;
   33 
   34 void note_list_new(note_list_t*, char*, char*);
   35 
   36 void note_list_free(note_list_t*);
   37 
   38 int note_list_edit(note_list_t*, char*, char*);
   39 
   40 int note_list_get_note_id(note_list_t*, char*);
   41 
   42 int note_list_cat_note(note_list_t*, char*);
   43 
   44 // void get_notes(note_list_t*);
   45 
   46 // note_list( string, string );
   47 // int add( string, string );
   48 // int create( string, string );
   49 // int rm( string );
   50 // vector<string> enum_names();
   51 // vector<string> find( bool, string );
   52 
   53 #endif

Generated by cgit