/*
* 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 (c) 1998-1999 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _CFGADM_H
#define _CFGADM_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Command line options
*/
/*
* Configuration operations
*/
typedef enum {
CFGA_OP_NONE = 0,
} cfga_op_t;
/*
* Names for -c functions
*/
static char *state_opts[] = {
"",
"insert",
"remove",
"connect",
"disconnect",
"configure",
"unconfigure",
};
/*
* Attachment point specifier types.
*/
typedef enum {
/*
* Confirm values.
*/
/* Limit size of sysinfo return */
/* exit codes */
#define EXIT_OK 0
/* Macro to figure size of cfga_list_data items */
/* Maximum number of fields in cfgadm output */
/* printing format controls */
/* listing field delimiter */
/* listing lengths for various fields */
/* Date and time formats */
/*
* b --- abbreviated month name
* e --- day number
* Y --- year in the form ccyy
* H --- hour(24-hour version)
* M --- minute
*/
/* listing control data */
struct sort_el {
int reverse;
};
struct print_col {
int width;
};
/*
* The first three types are used for filtering and the last for sorting.
*/
typedef enum {
} match_type_t;
struct field_info {
char *name;
char *heading;
int width;
};
/* list option strings */
static char *list_options[] = {
#define LIST_SORT 0
"sort",
"cols",
"cols2",
"delim",
"noheadings",
"select",
"match",
};
/* Selection related */
typedef struct {
char *arg;
} ap_arg_t;
typedef struct {
} ap_out_t;
/* Filtering related */
typedef enum {
typedef struct match_cvt {
char *str;
} match_cvt_t;
#ifdef __cplusplus
}
#endif
#endif /* _CFGADM_H */