X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvconn-stream.c;h=83795097a8d1ff4227d9ab6b5467147c9ff542e5;hb=66f51290ba619f4c3b340c7bd6aedd61f41dd9ea;hp=0f7220e2b22b0197b73feb199ec91ab0fa208847;hpb=95204b0bf0c329fde1ff1ba821f9166abfa18377;p=openvswitch diff --git a/lib/vconn-stream.c b/lib/vconn-stream.c index 0f7220e2..83795097 100644 --- a/lib/vconn-stream.c +++ b/lib/vconn-stream.c @@ -246,12 +246,14 @@ stream_wait(struct vconn *vconn, enum vconn_wait_type wait) } static struct vconn_class stream_vconn_class = { - .name = "stream", - .close = stream_close, - .connect = stream_connect, - .recv = stream_recv, - .send = stream_send, - .wait = stream_wait, + "stream", /* name */ + NULL, /* open */ + stream_close, /* close */ + stream_connect, /* connect */ + NULL, /* accept */ + stream_recv, /* recv */ + stream_send, /* send */ + stream_wait, /* wait */ }; /* Passive stream socket vconn. */ @@ -349,8 +351,12 @@ pstream_wait(struct vconn *vconn, enum vconn_wait_type wait) } static struct vconn_class pstream_vconn_class = { - .name = "pstream", - .close = pstream_close, - .accept = pstream_accept, - .wait = pstream_wait + "pstream", /* name */ + NULL, /* open */ + pstream_close, /* close */ + NULL, /* connect */ + pstream_accept, /* accept */ + NULL, /* recv */ + NULL, /* send */ + pstream_wait /* wait */ };