Rename type zmq_monitor_fn -> zmq_monitor for a more natural callback definition API (zmq_monitor type, monitor.function callback)

This commit is contained in:
Lourens Naudé
2012-05-20 18:27:59 +01:00
parent 06cce15479
commit e13b3723b8
6 changed files with 10 additions and 10 deletions

View File

@@ -325,7 +325,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
errno = EINVAL;
return -1;
}
monitor = *((zmq_monitor_fn**) &optval_);
monitor = *((zmq_monitor**) &optval_);
return 0;
}
}
@@ -550,8 +550,8 @@ int zmq::options_t::getsockopt (int option_, void *optval_, size_t *optvallen_)
errno = EINVAL;
return -1;
}
*((zmq_monitor_fn**) &optval_) = monitor;
*optvallen_ = sizeof (zmq_monitor_fn*);
*((zmq_monitor**) &optval_) = monitor;
*optvallen_ = sizeof (zmq_monitor*);
return 0;
}