mm_util.h revision cee0fb94c0d4227de0a00efc162fb2739844b641
/*
* 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 _MM_UTIL_H
#define _MM_UTIL_H
/*
* Parser command xml text file line callback structure
*/
typedef struct mm_cb_file mm_cb_file_t;
struct mm_cb_file { /* parser file callback */
char *mm_cbf_buf;
int mm_cbf_len;
int mm_cbf_index;
int mm_cbf_size;
};
/*
* Enumerated response string
*/
typedef enum mm_response_type mm_response_type_t;
enum mm_response_type {
};
/*
* Response parse tree pointers
*/
typedef struct mm_response mm_response_t;
struct mm_response {
char *response_string;
char *error_class;
char *error_code;
};
typedef struct mm_char_list mm_char_list_t;
struct mm_char_list {
char *text;
int number;
};
/*
* MM, MMP, DMP, LMP routines
*/
extern int mm_is_fd_valid(int fd);
extern int mm_set_fd_limit(int fd_limit);
/* get host from data type as represented internally by mm */
extern char *mm_host_ident(char *host_str);
extern mms_trace_sev_t mm_read_trace_level(void);
#endif /* _MM_UTIL_H */