projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: GST_EXPORT -> GST_NET_API
[platform/upstream/gstreamer.git]
/
libs
/
gst
/
net
/
gstnettimepacket.h
diff --git
a/libs/gst/net/gstnettimepacket.h
b/libs/gst/net/gstnettimepacket.h
index
e37342c
..
a04ea03
100644
(file)
--- a/
libs/gst/net/gstnettimepacket.h
+++ b/
libs/gst/net/gstnettimepacket.h
@@
-13,8
+13,8
@@
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
- * Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
- * Boston, MA 0211
1-1307
, USA.
+ * Free Software Foundation, Inc., 5
1 Franklin St, Fifth Floor
,
+ * Boston, MA 0211
0-1301
, USA.
*/
*/
@@
-23,6
+23,7
@@
#include <gst/gst.h>
#include <gio/gio.h>
#include <gst/gst.h>
#include <gio/gio.h>
+#include <gst/net/net-prelude.h>
G_BEGIN_DECLS
G_BEGIN_DECLS
@@
-47,19
+48,35
@@
struct _GstNetTimePacket {
GstClockTime remote_time;
};
GstClockTime remote_time;
};
-/* FIXME 0.11: get rid of the packet stuff? add an unref/free function? */
+GST_NET_API
+GType gst_net_time_packet_get_type (void);
+
+GST_NET_API
GstNetTimePacket* gst_net_time_packet_new (const guint8 *buffer);
GstNetTimePacket* gst_net_time_packet_new (const guint8 *buffer);
+
+GST_NET_API
+GstNetTimePacket* gst_net_time_packet_copy (const GstNetTimePacket *packet);
+
+GST_NET_API
+void gst_net_time_packet_free (GstNetTimePacket *packet);
+
+GST_NET_API
guint8* gst_net_time_packet_serialize (const GstNetTimePacket *packet);
guint8* gst_net_time_packet_serialize (const GstNetTimePacket *packet);
+GST_NET_API
GstNetTimePacket* gst_net_time_packet_receive (GSocket * socket,
GSocketAddress ** src_address,
GError ** error);
GstNetTimePacket* gst_net_time_packet_receive (GSocket * socket,
GSocketAddress ** src_address,
GError ** error);
-
+GST_NET_API
gboolean gst_net_time_packet_send (const GstNetTimePacket * packet,
GSocket * socket,
GSocketAddress * dest_address,
GError ** error);
gboolean gst_net_time_packet_send (const GstNetTimePacket * packet,
GSocket * socket,
GSocketAddress * dest_address,
GError ** error);
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstNetTimePacket, gst_net_time_packet_free)
+#endif
+
G_END_DECLS
G_END_DECLS