tests: fix tests when compiling with glib_checks=disabled
[platform/upstream/gstreamer.git] / gst / gstdatetime.h
index 280eabb..61a32ec 100644 (file)
@@ -39,7 +39,7 @@ G_BEGIN_DECLS
  */
 typedef struct _GstDateTime GstDateTime;
 
-GST_EXPORT GType _gst_date_time_type;
+GST_API GType _gst_date_time_type;
 
 /**
  * GST_TYPE_DATE_TIME:
@@ -51,107 +51,107 @@ GST_EXPORT GType _gst_date_time_type;
 
 #define GST_TYPE_DATE_TIME (_gst_date_time_type)
 
-GST_EXPORT
+GST_API
 GType           gst_date_time_get_type (void);
 
 /* query which fields are set */
 
-GST_EXPORT
+GST_API
 gboolean        gst_date_time_has_year                (const GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 gboolean        gst_date_time_has_month               (const GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 gboolean        gst_date_time_has_day                 (const GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 gboolean        gst_date_time_has_time                (const GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 gboolean        gst_date_time_has_second              (const GstDateTime * datetime);
 
 /* field getters */
 
-GST_EXPORT
+GST_API
 gint            gst_date_time_get_year                (const GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 gint            gst_date_time_get_month               (const GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 gint            gst_date_time_get_day                 (const GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 gint            gst_date_time_get_hour                (const GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 gint            gst_date_time_get_minute              (const GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 gint            gst_date_time_get_second              (const GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 gint            gst_date_time_get_microsecond         (const GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 gfloat          gst_date_time_get_time_zone_offset    (const GstDateTime * datetime);
 
 /* constructors */
 
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_new_from_unix_epoch_local_time (gint64 secs) G_GNUC_MALLOC;
 
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_new_from_unix_epoch_utc   (gint64 secs) G_GNUC_MALLOC;
 
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_new_local_time            (gint year,
                                                          gint month,
                                                          gint day,
                                                          gint hour,
                                                          gint minute,
                                                          gdouble seconds) G_GNUC_MALLOC;
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_new_y                     (gint year) G_GNUC_MALLOC;
 
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_new_ym                    (gint year,
                                                          gint month) G_GNUC_MALLOC;
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_new_ymd                   (gint year,
                                                          gint month,
                                                          gint day) G_GNUC_MALLOC;
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_new                       (gfloat tzoffset,
                                                          gint year, gint month,
                                                          gint day, gint hour,
                                                          gint minute,
                                                          gdouble seconds) G_GNUC_MALLOC;
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_new_now_local_time (void) G_GNUC_MALLOC;
 
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_new_now_utc        (void) G_GNUC_MALLOC;
 
-GST_EXPORT
+GST_API
 gchar *         gst_date_time_to_iso8601_string  (GstDateTime * datetime) G_GNUC_MALLOC;
 
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_new_from_iso8601_string  (const gchar * string) G_GNUC_MALLOC;
 
-GST_EXPORT
+GST_API
 GDateTime *     gst_date_time_to_g_date_time       (GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_new_from_g_date_time (GDateTime * dt);
 
 /* refcounting */
 
-GST_EXPORT
+GST_API
 GstDateTime *   gst_date_time_ref                (GstDateTime * datetime);
 
-GST_EXPORT
+GST_API
 void            gst_date_time_unref              (GstDateTime * datetime);
 
 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC