comparison libfdproto/messages.c @ 1101:40b48a3997a2

Merged
author Sebastien Decugis <sdecugis@freediameter.net>
date Thu, 09 May 2013 12:06:03 +0800
parents f38d77f9cfd3 6ce5c99a40af
children d8591b1c56cd
comparison
equal deleted inserted replaced
1098:f38d77f9cfd3 1101:40b48a3997a2
1252 CHECK_PARAMS( CHECK_MSG(msg) ); 1252 CHECK_PARAMS( CHECK_MSG(msg) );
1253 1253
1254 if (! (msg->msg_public.msg_flags & CMD_FLAG_REQUEST )) 1254 if (! (msg->msg_public.msg_flags & CMD_FLAG_REQUEST ))
1255 return anscb ? EINVAL : 0; /* we associate with requests only */ 1255 return anscb ? EINVAL : 0; /* we associate with requests only */
1256 1256
1257 CHECK_PARAMS( (anscb == NULL) || (msg->msg_cb.anscb == NULL) ); /* We are not overwritting a cb */ 1257 CHECK_PARAMS( (anscb == NULL) || (msg->msg_cb.anscb == NULL) ); /* We are not overwriting a cb */
1258 CHECK_PARAMS( (expirecb == NULL) || (msg->msg_cb.expirecb == NULL) ); /* We are not overwritting a cb */ 1258 CHECK_PARAMS( (expirecb == NULL) || (msg->msg_cb.expirecb == NULL) ); /* We are not overwriting a cb */
1259 1259
1260 /* Associate callback and data with the message, if any */ 1260 /* Associate callback and data with the message, if any */
1261 msg->msg_cb.anscb = anscb; 1261 msg->msg_cb.anscb = anscb;
1262 msg->msg_cb.expirecb = expirecb; 1262 msg->msg_cb.expirecb = expirecb;
1263 msg->msg_cb.data = data; 1263 msg->msg_cb.data = data;
"Welcome to our mercurial repository"