plugins/streaming/streaming.c
/* Called for each key=value passed on the command line. */
Called for each key=value passed on the command line.
Called for each key = value passed on the command line .
static int
streaming_config (const char *key, const char *value)
{
  if (strcmp (key, "pipe") == 0) {
    filename = nbdkit_absolute_path (value);
    if (!filename)
      return -1;
  }
  else if (strcmp (key, "size") == 0) {
    size = nbdkit_parse_size (value);
    if (size == -1)
      return -1;
  }
  else {
    nbdkit_error ("unknown parameter '%s'", key);
    return -1;
  }
  return 0;
}
static int streaming_config ( const char * key , const char * value ) { if ( strcmp ( key , " " ) == 0 ) { filename = nbdkit_absolute_path ( value ) ; if ( ! filename ) return -1 ; } else if ( strcmp ( key , " " ) == 0 ) { size = nbdkit_parse_size ( value ) ; if ( size == -1 ) return -1 ; } else { nbdkit_error ( " " , key ) ; return -1 ; } return 0 ; }
Called for each key=value passed on the command line.
Called for each key = value passed on the command line .
/* See FILENAMES AND PATHS in nbdkit-plugin(3). */