summaryrefslogtreecommitdiff
path: root/src/datatypes.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2021-11-07 16:10:35 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2021-11-07 16:10:35 +1300
commitaf4ee4a230f1124a4c10761740aa41404d21d4a8 (patch)
tree74ce915d5a6bcb53e347be75c6d5bc1cd38ede57 /src/datatypes.ads
parent866565c42134dbe8828c9a9b8140a90598df4069 (diff)
Image transferral now works
Diffstat (limited to 'src/datatypes.ads')
-rw-r--r--src/datatypes.ads11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/datatypes.ads b/src/datatypes.ads
index 164e7c9..7229f2d 100644
--- a/src/datatypes.ads
+++ b/src/datatypes.ads
@@ -72,14 +72,17 @@ package Datatypes is
subtype Note_Vector is Note_Vectors.Vector;
- type Media_ID is new SU.Unbounded_String;
type Media_Name is new SU.Unbounded_String;
+ type Media_ID is new SU.Unbounded_String;
package Media_Maps is new Ada.Containers.Ordered_Maps
- (Key_Type => Media_ID,
- Element_Type => Media_Name);
+ (Key_Type => Media_Name,
+ Element_Type => Media_ID);
- subtype Media_Map is Media_Maps.Map;
+ type Media_Collection is record
+ Filename : SU.Unbounded_String;
+ Map : Media_Maps.Map;
+ end record;
end Datatypes;