We're going to want this in a moment.
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
}
}
-bool_t comm_notify(struct comm_notify_list *notify,
+bool_t comm_notify(struct commcommon *cc,
struct buffer_if *buf, const struct comm_addr *ca)
{
+ struct comm_notify_list *notify = &cc->notify;
struct comm_notify_entry *n;
LIST_FOREACH(n, notify, entry) {
void comm_request_notify(void *commst, void *nst, comm_notify_fn *fn);
void comm_release_notify(void *commst, void *nst, comm_notify_fn *fn);
-bool_t comm_notify(struct comm_notify_list *notify, struct buffer_if *buf,
+bool_t comm_notify(struct commcommon*, struct buffer_if *buf,
const struct comm_addr *ca);
/* Either: returns True, with message delivered and buffer freed.
* Or: False, if no-one wanted it - buffer still allocd'd.
ca.comm=&cc->ops;
ca.ia=from;
ca.ix=i;
- done=comm_notify(&cc->notify, cc->rbuf, &ca);
+ done=comm_notify(cc, cc->rbuf, &ca);
if (done) {
udp_sock_experienced(0,uc,socks,us,0,
from.sa.sa_family,0,0);