Add __BEGIN_DECLS/__END_DECLS so that this header can be included in C++

programs.  Also, add include guards.

PR:		bin/44277
Submitted by:	Alex Zepeda <freebsd at blarf dot homeip dot net>
MFC after:	1 day
This commit is contained in:
rodrigc 2005-08-31 14:57:39 +00:00
parent a8babb6361
commit caed8dde2c

View File

@ -27,6 +27,9 @@
* $FreeBSD$
*/
#ifndef _DEVINFO_H_INCLUDED
#define _DEVINFO_H_INCLUDED
#include <sys/cdefs.h>
#include <sys/_types.h>
@ -77,6 +80,8 @@ struct devinfo_res {
/* XXX add flags */
};
__BEGIN_DECLS
/*
* Acquire a coherent copy of the kernel's device and resource tables.
* This must return success (zero) before any other interfaces will
@ -136,3 +141,7 @@ extern int
extern int
devinfo_foreach_rman(int (* fn)(struct devinfo_rman *rman, void *arg),
void *arg);
__END_DECLS
#endif /* ! _DEVINFO_H_INCLUDED */