*
* 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_propt - Display current software configuration
*/
#include <stdio.h> /* printf() */
#include <string.h> /* strcasecmp(), strcmp() */
#include "configProcs.h" /* xf86findOption(), xf86nameCompare() */
#include "fbc.h" /* Common fbconf_xorg(1M) definitions */
#include "fbc_Option.h" /* Edit Option lists */
#include "fbc_propt.h" /* Display current software configuration */
/*
* fbc_propt_name()
*
* Display a label string, a quoted name string or the alternative
* string for a missing name, and a line terminator.
*
* The name string is quoted, as it is in the config file, since it
*/
void
const char * const label, /* Label string */
const char * const name, /* Name string, else NULL */
const char * const no_name) /* Alternate string for missing name */
{
} else {
}
} /* fbc_propt_name() */
/*
* fbc_propt_file()
*
* Display identifying information for the current config file and
* for the active configuration sections.
*/
void
{
/*
* Configuration file location and pathname
*/
printf("\nxorg.conf: ");
}
/*
* Active Screen section (section and name string must exist)
*/
no_name = "*** no name ***";
}
/*
* Active Device section (section and name string must exist)
*/
no_name = "*** none ***";
no_name = "*** no name ***";
}
/*
* Active Monitor section, if any (section must have a name string)
*/
no_name = "none";
no_name = "*** no name ***";
}
printf("\n");
} /* fbc_propt_file() */
/*
* fbc_propt_video_mode()
*
* Display the current video mode name.
*/
void
{
fbc_propt_name("Video Mode: ",
} /* fbc_propt_video_mode() */
/*
* fbc_propt_stereo()
*
* Display the current stereo video mode name (-res).
*/
void
{
} /* fbc_propt_stereo() */
/*
* fbc_propt_multisample()
*
* Display the current Multisample mode settings.
*/
void
{
printf("\nMultisample Information:\n");
/*
* Multisample
*/
description = "";
description = " (multisample visuals will not be available)";
} else
description = " (multisample visuals will be available)";
} else
" (All Sun OpenGL programs will be multisampled)";
}
/*
* Samples (This was "MultisampleDepth" in OWconfig)
*/
"Samples Per Pixel: %s\n",
} /* fbc_propt_multisample() */
/*
* fbc_propt_screen_title()
*
* Display the screen settings title line.
*/
void
{
/*
* Screen information
*/
printf("\nScreen Information:\n");
} /* fbc_propt_screen_title() */
/*
* fbc_propt_dual_screen()
*
* Display the current dual-screen (-doublewide, -doublehigh)
* settings.
*/
void
{
} /* fbc_propt_dual_screen() */
/*
* fbc_propt_clone()
*
* Display the current clone setting (-clone).
*/
void
{
} /* fbc_propt_clone() */
/*
* fbc_propt_offset()
*
* Display the current screen offset settings (-offset).
*/
void
{
"0",
"0",
} /* fbc_propt_offset() */
/*
* fbc_propt_outputs()
*
* Display the current Outputs setting (-outputs).
*/
void
{
} /* fbc_propt_outputs() */
/*
* fbc_propt_fake8()
*
* Display the current Fake8 Rendering setting (-fake8).
*/
void
{
} /* fbc_propt_fake8() */
/*
* fbc_propt_rscreen()
*
* Display the current Remote Console setting (-rscreen).
*/
void
{
} /* fbc_propt_rscreen() */
/*
* fbc_propt_visual_title()
*
* Display the default visual title line.
*/
void
{
printf("\nVisual Information:\n");
} /* fbc_propt_visual_title() */
/*
* fbc_propt_default_visual()
*
* Display the current default visual setting for -deflinear,
* -defoverlay, and -deftransparent.
*/
void
{
/*
* Default visual
*
* DefLinear, DefOverlay, and DefTransparent are supposed to
* be mutually exclusive, however, there is no assurance that
* manual editing of the configuration file left it in a
* consistent state.
*/
"Default Visual: Nonlinear Overlay Visual\n");
} else
"Default Visual: Transparent Overlay Visual\n");
} else
} else {
"Default Visual: Nonlinear Normal Visual\n");
}
} /* fbc_propt_default_visual() */
/*
* fbc_propt_g()
*
* Display the current gamma correction setting for -g only.
*/
void
{
/*
* Gamma correction
*/
"Using gamma value %.2f\n",
} else {
"Using default gamma value %2.2f\n",
}
} /* fbc_propt_g() */
/*
* fbc_propt_gamma()
*
* Display the current gamma correction settings for -g and -gfile.
*/
void
{
/*
* Gamma correction
*
* Gamma and GFile should be mutually exclusive entries.
* There's no assurance, however, that manual editing of the
* configuration file will leave it in a consistent state.
*/
"", "");
if (*setting != '\0') {
"Using gamma file\n");
} else {
}
} /* fbc_propt_gamma() */
/*
* fbc_propt()
*
* Display the current software configuration (option settings) for a
* frame buffer device (-propt).
*/
void
{
/*
* Repeat for each -propt display function in the array
*/
propt_fn += 1) {
}
} /* fbc_propt() */
/* End of fbc_propt.c */