filters/blocksize/blocksize.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
blocksize_config (nbdkit_next_config *next, void *nxdata,
                  const char *key, const char *value)
{
  if (strcmp (key, "minblock") == 0)
    return blocksize_parse (key, value, &minblock);
  if (strcmp (key, "maxdata") == 0)
    return blocksize_parse (key, value, &maxdata);
  if (strcmp (key, "maxlen") == 0)
    return blocksize_parse (key, value, &maxlen);
  return next (nxdata, key, value);
}
static int blocksize_config ( nbdkit_next_config * next , void * nxdata , const char * key , const char * value ) { if ( strcmp ( key , " " ) == 0 ) return blocksize_parse ( key , value , & minblock ) ; if ( strcmp ( key , " " ) == 0 ) return blocksize_parse ( key , value , & maxdata ) ; if ( strcmp ( key , " " ) == 0 ) return blocksize_parse ( key , value , & maxlen ) ; return next ( nxdata , key , value ) ; }
Called for each key=value passed on the command line.
Called for each key = value passed on the command line .