]> p2p-next.cs.pub.ro Git - swifty.git/commitdiff
swifty: Add swhdr.
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Sun, 15 May 2011 06:44:58 +0000 (09:44 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Sun, 15 May 2011 06:44:58 +0000 (09:44 +0300)
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