diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-11-20 22:50:58 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-11-20 22:50:58 +0100 |
commit | 35304e705d3a13eca9655be5fb14cdff10cb9862 (patch) | |
tree | 4a8e81b8011357bdc2c25159ce5f1ce201112bc7 /include | |
parent | 974b4825008f477f231e7c702febc20a361f1fc2 (diff) |
[Plugin] Add C++ #ifdefs to public header files.
Diffstat (limited to 'include')
-rw-r--r-- | include/helper.h | 8 | ||||
-rw-r--r-- | include/mode-private.h | 8 | ||||
-rw-r--r-- | include/mode.h | 8 | ||||
-rw-r--r-- | include/rofi-types.h | 7 |
4 files changed, 28 insertions, 3 deletions
diff --git a/include/helper.h b/include/helper.h index 715079e9..35d28cf1 100644 --- a/include/helper.h +++ b/include/helper.h @@ -27,7 +27,10 @@ #ifndef ROFI_HELPER_H #define ROFI_HELPER_H - +#ifdef __cplusplus +extern "C" +{ +#endif #include <cairo.h> #include "rofi-types.h" @@ -336,4 +339,7 @@ void parse_ranges ( char *input, rofi_range_pair **list, unsigned int *length ); * @param filter */ void rofi_output_formatted_line ( const char *format, const char *string, int selected_line, const char *filter ); +#ifdef __cplusplus +} +#endif #endif // ROFI_HELPER_H diff --git a/include/mode-private.h b/include/mode-private.h index a106c0bc..4d3b96a7 100644 --- a/include/mode-private.h +++ b/include/mode-private.h @@ -27,7 +27,10 @@ #ifndef ROFI_MODE_PRIVATE_H #define ROFI_MODE_PRIVATE_H - +#ifdef __cplusplus +extern "C" +{ +#endif #include <gmodule.h> /** ABI version to check if loaded plugin is compatible. */ @@ -196,4 +199,7 @@ struct rofi_mode /** Module */ GModule *module; }; +#ifdef __cplusplus +} +#endif #endif // ROFI_MODE_PRIVATE_H diff --git a/include/mode.h b/include/mode.h index 02c36161..d8d74bd1 100644 --- a/include/mode.h +++ b/include/mode.h @@ -27,7 +27,10 @@ #ifndef ROFI_MODE_H #define ROFI_MODE_H - +#ifdef __cplusplus +extern "C" +{ +#endif #include <cairo.h> #include "rofi-types.h" /** @@ -236,4 +239,7 @@ char * mode_preprocess_input ( Mode *mode, const char *input ); */ char *mode_get_message ( const Mode *mode ); /*@}*/ +#ifdef __cplusplus +} +#endif #endif diff --git a/include/rofi-types.h b/include/rofi-types.h index bcde8f19..69b9cd76 100644 --- a/include/rofi-types.h +++ b/include/rofi-types.h @@ -1,5 +1,9 @@ #ifndef INCLUDE_ROFI_TYPES_H #define INCLUDE_ROFI_TYPES_H +#ifdef __cplusplus +extern "C" +{ +#endif #include <glib.h> @@ -234,4 +238,7 @@ typedef struct rofi_int_matcher_t gboolean invert; } rofi_int_matcher; +#ifdef __cplusplus +} +#endif #endif // INCLUDE_ROFI_TYPES_H |