plugins/gzip/gzip.c
static int
gzip_config (const char *key, const char *value)
{
  if (strcmp (key, "file") == 0) {
    /* See FILENAMES AND PATHS in nbdkit-plugin(3). */
    filename = nbdkit_realpath (value);
    if (!filename)
      return -1;
  }
  else {
    nbdkit_error ("unknown parameter '%s'", key);
    return -1;
  }

  return 0;
}
/* Called for each key=value passed on the command line.  This plugin
 * only accepts file=<filename>, which is required.
 */
Called for each key=value passed on the command line.  This plugin
only accepts file=, which is required.
Called for each key = value passed on the command line . This plugin only accepts file = which is required .
static int
gzip_config (const char *key, const char *value)
{
  if (strcmp (key, "file") == 0) {
    filename = nbdkit_realpath (value);
    if (!filename)
      return -1;
  }
  else {
    nbdkit_error ("unknown parameter '%s'", key);
    return -1;
  }
  return 0;
}
static int gzip_config ( const char * key , const char * value ) { if ( strcmp ( key , " " ) == 0 ) { filename = nbdkit_realpath ( value ) ; if ( ! filename ) 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). */