/*
* 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 _NWAMCFG_H
#define _NWAMCFG_H
/*
* header file for nwamcfg command
*/
#ifdef __cplusplus
extern "C" {
#endif
#define NWAM_OK 0
/* max length of "ncu", "ncp", "loc", "enm", "wlan" */
#define CMD_CANCEL 0
/* one-level resource types */
#define RT1_UNKNOWN 0
/* two-level resource types */
#define RT2_UNKNOWN 0
/* class types for NCU's */
#define NCU_CLASS_PHYS 0
/* property types, matches NWAM_*_PROP_* from libnwam.h */
#define PT_UNKNOWN 0
/*
* If any new PT_ are defined here, make sure it is added in the same
* order into the pt_types array in nwamcfg.c
*/
typedef struct cmd {
int cmd_num;
int cmd_res1_type;
int cmd_res2_type;
int cmd_prop_type;
int cmd_ncu_class_type;
int cmd_argc;
} cmd_t;
/* Fuctions for each command */
extern boolean_t check_scope(int);
extern const char *cmd_to_str(int);
extern void nerr(const char *, ...);
extern void properr(const char *);
#ifdef __cplusplus
}
#endif
#endif /* _NWAMCFG_H */