/*
* 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.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*LINTLIBRARY*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <string.h>
#include <ns.h>
#include <list.h>
/*
* Commonly Used routines...
*/
/*
* FUNCTION:
* kvp_create(const char *key, const void *value)
* INPUT(S):
* const char *key
* const void *value
* OUTPUT(S):
* ns_kvp_t * (return value)
* DESCRIPTION:
*/
ns_kvp_t *
{
}
return (kvp);
}
void
{
}
}
/*
* FUNCTION:
* ns_kvp_match_key(const ns_kvp_t *kvp, const char *key)
* INPUT(S):
* const ns_kvp_t *kvp
* const char *key
* - key for matching
* OUTPUT(S):
* int (return value)
* - 0 if matched
* DESCRIPTION:
*/
static int
{
return (-1);
}
/*
* FUNCTION:
* ns_r_get_value(const char *key, const ns_printer_t *printer)
* INPUT(S):
* const char *key
* - key for matching
* const ns_printer_t *printer
* - printer to glean this from
* OUTPUT(S):
* char * (return value)
* - NULL, if not matched
* DESCRIPTION:
*/
static void *
{
return (NULL);
if (level++ == 16)
return (NULL);
/* find it right here */
/* fill in an empty printer for a bsdaddr */
}
return (value);
}
/* find it in a child */
attrs++) {
char **printers;
return (value);
}
return (value);
}
}
return (value);
}
return (NULL);
}
/*
* ns_get_value() gets the value of the passed in attribute from the passed
* in printer structure. The value is returned in a converted format.
*/
void *
{
}
/*
* ns_get_value_string() gets the value of the key passed in from the
* printer structure passed in. The results is an ascii string.
*/
char *
{
}
/*
* ns_set_value() sets the passed in kvp in the passed in printer structure,
* This is done by converting the value to a string first.
*/
int
{
return (ns_set_value_from_string(key,
}
/*
* ns_set_value_from_string() sets the passed in kvp in the passed in printer
* structure.
*/
int
{
return (-1);
else {
}
else
}
return (0);
}