/*
* 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
*/
/*
*/
/*
* This file contains private data structures and APIs of libnwam.
* Current consumers include:
* - nwamd (nwam_event_*() and nwam_record_audit_event()), supporting the
* event messaging and audit that nwamd supply.
*
* - libipadm, libdladm use nwam db-related definitions for profile access
*
* Implementation is MT safe.
*/
#ifndef _LIBNWAM_PRIV_H
#define _LIBNWAM_PRIV_H
#ifdef __cplusplus
extern "C" {
#endif
#include <libnetcfg.h>
#include <libnvpair.h>
#include <libnwam.h>
/*
* Flag used by nwamd to override read-only restrictions. This flag belongs
* to the set of bit-flags defined in libnwam.h. It is defined here so that
* only nwamd can use it.
*/
/* Name of door used to communicate with nwamd */
/* Requests to nwamd door */
typedef enum {
/* Status returned by nwamd door */
typedef enum {
typedef union {
/* Used for EVENT_[UN]REGISTER requests */
struct {
/* Used for ACTION requests */
struct {
/* Used for STATE requests */
struct {
/* Used for PRIORITY_GROUP requests */
struct {
struct {
typedef struct {
/*
* create audit session, report event, end session. Used by nwamd.
*/
int, int);
/*
* NWAM daemon functions, used to send, stop sending, initialize or finish
* event IPC. Used by nwamd.
*/
extern void nwam_event_send_fini(void);
extern nwam_error_t nwam_event_queue_init(const char *);
extern void nwam_event_queue_fini(const char *);
/*
* NWAM DB-related definitions
*/
/* new filename for NCPs is ncp.conf, old was ncp-<profile>.conf */
/*
* Add a property list formatted as an nvlist to an object handle.
* The passed-in list will be merged with any existing properties;
* if duplicates exist, the passed-in value will take precedence.
*/
nvlist_t *);
#ifdef __cplusplus
}
#endif
#endif /* _LIBNWAM_PRIV_H */