refactoring
[rrq/rrqmisc.git] / vector / QueryCallbacks.h
index ad4461b426ce36f407fd3e1a8dfd46c3d6994632..5d36e0b6ee4e590ddb876ee7e904f783732d5f42 100644 (file)
@@ -1,9 +1,9 @@
 #ifndef QueryCallbacks_H
 #define QueryCallbacks_H
 
-typedef struct HashVector HashVector;
-typedef struct Query Query;
-typedef struct BindingTable BindingTable;;
+#include <BindingTable.h>
+
+typedef struct Query Query; // forward
 
 enum NextState {
     /**
@@ -41,6 +41,7 @@ typedef struct QueryCallbacks {
      * thereafter reclaim their local state memory.
      */
     void (*reclaim)(Query *this);
+
     /**
      * \brief Callback function to update the Binding table with a
      * succession of alternative bindings.
@@ -66,6 +67,7 @@ typedef struct QueryCallbacks {
      * it cannot setup any (more) Binding.
      */
     int (*next)(Query *this,BindingTable *bt,enum NextState state);
+
     /**
      * \brief This callback function adds its binding names to the
      * hashvector.