Skip to content

Commit

Permalink
CPP Compilation support
Browse files Browse the repository at this point in the history
  • Loading branch information
davkap15 committed Sep 15, 2022
1 parent 8e5e43d commit 91121fe
Show file tree
Hide file tree
Showing 27 changed files with 162 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/cs_cti_ect.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_cti_ect_h
#define _included_cs_cti_ect_h

Expand Down Expand Up @@ -395,3 +398,6 @@ int cs_ect_reset(void);
#endif /* _included_cs_cti_ect_h */

/* end of cs_cti_ect.h */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/cs_debug_halt.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_debug_halt_h
#define _included_cs_debug_halt_h

Expand Down Expand Up @@ -180,3 +183,6 @@ int cs_debug_read_registers(cs_device_t dev, unsigned int mask,
#endif /* _included_cs_debug_halt_h */

/* end of cs_debug_halt.h */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/cs_debug_sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_debug_sample_h
#define _included_cs_debug_sample_h

Expand Down Expand Up @@ -61,3 +64,6 @@ int cs_debug_get_pc_sample(cs_device_t dev, cs_virtaddr_t * pc,
#endif /* _included_cs_debug_sample_h */

/* end of cs_debug_sample.h */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/cs_ela.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_ela_h
#define _included_cs_ela_h

Expand Down Expand Up @@ -302,3 +305,6 @@ int cs_ela_read_init(cs_device_t);
int cs_ela_read_ram_entry(cs_device_t, cs_ela_record_t *);

#endif /* end of cs_ela.h */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/cs_etm.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_etm_h
#define _included_cs_etm_h

Expand Down Expand Up @@ -164,3 +167,6 @@ int cs_etm_static_config_init(struct cs_etm_static_config *);
#endif /* _included_cs_etm_h */

/* end of cs_etm.h */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/cs_etm_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_etm_types_h
#define _included_cs_etm_types_h

Expand Down Expand Up @@ -355,3 +358,6 @@ typedef struct cs_etm_config {
/** @} */

#endif /* _included_cs_etm_types_h */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/cs_etmv4_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_etmv4_types_h
#define _included_cs_etmv4_types_h

Expand Down Expand Up @@ -378,3 +381,6 @@ typedef struct cs_etmv4_config {


#endif /*_included_cs_etmv4_types_h */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/cs_init_manage.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_init_manage_h
#define _included_cs_init_manage_h

Expand Down Expand Up @@ -64,3 +67,6 @@ unsigned short cs_library_version();
#endif /* _included_cs_init_manage_h */

/* end of cs_init_manage.h */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/cs_memap.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_memap_h
#define _included_cs_memap_h

Expand Down Expand Up @@ -99,3 +102,6 @@ void cs_memap_invalidate_TAR(cs_device_t device);
#endif /* _included_cs_memap_h */

/* end of cs_memap.h */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/cs_pmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_pmu_h
#define _included_cs_pmu_h

Expand Down Expand Up @@ -137,4 +140,7 @@ int cs_pmu_is_enabled(cs_device_t);

#endif /* _included_cs_pmu_h */

#ifdef __cplusplus
}
#endif
/* end of cs_pmu.h */
6 changes: 6 additions & 0 deletions include/cs_reg_access.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_reg_access_h
#define _included_cs_reg_access_h

Expand Down Expand Up @@ -170,4 +173,7 @@ void cs_device_set_wait_repeats(int n_wait_repeat_count);

#endif /* _included_cs_reg_access_h */

#ifdef __cplusplus
}
#endif
/* end of cs_reg_access.h */
6 changes: 6 additions & 0 deletions include/cs_stm_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
* SVN $Id: $
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef ARM_CS_STM_TYPES_H_INCLUDED
#define ARM_CS_STM_TYPES_H_INCLUDED

Expand Down Expand Up @@ -202,4 +205,7 @@ typedef struct stm_config {

#endif // ARM_CS_STM_TYPES_H_INCLUDED

#ifdef __cplusplus
}
#endif
/* End of File cs_stm_types.h */
6 changes: 6 additions & 0 deletions include/cs_sw_stim.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_sw_stim_h
#define _included_cs_sw_stim_h

Expand Down Expand Up @@ -221,4 +224,7 @@ int cs_stm_config_put(cs_device_t dev, stm_config_t * dyn_config);

#endif /* _included_cs_sw_stim_h */

#ifdef __cplusplus
}
#endif
/* end of cs_sw_stim.h */
6 changes: 6 additions & 0 deletions include/cs_topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_topology_h
#define _included_cs_topology_h

Expand Down Expand Up @@ -247,4 +250,7 @@ cs_device_t cs_cpu_get_device(cs_cpu_t cpu, unsigned int classes);

#endif /* _included_cs_topology_h */

#ifdef __cplusplus
}
#endif
/* end of cs_topology.h */
6 changes: 6 additions & 0 deletions include/cs_trace_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_trace_metadata_h
#define _included_cs_trace_metadata_h

Expand Down Expand Up @@ -53,4 +56,7 @@ int cs_get_trace_metadata(int mtype, cs_device_t dev, int trace_id,

#endif /*_included_cs_trace_metadata_h*/

#ifdef __cplusplus
}
#endif
/* end of file cs_trace_metadata.h */
6 changes: 6 additions & 0 deletions include/cs_trace_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_trace_sink_h
#define _included_cs_trace_sink_h

Expand Down Expand Up @@ -102,4 +105,7 @@ int cs_insert_trace_data(cs_device_t dev, void const *buf,

#endif /* _included_cs_trace_sink_h */

#ifdef __cplusplus
}
#endif
/* end of cs_trace_sink.h */
6 changes: 6 additions & 0 deletions include/cs_trace_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_trace_source_h
#define _included_cs_trace_source_h

Expand Down Expand Up @@ -70,4 +73,7 @@ int cs_get_global_timestamp(uint64_t *ts);

#endif /* _included_cs_trace_source_h */

#ifdef __cplusplus
}
#endif
/* end of cs_trace_source.h */
6 changes: 6 additions & 0 deletions include/cs_ts_gen.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_ts_gen_h
#define _included_cs_ts_gen_h

Expand Down Expand Up @@ -176,3 +179,6 @@ int cs_tsgen_config_as_ro(cs_device_t dev);
/** @}*/

#endif /* _included_cs_ts_gen_h */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/cs_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_cs_types_h
#define _included_cs_types_h

Expand Down Expand Up @@ -196,4 +199,7 @@ typedef enum {

#endif /* _included_cs_types_h */

#ifdef __cplusplus
}
#endif
/* end of cs_types.h */
6 changes: 6 additions & 0 deletions include/cs_util_create_snapshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef CS_UTIL_CREATE_SNAPSHOT_H
#define CS_UTIL_CREATE_SNAPSHOT_H

Expand Down Expand Up @@ -88,3 +91,6 @@ void do_fetch_trace(const struct cs_devices_t *devices,

/** @}*/
#endif /* CS_UTIL_CREATE_SNAPSHOT_H */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/cs_utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef CS_UTILITY_H
#define CS_UTILITY_H

Expand All @@ -42,3 +45,6 @@

/** @}*/
#endif /*CS_UTILITY_H */
#ifdef __cplusplus
}
#endif
6 changes: 6 additions & 0 deletions include/csaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* limitations under the License.
*/

#ifdef __cplusplus
extern "C" {
#endif
#ifndef _included_csaccess_h
#define _included_csaccess_h

Expand All @@ -38,3 +41,6 @@
#endif /* included */

/* end of csaccess.h */
#ifdef __cplusplus
}
#endif
Loading

0 comments on commit 91121fe

Please sign in to comment.