summaryrefslogtreecommitdiff
path: root/app/bin/note.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2022-02-06 16:04:57 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2022-02-06 16:04:57 +0100
commit59dccf358523dfc7679d1d8c120452a71e42243c (patch)
treef0f3cc006e8157d6bd699bd644b7dd7b35387ac2 /app/bin/note.h
parentfd6639655b399a79fb72f494786a4f57da9c90e7 (diff)
parentd0ca838c7ab297036b4a7c45351761a48fe05efd (diff)
Merge branch 'feature/upstrem' into develop
Diffstat (limited to 'app/bin/note.h')
-rw-r--r--app/bin/note.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/bin/note.h b/app/bin/note.h
index 315823f..2d70176 100644
--- a/app/bin/note.h
+++ b/app/bin/note.h
@@ -22,8 +22,7 @@
#ifndef HAVE_NOTE_H
#define HAVE_NOTE_H
-#include <stdbool.h>
-#include "track.h"
+#include "common.h"
#define URLMAXIMUMLENGTH (512)
#define PATHMAXIMUMLENGTH (2048)
@@ -40,7 +39,8 @@ enum noteCommands {
};
/** hold the data for the note */
-struct extraDataNote {
+typedef struct extraDataNote_t {
+ extraDataBase_t base;
coOrd pos; /**< position */
unsigned int layer;
enum noteCommands op; /**< note type */
@@ -57,7 +57,7 @@ struct extraDataNote {
BOOL_T inArchive;
} fileData; /**< used for file note */
} noteData;
-};
+} extraDataNote_t;
//struct noteTextData {
// coOrd pos;
@@ -102,9 +102,10 @@ void NewTextNoteUI(track_p trk);
void DescribeTextNote(track_p trk, char * str, CSIZE_T len);
/* trknote.c */
+extern TRKTYP_T T_NOTE;
void NoteStateSave(track_p trk);
-void UpdateFile(struct extraDataNote *noteUIData, int inx, BOOL_T needUndoStart);
-void UpdateText(struct extraDataNote *noteUIData, int inx, BOOL_T needUndoStart);
-void UpdateLink(struct extraDataNote *noteUIData, int inx, BOOL_T needUndoStart);
+void UpdateFile(struct extraDataNote_t *noteUIData, int inx, BOOL_T needUndoStart);
+void UpdateText(struct extraDataNote_t *noteUIData, int inx, BOOL_T needUndoStart);
+void UpdateLink(struct extraDataNote_t *noteUIData, int inx, BOOL_T needUndoStart);
#endif // !HAVE_NOTE_H