0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/*
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * CDDL HEADER START
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki *
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * The contents of this file are subject to the terms of the
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Common Development and Distribution License (the "License").
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * You may not use this file except in compliance with the License.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki *
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * or http://www.opensolaris.org/os/licensing.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * See the License for the specific language governing permissions
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * and limitations under the License.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki *
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * When distributing Covered Code, include this CDDL HEADER in each
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * If applicable, add the following below this CDDL HEADER, with the
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * fields enclosed by brackets "[]" replaced with your own identifying
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * information: Portions Copyright [yyyy] [name of copyright owner]
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki *
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * CDDL HEADER END
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/*
817697f4a28f704a2d88ace09406d985aa3a8549Kelly Moyer * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Use is subject to license terms.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#ifndef _LIBPICLSNMP_H
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define _LIBPICLSNMP_H
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#ifdef __cplusplus
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiextern "C" {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#endif
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/*
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Opaque picl snmp handle
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkitypedef void *picl_snmphdl_t;
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/*
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Exported interfaces
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiextern picl_snmphdl_t snmp_init(void);
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiextern void snmp_fini(picl_snmphdl_t);
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiextern int snmp_reinit(picl_snmphdl_t hdl, int clr_linkreset);
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiextern void snmp_register_group(picl_snmphdl_t, char *, int, int);
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiextern int snmp_get_int(picl_snmphdl_t, char *, int, int *, int *);
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiextern int snmp_get_str(picl_snmphdl_t, char *, int, char **, int *);
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiextern int snmp_get_bitstr(picl_snmphdl_t, char *, int, uchar_t **,
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki uint_t *, int *);
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiextern int snmp_get_nextrow(picl_snmphdl_t, char *, int, int *, int *);
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
817697f4a28f704a2d88ace09406d985aa3a8549Kelly Moyerextern int snmp_refresh_init(void);
817697f4a28f704a2d88ace09406d985aa3a8549Kelly Moyerextern void snmp_refresh_fini(void);
817697f4a28f704a2d88ace09406d985aa3a8549Kelly Moyerextern int snmp_refresh_get_next_expiration(void);
817697f4a28f704a2d88ace09406d985aa3a8549Kelly Moyerextern int snmp_refresh_get_cycle_hint(int);
817697f4a28f704a2d88ace09406d985aa3a8549Kelly Moyerextern int snmp_refresh_process_job(void);
817697f4a28f704a2d88ace09406d985aa3a8549Kelly Moyer
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#ifdef __cplusplus
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki}
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#endif
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#endif /* _LIBPICLSNMP_H */