1*753a6d45SSherry Moore /*
2*753a6d45SSherry Moore  * CDDL HEADER START
3*753a6d45SSherry Moore  *
4*753a6d45SSherry Moore  * The contents of this file are subject to the terms of the
5*753a6d45SSherry Moore  * Common Development and Distribution License (the "License").
6*753a6d45SSherry Moore  * You may not use this file except in compliance with the License.
7*753a6d45SSherry Moore  *
8*753a6d45SSherry Moore  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*753a6d45SSherry Moore  * or http://www.opensolaris.org/os/licensing.
10*753a6d45SSherry Moore  * See the License for the specific language governing permissions
11*753a6d45SSherry Moore  * and limitations under the License.
12*753a6d45SSherry Moore  *
13*753a6d45SSherry Moore  * When distributing Covered Code, include this CDDL HEADER in each
14*753a6d45SSherry Moore  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*753a6d45SSherry Moore  * If applicable, add the following below this CDDL HEADER, with the
16*753a6d45SSherry Moore  * fields enclosed by brackets "[]" replaced with your own identifying
17*753a6d45SSherry Moore  * information: Portions Copyright [yyyy] [name of copyright owner]
18*753a6d45SSherry Moore  *
19*753a6d45SSherry Moore  * CDDL HEADER END
20*753a6d45SSherry Moore  */
21*753a6d45SSherry Moore 
22*753a6d45SSherry Moore /*
23*753a6d45SSherry Moore  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24*753a6d45SSherry Moore  * Use is subject to license terms.
25*753a6d45SSherry Moore  */
26*753a6d45SSherry Moore 
27*753a6d45SSherry Moore #ifndef _LIBGRUB_ERRNO_H
28*753a6d45SSherry Moore #define	_LIBGRUB_ERRNO_H
29*753a6d45SSherry Moore 
30*753a6d45SSherry Moore #ifdef	__cplusplus
31*753a6d45SSherry Moore extern "C" {
32*753a6d45SSherry Moore #endif
33*753a6d45SSherry Moore 
34*753a6d45SSherry Moore /*
35*753a6d45SSherry Moore  * libgrubmgmt specific error codes
36*753a6d45SSherry Moore  */
37*753a6d45SSherry Moore enum {
38*753a6d45SSherry Moore #define	grub_errno_start(num)		num,
39*753a6d45SSherry Moore #define	grub_errno_def(num, desc)	num,
40*753a6d45SSherry Moore #define	grub_errno_end(num)		num
41*753a6d45SSherry Moore #include "libgrub_errno.def"
42*753a6d45SSherry Moore };
43*753a6d45SSherry Moore 
44*753a6d45SSherry Moore extern const char *grub_errname(int);
45*753a6d45SSherry Moore 
46*753a6d45SSherry Moore #ifdef	__cplusplus
47*753a6d45SSherry Moore }
48*753a6d45SSherry Moore #endif
49*753a6d45SSherry Moore 
50*753a6d45SSherry Moore #endif	/* _LIBGRUB_ERRNO_H */
51