/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYSEVENT_CONF_MOD_H
#define _SYSEVENT_CONF_MOD_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* syseventd_print debug levels for sysevent_conf_mod
*/
/*
* Directory where sysevent.conf files reside
*/
/*
* Lock file name to serialize registry updates
*/
/*
* sysevent.conf files list
*/
typedef struct conftab {
} conftab_t;
/*
* sysevent.conf table
*/
typedef struct syseventtab {
typedef struct sysevent_hdr_info {
char *class;
char *subclass;
char *vendor;
char *publisher;
/*
* Structures for building arbitarily long strings and argument lists
*/
typedef struct str {
char *s_str;
int s_len;
int s_alloc;
int s_hint;
} str_t;
/*
* Queue of commands ready to be transported to syseventconfd
*/
typedef struct cmdqueue {
} cmdqueue_t;
/*
* syseventconfd state
*/
enum {
};
/*
* Prototypes
*/
static char *skip_spaces(char **cpp);
static char *next_field(char **cpp);
static void sc_strfree(char *s);
static void build_event_table(void);
static void free_event_table(void);
static int enter_lock(char *lock_file);
static char *se_attr_type_to_str(int se_attr_type);
static void start_syseventconfd(void);
static void abort_cmd_queue(void);
static void transport_queued_events(void);
#ifdef __cplusplus
}
#endif
#endif /* _SYSEVENT_CONF_MOD_H */