*/
static int
check_monitor_notify (void *cls,
- const struct GNUNET_ARM_StatusMessage *res)
+ const struct GNUNET_ARM_StatusMessage *msg)
{
- size_t sl = ntohs (res->header.size) - sizeof (struct GNUNET_ARM_StatusMessage);
- const char *name = (const char *) &res[1];
+ size_t sl = ntohs (msg->header.size) - sizeof (struct GNUNET_ARM_StatusMessage);
+ const char *name = (const char *) &msg[1];
if ( (0 == sl) ||
('\0' != name[sl-1]) )
* Handler for notification messages received from ARM.
*
* @param cls our `struct GNUNET_ARM_MonitorHandle`
- * @param msg the message received from the arm service
+ * @param res the message received from the arm service
*/
static void
handle_monitor_notify (void *cls,
static int
reconnect_arm_monitor (struct GNUNET_ARM_MonitorHandle *h)
{
- GNUNET_MQ_hd_var_size (monitor_notify,
- GNUNET_MESSAGE_TYPE_ARM_STATUS,
- struct GNUNET_ARM_StatusMessage);
struct GNUNET_MQ_MessageHandler handlers[] = {
- make_monitor_notify_handler (h),
+ GNUNET_MQ_hd_var_size (monitor_notify,
+ GNUNET_MESSAGE_TYPE_ARM_STATUS,
+ struct GNUNET_ARM_StatusMessage,
+ h),
GNUNET_MQ_handler_end ()
};
struct GNUNET_MessageHeader *msg;