diff options
author | fabient <fabient@FreeBSD.org> | 2009-03-24 22:35:05 +0000 |
---|---|---|
committer | fabient <fabient@FreeBSD.org> | 2009-03-24 22:35:05 +0000 |
commit | 71ae7c9315fc12283d86f2791327d9cc7f74c97c (patch) | |
tree | 4f71e52c75b889b2a3e56794b90197284c3d57c8 /lib/libpmc | |
parent | 901cb82d343b86b0d495902fe076d41a510112d3 (diff) | |
download | FreeBSD-src-71ae7c9315fc12283d86f2791327d9cc7f74c97c.zip FreeBSD-src-71ae7c9315fc12283d86f2791327d9cc7f74c97c.tar.gz |
Allow compile from c++ for libpmc
Approved by: jkoshy (mentor)
MFC after: 3 days
Diffstat (limited to 'lib/libpmc')
-rw-r--r-- | lib/libpmc/pmc.h | 3 | ||||
-rw-r--r-- | lib/libpmc/pmclog.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/libpmc/pmc.h b/lib/libpmc/pmc.h index ee3f772..5b1ad07 100644 --- a/lib/libpmc/pmc.h +++ b/lib/libpmc/pmc.h @@ -29,6 +29,7 @@ #ifndef _PMC_H_ #define _PMC_H_ +#include <sys/cdefs.h> #include <sys/pmc.h> /* @@ -68,6 +69,7 @@ struct pmc_pmcinfo { * Prototypes */ +__BEGIN_DECLS int pmc_allocate(const char *_ctrspec, enum pmc_mode _mode, uint32_t _flags, int _cpu, pmc_id_t *_pmcid); int pmc_attach(pmc_id_t _pmcid, pid_t _pid); @@ -105,5 +107,6 @@ const char *pmc_name_of_state(enum pmc_state _ps); int pmc_event_names_of_class(enum pmc_class _cl, const char ***_eventnames, int *_nevents); +__END_DECLS #endif diff --git a/lib/libpmc/pmclog.h b/lib/libpmc/pmclog.h index e3e5c89..b7c9c84 100644 --- a/lib/libpmc/pmclog.h +++ b/lib/libpmc/pmclog.h @@ -33,6 +33,7 @@ #ifndef _PMCLOG_H_ #define _PMCLOG_H_ +#include <sys/cdefs.h> #include <sys/pmclog.h> enum pmclog_state { @@ -158,10 +159,12 @@ struct pmclog_ev { #define PMCLOG_FD_NONE (-1) +__BEGIN_DECLS void *pmclog_open(int _fd); int pmclog_feed(void *_cookie, char *_data, int _len); int pmclog_read(void *_cookie, struct pmclog_ev *_ev); void pmclog_close(void *_cookie); +__END_DECLS #endif |