2 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3 * 2005 Wim Taymans <wim@fluendo.com>
4 * 2005 Andy Wingo <wingo@pobox.com>
5 * Copyright (C) 2012 Collabora Ltd. <tim.muller@collabora.co.uk>
7 * gstnetclientclock.h: clock that synchronizes itself to a time provider over
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this library; if not, write to the
22 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 * Boston, MA 02111-1307, USA.
27 #ifndef __GST_NET_CLIENT_CLOCK_H__
28 #define __GST_NET_CLIENT_CLOCK_H__
31 #include <gst/gstsystemclock.h>
35 #define GST_TYPE_NET_CLIENT_CLOCK \
36 (gst_net_client_clock_get_type())
37 #define GST_NET_CLIENT_CLOCK(obj) \
38 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NET_CLIENT_CLOCK,GstNetClientClock))
39 #define GST_NET_CLIENT_CLOCK_CLASS(klass) \
40 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NET_CLIENT_CLOCK,GstNetClientClockClass))
41 #define GST_IS_NET_CLIENT_CLOCK(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NET_CLIENT_CLOCK))
43 #define GST_IS_NET_CLIENT_CLOCK_CLASS(klass) \
44 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NET_CLIENT_CLOCK))
46 typedef struct _GstNetClientClock GstNetClientClock;
47 typedef struct _GstNetClientClockClass GstNetClientClockClass;
48 typedef struct _GstNetClientClockPrivate GstNetClientClockPrivate;
53 * Opaque #GstNetClientClock structure.
55 struct _GstNetClientClock {
59 GstNetClientClockPrivate *priv;
61 gpointer _gst_reserved[GST_PADDING];
64 struct _GstNetClientClockClass {
65 GstSystemClockClass parent_class;
68 gpointer _gst_reserved[GST_PADDING];
71 GType gst_net_client_clock_get_type (void);
73 GstClock* gst_net_client_clock_new (gchar *name, const gchar *remote_address,
74 gint remote_port, GstClockTime base_time);
78 #endif /* __GST_NET_CLIENT_CLOCK_H__ */