libfrup.h (7c478bd9) | libfrup.h (24da5b34) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the |
5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. | 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. |
8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* | 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* |
23 * Copyright 2000-2002 Sun Microsystems, Inc. All rights reserved. | 22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. 25 */ 26 27#ifndef _LIBFRUP_H 28#define _LIBFRUP_H 29 30#pragma ident "%Z%%M% %I% %E% SMI" 31 --- 16 unchanged lines hidden (view full) --- 48 * (after its children have been processed) 49 */ 50typedef void (*end_node_fp_t)(fru_nodehdl_t node, const char *path, 51 const char *name, void *args); 52 53/* 54 * Project-private exported symbols 55 */ | 23 * Use is subject to license terms. 24 */ 25 26#ifndef _LIBFRUP_H 27#define _LIBFRUP_H 28 29#pragma ident "%Z%%M% %I% %E% SMI" 30 --- 16 unchanged lines hidden (view full) --- 47 * (after its children have been processed) 48 */ 49typedef void (*end_node_fp_t)(fru_nodehdl_t node, const char *path, 50 const char *name, void *args); 51 52/* 53 * Project-private exported symbols 54 */ |
56fru_encrypt_func_t encrypt_func; | 55extern fru_encrypt_func_t encrypt_func; |
57 | 56 |
58fru_errno_t fru_encryption_supported(void); | 57extern fru_errno_t fru_encryption_supported(void); |
59 | 58 |
60fru_errno_t 61fru_walk_tree(fru_nodehdl_t node, const char *prior_path, | 59extern fru_errno_t fru_walk_tree(fru_nodehdl_t node, const char *prior_path, |
62 fru_errno_t (*process_node)(fru_nodehdl_t node, 63 const char *path, 64 const char *name, void *args, 65 end_node_fp_t *end_node, 66 void **end_args), 67 void *args); 68 | 60 fru_errno_t (*process_node)(fru_nodehdl_t node, 61 const char *path, 62 const char *name, void *args, 63 end_node_fp_t *end_node, 64 void **end_args), 65 void *args); 66 |
69int fru_pathmatch(const char *path, const char *searchpath); | 67extern int fru_pathmatch(const char *path, const char *searchpath); |
70 | 68 |
71fru_errno_t fru_for_each_segment(fru_nodehdl_t node, | 69extern fru_errno_t fru_for_each_segment(fru_nodehdl_t node, |
72 int (*function)(fru_seghdl_t segment, 73 void *args), 74 void *args); | 70 int (*function)(fru_seghdl_t segment, 71 void *args), 72 void *args); |
75fru_errno_t fru_get_segment_name(fru_seghdl_t segment, char **name); 76fru_errno_t fru_for_each_packet(fru_seghdl_t segment, | 73extern fru_errno_t fru_get_segment_name(fru_seghdl_t segment, char **name); 74extern fru_errno_t fru_for_each_packet(fru_seghdl_t segment, |
77 int (*function)(fru_tag_t *tag, 78 uint8_t *payload, 79 size_t length, void *args), 80 void *args); 81 82#ifdef __cplusplus 83} 84#endif 85 86#endif /* _LIBFRUP_H */ | 75 int (*function)(fru_tag_t *tag, 76 uint8_t *payload, 77 size_t length, void *args), 78 void *args); 79 80#ifdef __cplusplus 81} 82#endif 83 84#endif /* _LIBFRUP_H */ |