-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoteprocs.hpp
More file actions
35 lines (30 loc) · 882 Bytes
/
noteprocs.hpp
File metadata and controls
35 lines (30 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef NOTEPROCS_H
#define NOTEPROCS_H
#include <map>
#include "json.h"
#include "jsonhelper.hpp"
#include "responses.hpp"
typedef struct NOTE {
long int id;
std::string subject;
std::string entry;
std::string dateAdded;
std::string lastModified;
bool locked;
std::string userAgent;
std::string lastUserAgent;
} NOTE;
typedef struct NOTE_SUMMARY {
long int id;
std::string subject;
std::string lastModified;
} NOTE_SUMMARY;
bool indexMainResponse(json_value*, NAMEDESCRIPTOR&);
bool indexNote(NAMEDESCRIPTOR&);
bool indexNoteList(NAMEDESCRIPTOR&, NUMBERDESCRIPTOR&);
bool indexNewID(NAMEDESCRIPTOR&);
long int getNoteList(NAMEDESCRIPTOR&, NUMBERDESCRIPTOR&, NOTE_SUMMARY*&);
NOTE getNote(NAMEDESCRIPTOR&);
long int getNewID(NAMEDESCRIPTOR&);
void freeNoteList(NOTE_SUMMARY*&);
#endif