#undef VENDOR_RELEASE
#undef VENDOR_STRING
#include "version-config.h"
-#include "site.h"
#endif
+#include "site.h"
#undef class
#undef public
}
char *listenaddr = NULL;
+static int vncVerbose = DEFAULT_LOG_VERBOSITY;
+
static void
vfbInitializePixmapDepths(void)
ErrorF("-inetd has been launched from inetd\n");
ErrorF("-interface IP_address listen on specified interface\n");
ErrorF("-noclipboard disable clipboard settings modification via vncconfig utility\n");
+ ErrorF("-verbose [n] verbose startup messages\n");
+ ErrorF("-quiet minimal startup messages\n");
ErrorF("\nVNC parameters:\n");
fprintf(stderr,"\n"
noclipboard = true;
return 1;
}
-
+
+ if (!strcmp(argv[i], "-verbose")) {
+ if (++i < argc && argv[i]) {
+ char *end;
+ long val;
+
+ val = strtol(argv[i], &end, 0);
+ if (*end == '\0') {
+ vncVerbose = val;
+ LogSetParameter(XLOG_VERBOSITY, vncVerbose);
+ return 2;
+ }
+ }
+ vncVerbose++;
+ LogSetParameter(XLOG_VERBOSITY, vncVerbose);
+ return 1;
+ }
+
+ if (!strcmp(argv[i], "-quiet")) {
+ vncVerbose = -1;
+ LogSetParameter(XLOG_VERBOSITY, vncVerbose);
+ return 1;
+ }
+
if (rfb::Configuration::setParam(argv[i]))
return 1;