/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
*/
/*
* db_item_c.x
*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
%#pragma ident "%Z%%M% %I% %E% SMI"
%
% /* A 'counted' string. */
%
#if RPC_HDR
%#ifndef _DB_ITEM_H
%#define _DB_ITEM_H
#endif /* RPC_HDR */
#ifdef USINGC
struct item{
char itemvalue<>;
};
#endif /* USINGC */
#endif /* RPC_HDR */
#ifndef USINGC
#ifdef RPC_HDR
% int len;
% char *value;
% public:
%/* Constructor: creates item using given character sequence and length */
%
%/* Constructor: creates item by copying given item */
%
%/* Constructor: creates empty item (zero length and null value). */
%
%/* Destructor: recover space occupied by characters and delete item. */
%
%/* Equality test. 'casein' TRUE means case insensitive test. */
%
%/* Equality test. 'casein' TRUE means case insensitive test. */
%
%/* Assignment: update item by setting pointers. No space is allocated. */
%
%/* Return contents of item. */
%
%/* Prints contents of item to stdout */
% void print();
%
%/* Return hash value. 'casein' TRUE means case insensitive test. */
%};
#endif /* RPC_HDR */
#endif /* USINGC */
#if RPC_HDR
%#endif /* _DB_ITEM_H */
#endif /* RPC_HDR */