/*
* 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: service.c 163 2006-05-09 15:07:45Z njacobs $ */
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <alloca.h>
#include <uri.h>
#include <papi_impl.h>
{
return (PAPI_BAD_ARGUMENT);
return (PAPI_OK);
/*
* valid URIs are in the form:
* lpd://server[:port]/.../queue[#extensions]
* rfc-1179://server[:port]/.../queue[#extensions]
* any authentication information supplied the URI is ignored.
*/
} else {
}
}
return (status);
}
{
return (PAPI_BAD_ARGUMENT);
return (PAPI_TEMPORARY_ERROR);
if (service_name != NULL)
"service-name", service_name);
return (status);
}
void
{
#ifdef DEADBEEF
#endif
}
}
{
return (PAPI_BAD_ARGUMENT);
"user-name", user_name));
}
{
return (PAPI_BAD_ARGUMENT);
}
{
return (PAPI_BAD_ARGUMENT);
"encryption", (int)encryption));
}
{
return (PAPI_BAD_ARGUMENT);
return (PAPI_OK);
}
{
return (PAPI_BAD_ARGUMENT);
return (PAPI_OK);
}
char *
{
"service-name", &result);
return (result);
}
char *
{
"user-name", &result);
return (result);
}
char *
{
"password", &result);
return (result);
}
{
"encryption", (int *)&result);
return (result);
}
void *
{
}
return (result);
}
{
return (result);
}
char *
{
"detailed-status-message", &result);
}
return (result);
}
void
{
/*
* fill in the message. If the buffer is too small, allocate
* one that is large enough and fill it in.
*/
"detailed-status-message", message);
}
}