diff options
author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2013-03-28 18:02:42 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-03-28 14:03:58 -0400 |
commit | 7fe01b18d89ad8d59d0c6285d37e70004606b76f (patch) | |
tree | 8af75035816811e3af6fae64123edc3aed61de68 /shared/config-parser.h | |
parent | b5bae3450c2970d0643d55467de0709bb0790940 (diff) | |
download | weston-7fe01b18d89ad8d59d0c6285d37e70004606b76f.tar.gz |
sdk: be C++ friendly
This renames the weston_surface's private member to configure_private
and externs "C" the headers of the SDK.
Diffstat (limited to 'shared/config-parser.h')
-rw-r--r-- | shared/config-parser.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/config-parser.h b/shared/config-parser.h index 314057ae..1d0ee3fc 100644 --- a/shared/config-parser.h +++ b/shared/config-parser.h @@ -23,6 +23,10 @@ #ifndef CONFIGPARSER_H #define CONFIGPARSER_H +#ifdef __cplusplus +extern "C" { +#endif + enum config_key_type { CONFIG_KEY_INTEGER, /* typeof data = int */ CONFIG_KEY_UNSIGNED_INTEGER, /* typeof data = unsigned int */ @@ -69,5 +73,9 @@ int parse_options(const struct weston_option *options, int count, int *argc, char *argv[]); +#ifdef __cplusplus +} +#endif + #endif /* CONFIGPARSER_H */ |