]> p2p-next.cs.pub.ro Git - swifty.git/blobdiff - src/swift_types.h
swifty: Add swhdr.
[swifty.git] / src / swift_types.h
index 3decae6e35d63d476e8d8d5578446af1f5a90c0c..a8b69f907e0d8bdd5030ab6123c379c925c3bfc8 100644 (file)
@@ -48,6 +48,16 @@ struct sockaddr_sw {
                sizeof(struct in_addr)];
 };
 
+/*
+ * swift header (work in progress)
+ */
+
+struct swhdr {
+       /* file hash (to be seeded or requested) */
+       u_int8_t base_hash[SWIFT_HASH_SIZE];
+       /* TODO */
+};
+
 #ifdef __cplusplus
 }
 #endif