sdk: be C++ friendly
This renames the weston_surface's private member to configure_private and externs "C" the headers of the SDK.
This commit is contained in:
committed by
Kristian Høgsberg
parent
b5bae3450c
commit
7fe01b18d8
@@ -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 */
|
||||
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
#ifndef WESTON_MATRIX_H
|
||||
#define WESTON_MATRIX_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum weston_matrix_transform_type {
|
||||
WESTON_MATRIX_TRANSFORM_TRANSLATE = (1 << 0),
|
||||
WESTON_MATRIX_TRANSFORM_SCALE = (1 << 1),
|
||||
@@ -71,4 +75,8 @@ inverse_transform(const double *LU, const unsigned *p, float *v);
|
||||
# define MATRIX_TEST_EXPORT static
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* WESTON_MATRIX_H */
|
||||
|
||||
Reference in New Issue
Block a user