/*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
/*
* fbc_properties - Establish fbconf_xorg(1M) program properties
*/
#include "fbc.h" /* Common fbconf_xorg(1M) definitions */
#include "fbc_getargs.h" /* Program command line processing */
#include "fbc_help.h" /* Program usage and help messages */
#include "fbc_properties.h" /* fbconf_xorg(1M) program properties */
#include "fbc_propt.h" /* Display the current option settings */
/*
* Command line options that commonly might be implied by "-defaults"
*
* The form of every <x> option name string should be something like:
* "-defaults; -<x>"
* instead of simply:
* "-<x>"
* Read ";" as "implies" (which could be spelled out if need be).
* This is for reporting errors, such as conflicting option values.
* It allows us to tell the user that the error is asociated with the
* actual -defaults option and the -<x> option that is implied.
* Whatever form is chosen, this option name string must look right
* when displayed by the fbc_errormsg() error reporting code.
*/
char *const fbc_defargv_clone[] =
char *const fbc_defargv_deflinear[] =
char *const fbc_defargv_defoverlay[] =
char *const fbc_defargv_deftransparent[] =
char *const fbc_defargv_doublehigh[] =
char *const fbc_defargv_doublewide[] =
char *const fbc_defargv_fake8[] =
char *const fbc_defargv_g[] =
char *const fbc_defargv_multisample[] =
char *const fbc_defargv_offset[] =
char *const fbc_defargv_outputs[] =
char *const fbc_defargv_rscreen[] =
char *const fbc_defargv_samples[] =
char *const fbc_defargv_slave[] =
char *const fbc_defargv_stereo[] =
/*
* Command line option descriptors for fbconf_xorg with an unknown device type
*
* This descriptor array won't be used except in the case of an
* unproven [a-z]fb_properties.c module.
*/
{
/* End-of-table marker */
NULL,
NULL,
NULL,
0,
NULL,
0,
}
};
/*
* List of functions to display the current option settings (-propt)
*
* This function array won't be used except in the case of an
* unproven [a-z]fb_properties.c module.
*/
fbc_propt_file, /* Configuration file */
NULL /* End of table */
};
/*
* fbc_get_base_properties()
*
*
* Some of these are applicable when the device type is not known.
* Some might be overwritten when the device type becomes known.
* Some of these are "universally" applicable and need not be
* overwritten except in fairly unforseen circumstances.
*/
void
{
/*
* Establish the minimal fbconf_xorg(1M) behavior
*/
sizeof (fbc_option) / sizeof (fbopt_descr_t);
} /* fbc_get_base_properties() */
/* End of fbc_properties.c */