Annotate symbol visibility in Cally

Like we did for the main library.
This commit is contained in:
Emmanuele Bassi 2014-03-17 19:26:27 +00:00
parent c69bb976b3
commit 66826bc6ba
17 changed files with 83 additions and 35 deletions

View File

@ -22,13 +22,13 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __CALLY_ACTOR_H__
#define __CALLY_ACTOR_H__
#if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION) #if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <cally/cally.h> can be included directly." #error "Only <cally/cally.h> can be included directly."
#endif #endif
#ifndef __CALLY_ACTOR_H__
#define __CALLY_ACTOR_H__
#include <atk/atk.h> #include <atk/atk.h>
#include <clutter/clutter.h> #include <clutter/clutter.h>
@ -126,16 +126,19 @@ struct _CallyActorClass
gpointer _padding_dummy[32]; gpointer _padding_dummy[32];
}; };
CLUTTER_AVAILABLE_IN_1_4
GType cally_actor_get_type (void) G_GNUC_CONST; GType cally_actor_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4
AtkObject* cally_actor_new (ClutterActor *actor); AtkObject* cally_actor_new (ClutterActor *actor);
CLUTTER_AVAILABLE_IN_1_4
guint cally_actor_add_action (CallyActor *cally_actor, guint cally_actor_add_action (CallyActor *cally_actor,
const gchar *action_name, const gchar *action_name,
const gchar *action_description, const gchar *action_description,
const gchar *action_keybinding, const gchar *action_keybinding,
CallyActionFunc action_func); CallyActionFunc action_func);
CLUTTER_AVAILABLE_IN_1_6
guint cally_actor_add_action_full (CallyActor *cally_actor, guint cally_actor_add_action_full (CallyActor *cally_actor,
const gchar *action_name, const gchar *action_name,
const gchar *action_description, const gchar *action_description,
@ -144,9 +147,11 @@ guint cally_actor_add_action_full (CallyActor *cally_actor,
gpointer user_data, gpointer user_data,
GDestroyNotify notify); GDestroyNotify notify);
CLUTTER_AVAILABLE_IN_1_4
gboolean cally_actor_remove_action (CallyActor *cally_actor, gboolean cally_actor_remove_action (CallyActor *cally_actor,
gint action_id); gint action_id);
CLUTTER_AVAILABLE_IN_1_4
gboolean cally_actor_remove_action_by_name (CallyActor *cally_actor, gboolean cally_actor_remove_action_by_name (CallyActor *cally_actor,
const gchar *action_name); const gchar *action_name);

View File

@ -69,6 +69,7 @@
* a11y POV should still be managed as a image (with the proper properties, * a11y POV should still be managed as a image (with the proper properties,
* position, size, etc.). * position, size, etc.).
*/ */
#include "config.h"
#include "cally-clone.h" #include "cally-clone.h"
#include "cally-actor-private.h" #include "cally-actor-private.h"

View File

@ -18,15 +18,15 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __CALLY_CLONE_H__
#define __CALLY_CLONE_H__
#if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION) #if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <cally/cally.h> can be included directly." #error "Only <cally/cally.h> can be included directly."
#endif #endif
#ifndef __CALLY_CLONE_H__
#define __CALLY_CLONE_H__
#include <cally/cally-actor.h>
#include <clutter/clutter.h> #include <clutter/clutter.h>
#include <cally/cally-actor.h>
G_BEGIN_DECLS G_BEGIN_DECLS
@ -74,7 +74,9 @@ struct _CallyCloneClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4
GType cally_clone_get_type (void) G_GNUC_CONST; GType cally_clone_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4
AtkObject *cally_clone_new (ClutterActor *actor); AtkObject *cally_clone_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@ -38,6 +38,8 @@
* </itemizedlist> * </itemizedlist>
*/ */
#include "config.h"
#include "cally-group.h" #include "cally-group.h"
#include "cally-actor-private.h" #include "cally-actor-private.h"

View File

@ -21,13 +21,13 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __CALLY_GROUP_H__
#define __CALLY_GROUP_H__
#if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION) #if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <cally/cally.h> can be included directly." #error "Only <cally/cally.h> can be included directly."
#endif #endif
#ifndef __CALLY_GROUP_H__
#define __CALLY_GROUP_H__
#include <cally/cally-actor.h> #include <cally/cally-actor.h>
#include <clutter/clutter.h> #include <clutter/clutter.h>
@ -77,7 +77,9 @@ struct _CallyGroupClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4
GType cally_group_get_type (void) G_GNUC_CONST; GType cally_group_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4
AtkObject* cally_group_new (ClutterActor *actor); AtkObject* cally_group_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@ -22,16 +22,21 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __CALLY_MAIN_H__
#define __CALLY_MAIN_H__
#if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION) #if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <cally/cally.h> can be included directly." #error "Only <cally/cally.h> can be included directly."
#endif #endif
#ifndef __CALLY_MAIN_H__ #include <glib.h>
#define __CALLY_MAIN_H__ #include <atk/atk.h>
G_BEGIN_DECLS G_BEGIN_DECLS
CLUTTER_AVAILABLE_IN_1_4
gboolean cally_get_cally_initialized (void); gboolean cally_get_cally_initialized (void);
CLUTTER_AVAILABLE_IN_1_4
gboolean cally_accessibility_init (void); gboolean cally_accessibility_init (void);
G_END_DECLS G_END_DECLS

View File

@ -30,11 +30,16 @@
* In particular it sets a proper role for the rectangle. * In particular it sets a proper role for the rectangle.
*/ */
#include "config.h"
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS #define CLUTTER_DISABLE_DEPRECATION_WARNINGS
#include "cally-rectangle.h" #include "cally-rectangle.h"
#include "cally-actor-private.h" #include "cally-actor-private.h"
#include "clutter-color.h"
#include "deprecated/clutter-rectangle.h"
/* AtkObject */ /* AtkObject */
static void cally_rectangle_real_initialize (AtkObject *obj, static void cally_rectangle_real_initialize (AtkObject *obj,
gpointer data); gpointer data);

View File

@ -18,13 +18,13 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __CALLY_RECTANGLE_H__
#define __CALLY_RECTANGLE_H__
#if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION) #if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <cally/cally.h> can be included directly." #error "Only <cally/cally.h> can be included directly."
#endif #endif
#ifndef __CALLY_RECTANGLE_H__
#define __CALLY_RECTANGLE_H__
#include <cally/cally-actor.h> #include <cally/cally-actor.h>
#include <clutter/clutter.h> #include <clutter/clutter.h>
@ -74,7 +74,9 @@ struct _CallyRectangleClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4
GType cally_rectangle_get_type (void) G_GNUC_CONST; GType cally_rectangle_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4
AtkObject* cally_rectangle_new (ClutterActor *actor); AtkObject* cally_rectangle_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@ -35,9 +35,15 @@
* #ClutterStageManager). * #ClutterStageManager).
*/ */
#include <clutter/clutter.h> #include "config.h"
#include "cally-root.h" #include "cally-root.h"
#include "clutter-actor.h"
#include "clutter-stage-private.h"
#include "clutter-stage-manager.h"
/* GObject */ /* GObject */
static void cally_root_finalize (GObject *object); static void cally_root_finalize (GObject *object);

View File

@ -18,14 +18,15 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __CALLY_ROOT_H__
#define __CALLY_ROOT_H__
#if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION) #if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <cally/cally.h> can be included directly." #error "Only <cally/cally.h> can be included directly."
#endif #endif
#ifndef __CALLY_ROOT_H__
#define __CALLY_ROOT_H__
#include <atk/atk.h> #include <atk/atk.h>
#include <clutter/clutter.h>
G_BEGIN_DECLS G_BEGIN_DECLS
@ -73,8 +74,9 @@ struct _CallyRootClass
gpointer _padding_dummy[16]; gpointer _padding_dummy[16];
}; };
CLUTTER_AVAILABLE_IN_1_4
GType cally_root_get_type (void) G_GNUC_CONST; GType cally_root_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4
AtkObject *cally_root_new (void); AtkObject *cally_root_new (void);
G_END_DECLS G_END_DECLS

View File

@ -34,6 +34,7 @@
* being a canvas. Anyway, this is required for applications using * being a canvas. Anyway, this is required for applications using
* just clutter, or directly #ClutterStage * just clutter, or directly #ClutterStage
*/ */
#include "config.h"
#include "cally-stage.h" #include "cally-stage.h"
#include "cally-actor-private.h" #include "cally-actor-private.h"

View File

@ -18,13 +18,13 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __CALLY_STAGE_H__
#define __CALLY_STAGE_H__
#if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION) #if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <cally/cally.h> can be included directly." #error "Only <cally/cally.h> can be included directly."
#endif #endif
#ifndef __CALLY_STAGE_H__
#define __CALLY_STAGE_H__
#include <cally/cally-group.h> #include <cally/cally-group.h>
#include <clutter/clutter.h> #include <clutter/clutter.h>
@ -74,7 +74,9 @@ struct _CallyStageClass
gpointer _padding_dummy[16]; gpointer _padding_dummy[16];
}; };
CLUTTER_AVAILABLE_IN_1_4
GType cally_stage_get_type (void) G_GNUC_CONST; GType cally_stage_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4
AtkObject *cally_stage_new (ClutterActor *actor); AtkObject *cally_stage_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@ -46,7 +46,9 @@
#include "cally-text.h" #include "cally-text.h"
#include "cally-actor-private.h" #include "cally-actor-private.h"
#include "clutter-color.h"
#include "clutter-main.h" #include "clutter-main.h"
#include "clutter-text.h"
static void cally_text_finalize (GObject *obj); static void cally_text_finalize (GObject *obj);

View File

@ -18,15 +18,15 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __CALLY_TEXT_H__
#define __CALLY_TEXT_H__
#if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION) #if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <cally/cally.h> can be included directly." #error "Only <cally/cally.h> can be included directly."
#endif #endif
#ifndef __CALLY_TEXT_H__
#define __CALLY_TEXT_H__
#include <cally/cally-actor.h>
#include <clutter/clutter.h> #include <clutter/clutter.h>
#include <cally/cally-actor.h>
G_BEGIN_DECLS G_BEGIN_DECLS
@ -74,7 +74,9 @@ struct _CallyTextClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4
GType cally_text_get_type (void) G_GNUC_CONST; GType cally_text_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4
AtkObject* cally_text_new (ClutterActor *actor); AtkObject* cally_text_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@ -30,10 +30,15 @@
* *
* In particular it sets a proper role for the texture. * In particular it sets a proper role for the texture.
*/ */
#include "config.h"
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
#include "cally-texture.h" #include "cally-texture.h"
#include "cally-actor-private.h" #include "cally-actor-private.h"
#include "deprecated/clutter-texture.h"
/* AtkObject */ /* AtkObject */
static void cally_texture_real_initialize (AtkObject *obj, static void cally_texture_real_initialize (AtkObject *obj,
gpointer data); gpointer data);

View File

@ -18,15 +18,15 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __CALLY_TEXTURE_H__
#define __CALLY_TEXTURE_H__
#if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION) #if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <cally/cally.h> can be included directly." #error "Only <cally/cally.h> can be included directly."
#endif #endif
#ifndef __CALLY_TEXTURE_H__
#define __CALLY_TEXTURE_H__
#include <cally/cally-actor.h>
#include <clutter/clutter.h> #include <clutter/clutter.h>
#include <cally/cally-actor.h>
G_BEGIN_DECLS G_BEGIN_DECLS
@ -74,7 +74,9 @@ struct _CallyTextureClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4
GType cally_texture_get_type (void) G_GNUC_CONST; GType cally_texture_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_4
AtkObject *cally_texture_new (ClutterActor *actor); AtkObject *cally_texture_new (ClutterActor *actor);
G_END_DECLS G_END_DECLS

View File

@ -18,13 +18,14 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __CALLY_UTIL_H__
#define __CALLY_UTIL_H__
#if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION) #if !defined(__CALLY_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
#error "Only <cally/cally.h> can be included directly." #error "Only <cally/cally.h> can be included directly."
#endif #endif
#ifndef __CALLY_UTIL_H__ #include <clutter/clutter.h>
#define __CALLY_UTIL_H__
#include <atk/atk.h> #include <atk/atk.h>
G_BEGIN_DECLS G_BEGIN_DECLS
@ -73,6 +74,7 @@ struct _CallyUtilClass
gpointer _padding_dummy[8]; gpointer _padding_dummy[8];
}; };
CLUTTER_AVAILABLE_IN_1_4
GType cally_util_get_type (void) G_GNUC_CONST; GType cally_util_get_type (void) G_GNUC_CONST;
G_END_DECLS G_END_DECLS