]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Zap.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 10 May 2007 13:25:30 +0000 (13:25 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 10 May 2007 13:25:30 +0000 (13:25 +0000)
git-svn-id: file:///svn/unbound/trunk@308 be551aaa-1e26-0410-a405-d3ace91eadb9

util/module.h

index b4f8b225fb2435c4c6c13c923cefccb0d641e058..b7cfec4f13948770e56406aaf38088731df95e5a 100644 (file)
@@ -66,8 +66,8 @@ struct module_env {
        struct slabhash* rrset_cache;
 
        /* --- services --- */
-       /** send DNS query to server */
-       /** create a subquery */
+       /** send DNS query to server. operate() should return with wait_reply */
+       /** create a subquery. operate should then return with wait_subq */
 
        /** allocation service */
        struct alloc* alloc;
@@ -173,6 +173,12 @@ struct module_func_block {
         * @param ev: event that causes the module state machine to 
         *      (re-)activate.
         * @param qstate: the query state. 
+        * @return: if at exit the ext_state is:
+        *      o wait_module: next module is started. (with pass event).
+        *      o error or finished: previous module is resumed.
+        *      o otherwise it waits until that event happens (assumes
+        *        the service routine to make subrequest or send message
+        *        have been called.
         */
        void (*operate)(struct module_qstate* qstate, enum module_ev event, 
                int id);