picld_pluginutil_impl.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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
*/
/*
* Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PICLD_PLUGINUTIL_IMPL_H
#define _PICLD_PLUGINUTIL_IMPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define PER_ALLOC_COUNT 256
#define RECORD_SIZE_MAX 1024
#define STARTING_INDEX 0
#define SUPPORTED_VERSION_NUM 1.1
/* reserved keyword (case insensitive) */
#define KEYWORD_INT_TYPE "int"
#define KEYWORD_UINT_TYPE "uint"
#define KEYWORD_FLOAT_TYPE "float"
#define KEYWORD_STRING_TYPE "string"
#define KEYWORD_VOID_TYPE "void"
#define KEYWORD_READ_MODE "r"
#define KEYWORD_WRITE_MODE "w"
#define KEYWORD_READWRITE_MODE "rw"
#define KEYWORD_WITH_STR "with"
#define WHITESPACE " \t\n"
#define RECORD_WHITESPACE ": \t\n"
#define DOUBLE_QUOTE "\""
typedef struct {
char *path;
} path_cmd_t;
typedef struct {
char *nodename;
char *classname;
} node_cmd_t;
typedef struct {
int type;
int accessmode;
char *pname;
void *valbuf;
} prop_cmd_t;
typedef struct {
char *pname;
char *dstnode;
typedef struct {
char *newnodename;
char *newnodeclass;
char *dstnode;
typedef struct {
int newtbl;
char *tname;
} table_cmd_t;
typedef struct {
int index;
int nproph;
} row_cmd_t;
typedef struct {
typedef struct {
int type;
union {
} u;
} command_t;
typedef struct {
int count;
int allocated;
float version_no;
int inside_node_block;
int verbose;
const char *fname;
int inside_table_block;
int current_tbl;
int inside_row_block;
int current_row;
} cmdbuf_t;
#ifdef __cplusplus
}
#endif
#endif /* _PICLD_PLUGINUTIL_IMPL_H */