Add extern "C" wrappers to public header files
This commit is contained in:
parent
26e6666fab
commit
da6c6b1a38
|
@ -23,6 +23,10 @@
|
||||||
#ifndef _WAYLAND_CLIENT_H
|
#ifndef _WAYLAND_CLIENT_H
|
||||||
#define _WAYLAND_CLIENT_H
|
#define _WAYLAND_CLIENT_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct wl_object;
|
struct wl_object;
|
||||||
struct wl_display;
|
struct wl_display;
|
||||||
struct wl_surface;
|
struct wl_surface;
|
||||||
|
@ -148,4 +152,9 @@ void wl_display_write(struct wl_display *display,
|
||||||
size_t count);
|
size_t count);
|
||||||
void wl_display_advertise_global(struct wl_display *display,
|
void wl_display_advertise_global(struct wl_display *display,
|
||||||
struct wl_object *object);
|
struct wl_object *object);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
#ifndef WAYLAND_PROTOCOL_H
|
#ifndef WAYLAND_PROTOCOL_H
|
||||||
#define WAYLAND_PROTOCOL_H
|
#define WAYLAND_PROTOCOL_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define WL_DISPLAY_INVALID_OBJECT 0
|
#define WL_DISPLAY_INVALID_OBJECT 0
|
||||||
|
@ -68,4 +72,8 @@ extern const struct wl_interface wl_output_interface;
|
||||||
|
|
||||||
extern const struct wl_interface wl_visual_interface;
|
extern const struct wl_interface wl_visual_interface;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
#ifndef WAYLAND_UTIL_H
|
#ifndef WAYLAND_UTIL_H
|
||||||
#define WAYLAND_UTIL_H
|
#define WAYLAND_UTIL_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
/* GCC visibility */
|
/* GCC visibility */
|
||||||
|
@ -104,4 +108,8 @@ void wl_array_init(struct wl_array *array);
|
||||||
void wl_array_release(struct wl_array *array);
|
void wl_array_release(struct wl_array *array);
|
||||||
void *wl_array_add(struct wl_array *array, int size);
|
void *wl_array_add(struct wl_array *array, int size);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
#ifndef WAYLAND_H
|
#ifndef WAYLAND_H
|
||||||
#define WAYLAND_H
|
#define WAYLAND_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "wayland-util.h"
|
#include "wayland-util.h"
|
||||||
|
|
||||||
|
@ -151,4 +155,8 @@ wl_display_post_frame(struct wl_display *display,
|
||||||
struct wl_compositor *compositor,
|
struct wl_compositor *compositor,
|
||||||
uint32_t frame, uint32_t msecs);
|
uint32_t frame, uint32_t msecs);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue