13941Svenki /* 23941Svenki * CDDL HEADER START 33941Svenki * 43941Svenki * The contents of this file are subject to the terms of the 53941Svenki * Common Development and Distribution License (the "License"). 63941Svenki * You may not use this file except in compliance with the License. 73941Svenki * 83941Svenki * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93941Svenki * or http://www.opensolaris.org/os/licensing. 103941Svenki * See the License for the specific language governing permissions 113941Svenki * and limitations under the License. 123941Svenki * 133941Svenki * When distributing Covered Code, include this CDDL HEADER in each 143941Svenki * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153941Svenki * If applicable, add the following below this CDDL HEADER, with the 163941Svenki * fields enclosed by brackets "[]" replaced with your own identifying 173941Svenki * information: Portions Copyright [yyyy] [name of copyright owner] 183941Svenki * 193941Svenki * CDDL HEADER END 203941Svenki */ 213941Svenki 223941Svenki /* 23*7746SKelly.Moyer@Sun.COM * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 243941Svenki * Use is subject to license terms. 253941Svenki */ 263941Svenki 273941Svenki #ifndef _LIBPICLSNMP_H 283941Svenki #define _LIBPICLSNMP_H 293941Svenki 303941Svenki #ifdef __cplusplus 313941Svenki extern "C" { 323941Svenki #endif 333941Svenki 343941Svenki /* 353941Svenki * Opaque picl snmp handle 363941Svenki */ 373941Svenki typedef void *picl_snmphdl_t; 383941Svenki 393941Svenki /* 403941Svenki * Exported interfaces 413941Svenki */ 423941Svenki extern picl_snmphdl_t snmp_init(void); 433941Svenki extern void snmp_fini(picl_snmphdl_t); 443941Svenki 453941Svenki extern int snmp_reinit(picl_snmphdl_t hdl, int clr_linkreset); 463941Svenki extern void snmp_register_group(picl_snmphdl_t, char *, int, int); 473941Svenki 483941Svenki extern int snmp_get_int(picl_snmphdl_t, char *, int, int *, int *); 493941Svenki extern int snmp_get_str(picl_snmphdl_t, char *, int, char **, int *); 503941Svenki extern int snmp_get_bitstr(picl_snmphdl_t, char *, int, uchar_t **, 513941Svenki uint_t *, int *); 523941Svenki extern int snmp_get_nextrow(picl_snmphdl_t, char *, int, int *, int *); 533941Svenki 54*7746SKelly.Moyer@Sun.COM extern int snmp_refresh_init(void); 55*7746SKelly.Moyer@Sun.COM extern void snmp_refresh_fini(void); 56*7746SKelly.Moyer@Sun.COM extern int snmp_refresh_get_next_expiration(void); 57*7746SKelly.Moyer@Sun.COM extern int snmp_refresh_get_cycle_hint(int); 58*7746SKelly.Moyer@Sun.COM extern int snmp_refresh_process_job(void); 59*7746SKelly.Moyer@Sun.COM 603941Svenki #ifdef __cplusplus 613941Svenki } 623941Svenki #endif 633941Svenki 643941Svenki #endif /* _LIBPICLSNMP_H */ 65