picl2door.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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PICL2DOOR_H
#define _PICL2DOOR_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define PICLD_DOOR_VERSION 1
#define PICLD_DOOR "/var/run/picld_door"
/*
* PICL service calls
*/
typedef enum {
PICL_CNUM_FINI, /* fini */
PICL_CNUM_GETROOT, /* get root node */
PICL_CNUM_GETATTRVAL, /* get attr val */
PICL_CNUM_GETATTRVALBYNAME, /* get attr val by name */
PICL_CNUM_GETATTRINFO, /* get attribute information */
PICL_CNUM_GETFIRSTATTR, /* get first attribute */
PICL_CNUM_GETNEXTATTR, /* get next attribute */
PICL_CNUM_GETATTRBYNAME, /* get attr by name */
PICL_CNUM_GETATTRBYROW, /* get attr by row */
PICL_CNUM_GETATTRBYCOL, /* get attr by column */
PICL_CNUM_SETATTRVAL, /* set attribute's value */
PICL_CNUM_SETATTRVALBYNAME, /* set attr val by name */
PICL_CNUM_PING, /* ping daemon */
PICL_CNUM_WAIT, /* wait n seconds for refresh */
PICL_CNUM_ERROR, /* error response */
PICL_CNUM_FINDNODE, /* find node */
PICL_CNUM_NODEBYPATH, /* get node by path */
PICL_CNUM_FRUTREEPARENT /* get frutree parent */
typedef union {
char str[1];
} propval_t;
/*
* Generic picl service request argument
*/
typedef struct {
} picl_req_t;
typedef struct {
} picl_ret_t;
/*
* PICL initialize
*/
typedef struct {
unsigned int clrev; /* client's ID and revision number */
typedef struct {
int rev; /* PICL daemon's revision number */
/*
* PICL shutdown
*/
typedef struct {
typedef struct {
/*
* PICL get root
*/
typedef struct {
typedef struct {
/*
* PICL get attr val
*/
typedef struct {
typedef struct {
propval_t u;
/*
* PICL get attr val by name
*/
typedef struct {
/* attribute name */
char propname[PICL_PROPNAMELEN_MAX];
typedef struct {
/* attribute name */
char propname[PICL_PROPNAMELEN_MAX];
propval_t u; /* return value */
/*
* PICL get attr info
*/
typedef struct {
typedef struct {
unsigned int accessmode; /* access mode */
/* attr name */
char name[PICL_PROPNAMELEN_MAX];
/*
* PICL get first attr
*/
typedef struct {
typedef struct {
/*
* PICL get next attr
*/
typedef struct {
typedef struct {
/*
* PICL get attr by name
*/
typedef struct {
/* attr name */
char propname[PICL_PROPNAMELEN_MAX];
typedef struct {
/* attr name */
char propname[PICL_PROPNAMELEN_MAX];
/*
* PICL get attr by row
*/
typedef struct {
typedef struct {
/*
* PICL get attr by column
*/
typedef struct {
typedef struct {
/*
* PICL set attr val
*/
typedef struct {
char valbuf[1];
typedef struct {
/*
* PICL set attr val by name
*/
typedef struct {
/* attr name */
char propname[PICL_PROPNAMELEN_MAX];
char valbuf[1];
typedef struct {
/* attr name */
char propname[PICL_PROPNAMELEN_MAX];
/*
* PICL ping
*/
typedef struct {
typedef struct {
/*
* PICL wait
*/
typedef struct {
unsigned int secs; /* number of seconds */
typedef struct {
unsigned int secs; /* input seconds */
int retcode; /* return code */
/*
* PICL find node
*/
typedef struct {
/* property name */
char propname[PICL_PROPNAMELEN_MAX];
typedef struct {
/*
* PICL get node by path
*/
typedef struct {
typedef struct {
/*
* PICL get frutree parent
*/
typedef struct {
typedef struct {
/*
* PICL error return
*/
typedef struct {
typedef union {
/* req attr val by name */
/* ret attr val by name */
/* set attribute value */
/* ret set attribute value */
/* set attr val by name */
/* set attr val by name */
#ifdef __cplusplus
}
#endif
#endif /* _PICL2DOOR_H */