Hide clutter_input_device_wayland and clutter_stage_wayland types

By prefixing them with an underscore, so they don't get exported as part
of public ABI.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
Daniel Stone 2012-08-30 16:21:09 -07:00 committed by Rob Bradford
parent 978202aa49
commit a33d84234f
4 changed files with 9 additions and 4 deletions

View File

@ -49,6 +49,9 @@
typedef struct _ClutterInputDeviceClass ClutterInputDeviceWaylandClass;
#define clutter_input_device_wayland_get_type \
_clutter_input_device_wayland_get_type
G_DEFINE_TYPE (ClutterInputDeviceWayland,
clutter_input_device_wayland,
CLUTTER_TYPE_INPUT_DEVICE);

View File

@ -33,7 +33,7 @@
#include "clutter-device-manager-private.h"
#include "cogl/clutter-stage-cogl.h"
#define CLUTTER_TYPE_INPUT_DEVICE_WAYLAND (clutter_input_device_wayland_get_type ())
#define CLUTTER_TYPE_INPUT_DEVICE_WAYLAND (_clutter_input_device_wayland_get_type ())
#define CLUTTER_INPUT_DEVICE_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_INPUT_DEVICE_WAYLAND, ClutterInputDeviceWayland))
#define CLUTTER_IS_INPUT_DEVICE_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_INPUT_DEVICE_WAYLAND))
@ -55,7 +55,7 @@ struct _ClutterInputDeviceWayland
gboolean is_initial_repeat;
};
GType clutter_input_device_wayland_get_type (void) G_GNUC_CONST;
GType _clutter_input_device_wayland_get_type (void) G_GNUC_CONST;
extern const struct wl_seat_listener _clutter_seat_wayland_listener;

View File

@ -44,6 +44,8 @@ static ClutterStageWindowIface *clutter_stage_window_parent_iface = NULL;
static void clutter_stage_window_iface_init (ClutterStageWindowIface *iface);
#define clutter_stage_wayland_get_type _clutter_stage_wayland_get_type
G_DEFINE_TYPE_WITH_CODE (ClutterStageWayland,
clutter_stage_wayland,
CLUTTER_TYPE_STAGE_COGL,

View File

@ -36,7 +36,7 @@
#include "cogl/clutter-stage-cogl.h"
#define CLUTTER_TYPE_STAGE_WAYLAND (clutter_stage_wayland_get_type ())
#define CLUTTER_TYPE_STAGE_WAYLAND (_clutter_stage_wayland_get_type ())
#define CLUTTER_STAGE_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE_WAYLAND, ClutterStageWayland))
#define CLUTTER_IS_STAGE_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_STAGE_WAYLAND))
#define CLUTTER_STAGE_WAYLAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_STAGE_WAYLAND, ClutterStageWaylandClass))
@ -60,6 +60,6 @@ struct _ClutterStageWaylandClass
ClutterStageCoglClass parent_class;
};
GType clutter_stage_wayland_get_type (void) G_GNUC_CONST;
GType _clutter_stage_wayland_get_type (void) G_GNUC_CONST;
#endif /* __CLUTTER_STAGE_WAYLAND_H__ */