XenevaOS
Loading...
Searching...
No Matches
notes_fs.h
Go to the documentation of this file.
1#ifndef __NOTES_FS_H__
2#define __NOTES_FS_H__
3
4#include <stdint.h>
5#include <chitralekha.h>
6#include <widgets/window.h>
7
8/* Initialize notes filesystem (ensures /note exists) */
9void NotesInitFS();
10
11/* Save note content to disk by title in /note/<NAME>.NT */
12void NotesSaveNote(const char* title, const char* content);
13
14/* Delete note file from disk by title */
15void NotesDeleteNote(const char* title);
16
17/* Load a note file into the text box */
18void NotesLoadFile(const char* filename, ChWindow* win);
19
20/* Save the current text box content to a file */
21void NotesSaveFile(const char* filename);
22
23/* Populate the sidebar with note files from the disk */
25
26#endif
char title[128]
Definition d_main.c:877
ChWindow * win
Definition namdapha.cpp:60
void NotesSaveFile(const char *filename)
Definition notes_fs.cpp:86
void NotesSaveNote(const char *title, const char *content)
Definition notes_fs.cpp:45
void NotesLoadFile(const char *filename, ChWindow *win)
Definition notes_fs.cpp:70
void NotesPopulateSidebar(ChWindow *win)
Definition notes_fs.cpp:100
void NotesDeleteNote(const char *title)
Definition notes_fs.cpp:62
void NotesInitFS()
Definition notes_fs.cpp:9
Definition window.h:106