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:
parent
eefbcf0e62
commit
1760096dbe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149671
@ -27,6 +27,9 @@
|
|||||||
* $FreeBSD$
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _DEVINFO_H_INCLUDED
|
||||||
|
#define _DEVINFO_H_INCLUDED
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/_types.h>
|
#include <sys/_types.h>
|
||||||
|
|
||||||
@ -77,6 +80,8 @@ struct devinfo_res {
|
|||||||
/* XXX add flags */
|
/* XXX add flags */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
__BEGIN_DECLS
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Acquire a coherent copy of the kernel's device and resource tables.
|
* Acquire a coherent copy of the kernel's device and resource tables.
|
||||||
* This must return success (zero) before any other interfaces will
|
* This must return success (zero) before any other interfaces will
|
||||||
@ -136,3 +141,7 @@ extern int
|
|||||||
extern int
|
extern int
|
||||||
devinfo_foreach_rman(int (* fn)(struct devinfo_rman *rman, void *arg),
|
devinfo_foreach_rman(int (* fn)(struct devinfo_rman *rman, void *arg),
|
||||||
void *arg);
|
void *arg);
|
||||||
|
|
||||||
|
__END_DECLS
|
||||||
|
|
||||||
|
#endif /* ! _DEVINFO_H_INCLUDED */
|
||||||
|
Loading…
Reference in New Issue
Block a user