cfsd_logelem.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 1994-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _CFSD_LOGELEM_H
#define _CFSD_LOGELEM_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Include file for the logelem class.
*/
#ifdef __cplusplus
extern "C" {
#endif
/* typedefs for logelem type */
#define NO_OBJECT_TYPE 0
#define SETATTR_OBJECT_TYPE 1
#define SETSECATTR_OBJECT_TYPE 2
#define CREATE_OBJECT_TYPE 3
#define REMOVE_OBJECT_TYPE 4
#define RMDIR_OBJECT_TYPE 5
#define MKDIR_OBJECT_TYPE 6
#define LINK_OBJECT_TYPE 7
#define SYMLINK_OBJECT_TYPE 8
#define RENAME_OBJECT_TYPE 9
#define MODIFIED_OBJECT_TYPE 10
#define MAPFID_OBJECT_TYPE 11
#define CFSDMesgMax 4096
/* BEGIN CSTYLED */
/* defines for refrencing objects */
/* END CSTYLED */
/* setattr */
typedef struct cfsd_logelem_setattr_object {
struct cfs_dlog_setattr *i_up;
/* setsecattr */
typedef struct cfsd_logelem_setsecattr_oject {
struct cfs_dlog_setsecattr *i_up;
/* create */
typedef struct cfsd_logelem_create_object {
struct cfs_dlog_create *i_up;
const char *i_namep; /* name of file to create */
/* remove */
typedef struct cfsd_logelem_remove_object {
struct cfs_dlog_remove *i_up;
const char *i_namep; /* name of file to remove */
/* rmdir */
typedef struct cfsd_logelem_rmdir_object {
struct cfs_dlog_rmdir *i_up;
const char *i_namep; /* name of dir to rmdir */
/* mkdir */
typedef struct cfsd_logelem_mkdir_object {
struct cfs_dlog_mkdir *i_up;
const char *i_namep; /* name of dir to mkdir */
/* link */
typedef struct cfsd_logelem_link_object {
struct cfs_dlog_link *i_up;
const char *i_namep; /* name of link */
/* symlink */
typedef struct cfsd_logelem_symlink_object {
struct cfs_dlog_symlink *i_up;
const char *i_namep; /* name of symlink */
const char *i_contentsp; /* contents of symlink */
/* rename */
typedef struct cfsd_logelem_rename_object {
struct cfs_dlog_rename *i_up;
const char *i_orignamep; /* original name */
const char *i_newnamep; /* new name */
/* modify */
typedef struct cfsd_logelem_modified_object {
struct cfs_dlog_modify *i_up;
/* mapfid */
typedef struct cfsd_logelem_mapfid_object {
struct cfs_dlog_mapfid *i_up;
/* Abstract base class used by the other logelem classes. */
#define LOGELM_FIDBUFLEN 1024
typedef struct cfsd_logelem_object {
int i_type;
union {
const char *namep,
char *strp);
char *strp);
const char *namep);
#ifdef __cplusplus
}
#endif
#endif /* _CFSD_LOGELEM_H */