src/transport_internal.h
branchnew-transport
changeset 159 d3e253d7281a
parent 157 1e5674d0eec4
child 165 b3e95108c884
--- a/src/transport_internal.h	Tue Apr 28 23:09:28 2009 +0300
+++ b/src/transport_internal.h	Tue Apr 28 23:10:30 2009 +0300
@@ -53,6 +53,9 @@
  * The definition of a transport type
  */
 struct transport_type {
+    /** Parent type */
+    const struct transport_type *parent;
+
     /** Method table */
     struct transport_methods methods;
 };
@@ -83,7 +86,7 @@
 
 /**
  * Check the type of the transport, and return the transport as a void* suitable for casting to the appropriate struct
- * for the type.
+ * for the type, or any of its children.
  *
  * It is a bug to call this with a transport of a different type.
  */