/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
*/
/* $Id: common.c 155 2006-04-26 02:34:54Z ktou $ */
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <unistd.h>
#include <papi.h>
#include <ipp-listener.h>
char *
{
return (mesg);
}
char *
{
else
result++;
#ifdef FORCE_LPSCHED_URI
#endif /* FORCE_LPSCHED_URI */
return (result);
}
void
{
char *fodder;
int junk;
*id = -1;
"printer-uri", printer);
"job-id", id);
} else {
*job = '\0';
}
}
}
void
{
}
void
{
"ipp-versions-supported", "1.0");
"ipp-versions-supported", "1.1");
"multiple-document-jobs-supported", 0);
/*
* Should be able to ask the web server if it supports SSL or TLS, but
* for now, we pick only "none"
*/
"uri-security-supported", "none");
/*
* For now, we only "none". As we support more authentication methods,
* we will need to add the associated uri for each. Valid values would
* be:
* "none", "requesting-user-name", "basic", "digest", "certificate"
* See RFC2911 page 127 for more information.
*/
"uri-authentication-supported", "requesting-user-name");
"uri-security-supported", "none");
/* printer-uri-supported is added in the service based attributes */
"multiple-operation-time-out", 60);
/* I18N related */
"charset-configured", "utf-8");
"charset-supported", "utf-8");
"natural-language-configured", "en-us");
}
static void
{
"printer-uri-supported", printer_uri);
}
static void
{
"job-printer-uri", printer_uri);
"job-uri", buf);
}
}
/*
* uri because the print service may return a URI that isn't IPP based.
*/
void
{
if (port == 631)
else
"printer-attributes-group", &group);
"job-attributes-group", &group);
}
/*
* This walks through the locale tab and returns the installed
* locales. There must be a better way.
*/
void
{
"generated-natural-language-supported", "en-us");
#ifndef __linux__ /* this is Solaris specific */
name[i] = '-';
else
passed = 0;
if ((passed == 1) &&
"generated-natural-language-supported",
name);
}
}
}
#endif
}
void
{
/* Windows clients appear to have a problem with very large values */
"printer-attributes-group", ipp_group);
}
void
{
"job-attributes-group", ipp_group);
}