info.h revision b27516f55237249607f754e6e42e865f12456675
/*
* 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
*/
/*
*/
#ifndef _RDSV3_INFO_H
#define _RDSV3_INFO_H
struct rdsv3_info_iterator {
char *addr;
unsigned long offset;
};
struct rdsv3_info_lengths {
unsigned int nr;
unsigned int each;
};
struct rdsv3_sock;
/*
* These functions must fill in the fields of @lens to reflect the size
* of the available info source. If the snapshot fits in @len then it
* should be copied using @iter. The caller will deduce if it was copied
* or not by comparing the lengths.
*/
struct rdsv3_info_iterator *iter,
struct rdsv3_info_lengths *lens);
#endif /* _RDSV3_INFO_H */