1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[Plugin] Add C++ #ifdefs to public header files.

This commit is contained in:
Dave Davenport 2017-11-20 22:50:58 +01:00
parent 974b482500
commit 35304e705d
4 changed files with 28 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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