api/core: annotate structs/functions for C linkage
commit6bfd072da10157804a0d0cdd799493f752584708
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 Mar 2015 12:24:38 +0000 (24 12:24 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 10 Apr 2015 10:56:13 +0000 (10 11:56 +0100)
tree72055508c4ba0e5b0805de656144b995827ed4ee
parent038b1dbc184054382bc89f197cf7c7811aeed5a3
api/core: annotate structs/functions for C linkage

Annotate as extern "C" when included in C++ files to prevent issues due
to conflicting linkage - C vs C++. With follow up commits we'll remove
the "extern "C" { #include "header.h" } pattern which we currently use.

Conditionally including system headers (either directly or not) in such
a construct in a bad idea as they might include C++ symbols.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/waffle/api/api_object.h
src/waffle/core/wcore_config.h
src/waffle/core/wcore_config_attrs.h
src/waffle/core/wcore_display.h
src/waffle/core/wcore_error.h
src/waffle/core/wcore_util.h