mdesc_mutable.h revision fc256490629fe68815f7e0f23cf9b3545720cfac
/*
* 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 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _MDESC_MUTABLE_H_
#define _MDESC_MUTABLE_H_
#ifdef DEBUG
#include <assert.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef DEBUG
#else /* DEBUG */
#endif /* DEBUG */
#define MD_ALIGNMENT_SIZE 0x10
/*
* List management macros for mutable MD structure
*/
struct { \
int count; \
} _chain
/*
* Add node _nodep to the end of _chain via the required 'nextp' element.
*/
do { \
} else { \
} \
/*
* Internal definitions.
*/
typedef struct md_string md_string_t;
typedef struct md_data_block md_data_block_t;
struct md_string {
char *strp;
int size; /* strlen()+1 */
int ref_cnt;
};
struct md_data_block {
int ref_cnt;
};
struct md_prop {
union {
struct {
union {
} val;
} arc;
} d;
};
struct md_node {
int build_index; /* for building a binary md & cloning */
int next_index; /* for building a binary md */
char seen; /* seen flag (md_scan_dag/md_scour) */
char deleted; /* pending deletion flag */
};
struct mmd {
};
char *linktonewp, char *linkbackp);
void md_destroy(mmd_t *);
#ifdef __cplusplus
}
#endif
#endif /* _MDESC_MUTABLE_H_ */