-/* Creates and returns a new struct driver_option that contains copies of
- all of the supplied arguments. All of the arguments must be nonnull,
- except that VALUE may be NULL (if the user did not supply a value for this
- option).
-
- Refer to struct driver_option for the meaning of each argument. */
-struct driver_option *
-driver_option_create (const char *driver_name, const char *name,
- const char *value, const char *default_value)
-{
- struct driver_option *o = xmalloc (sizeof *o);
- o->driver_name = xstrdup (driver_name);
- o->name = xstrdup (name);
- o->value = value != NULL ? xstrdup (value) : NULL;
- o->default_value = default_value ? xstrdup (default_value) : NULL;
- return o;
-}
-
-/* Creates and returns a new struct driver_option for output driver DRIVER
- (which is needed only to the extent that its name will be used in error
- messages). The option named NAME is extracted from OPTIONS. DEFAULT_VALUE
- is the default value of the option, used if the given option was not
- supplied or was invalid. */
-struct driver_option *
-driver_option_get (struct output_driver *driver, struct string_map *options,
+/* Creates and returns a new struct driver_option for driver DRIVER_NAME (which
+ is used only in error messages). The option named NAME is extracted from
+ OPTIONS. DEFAULT_VALUE is the default value of the option, used if the
+ given option was not supplied or was invalid. */
+struct driver_option
+driver_option_get (struct driver_options *options,