Mercurial > hg > waaad
comparison waaad/dispatch.c @ 421:fcd65ebc7c43
Parse incoming answers
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 23 Jun 2009 16:09:21 +0900 |
parents | 316bb3f38d04 |
children | 5e793a4e2450 |
comparison
equal
deleted
inserted
replaced
420:7de6e87d752e | 421:fcd65ebc7c43 |
---|---|
159 | 159 |
160 CHECK_FCT_DO( msg_get_anscb(qry, &anscb, &data ), goto error ); | 160 CHECK_FCT_DO( msg_get_anscb(qry, &anscb, &data ), goto error ); |
161 | 161 |
162 /* If a callback was registered, pass the message to it */ | 162 /* If a callback was registered, pass the message to it */ |
163 if (anscb != NULL) { | 163 if (anscb != NULL) { |
164 (void)msg_parse_dict(msg); /* This may help the callback function */ | |
165 | |
164 TRACE_DEBUG(FULL, "Calling callback registered when query was sent (%p, %p)", anscb, data); | 166 TRACE_DEBUG(FULL, "Calling callback registered when query was sent (%p, %p)", anscb, data); |
165 (*anscb)(data, &msg); | 167 (*anscb)(data, &msg); |
166 | 168 |
167 if (msg == NULL) { | 169 if (msg == NULL) { |
168 TRACE_DEBUG(FULL, "The message was handled by msg_send callback, skipping dispatch module callbacks"); | 170 TRACE_DEBUG(FULL, "The message was handled by msg_send callback, skipping dispatch module callbacks"); |