2 * Copyright (C) 2005 Andy Wingo <wingo@pobox.com>
3 * 2006 Joni Valtanen <joni.valtanen@movial.fi>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
22 #ifndef __GST_NET_TIME_PROVIDER_H__
23 #define __GST_NET_TIME_PROVIDER_H__
25 /* to determinate os */
34 #include <sys/types.h>
44 #include <sys/socket.h>
45 #include <netinet/in.h>
46 #include <arpa/inet.h>
51 #define GST_TYPE_NET_TIME_PROVIDER \
52 (gst_net_time_provider_get_type())
53 #define GST_NET_TIME_PROVIDER(obj) \
54 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NET_TIME_PROVIDER,GstNetTimeProvider))
55 #define GST_NET_TIME_PROVIDER_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NET_TIME_PROVIDER,GstNetTimeProviderClass))
57 #define GST_IS_NET_TIME_PROVIDER(obj) \
58 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NET_TIME_PROVIDER))
59 #define GST_IS_NET_TIME_PROVIDER_CLASS(klass) \
60 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NET_TIME_PROVIDER))
62 typedef struct _GstNetTimeProvider GstNetTimeProvider;
63 typedef struct _GstNetTimeProviderClass GstNetTimeProviderClass;
64 typedef struct _GstNetTimeProviderPrivate GstNetTimeProviderPrivate;
69 * Opaque #GstNetTimeProvider structure.
71 struct _GstNetTimeProvider {
85 /* has to be a gint, we use atomic ops here */
89 GstNetTimeProviderPrivate *priv;
91 gpointer _gst_reserved[GST_PADDING];
94 struct _GstNetTimeProviderClass {
95 GstObjectClass parent_class;
97 gpointer _gst_reserved[GST_PADDING];
100 GType gst_net_time_provider_get_type (void);
101 GstNetTimeProvider* gst_net_time_provider_new (GstClock *clock,
102 const gchar *address,
108 #endif /* __GST_NET_TIME_PROVIDER_H__ */