plugins/streaming/streaming.c
/* Create the per-connection handle. */
Create the per-connection handle.
Create the per - connection handle .
static void *
streaming_open (int readonly)
{
  void *h;
  if (readonly) {
    nbdkit_error ("you cannot use the -r option with the streaming plugin");
    return NULL;
  }
  if (errorstate) {
    nbdkit_error ("unrecoverable error state, "
                  "no new connections can be opened");
    return NULL;
  }
  h = &fd;
  return h;
}
static void * streaming_open ( int readonly ) { void * h ; if ( readonly ) { nbdkit_error ( " " ) ; return NULL ; } if ( errorstate ) { nbdkit_error ( " " " " ) ; return NULL ; } h = & fd ; return h ; }
Create the per-connection handle.
Create the per - connection handle .
/* There is no handle, so return an arbitrary non-NULL pointer. */