X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libs%2Fgst%2Fnet%2Fgstnettimepacket.h;h=a04ea030ddc967e0c9247b415dbe84ce83015724;hb=d86a90550bf7e2cba312801a0861fa2ece99d7a3;hp=90d61365b2cafab8e6272f607dfbc3480623b00d;hpb=81ce8b76d0b31c130ea4a49ea10eb7718490ba6e;p=platform%2Fupstream%2Fgstreamer.git diff --git a/libs/gst/net/gstnettimepacket.h b/libs/gst/net/gstnettimepacket.h index 90d6136..a04ea03 100644 --- 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 - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ @@ -22,26 +22,11 @@ #define __GST_NET_TIME_PACKET_H__ #include +#include +#include G_BEGIN_DECLS -#include -#include -#include - -#ifdef G_OS_WIN32 -#include -#include -#ifndef socklen_t -#define socklen_t int -#endif -#else -#include -#include -#include -#include -#endif - /** * GST_NET_TIME_PACKET_SIZE: * @@ -63,14 +48,34 @@ struct _GstNetTimePacket { GstClockTime remote_time; }; +GST_NET_API +GType gst_net_time_packet_get_type (void); + +GST_NET_API 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); -GstNetTimePacket* gst_net_time_packet_receive (gint fd, struct sockaddr *addr, - socklen_t *len); -gint gst_net_time_packet_send (const GstNetTimePacket *packet, - gint fd, struct sockaddr *addr, - socklen_t len); +GST_NET_API +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); + +#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstNetTimePacket, gst_net_time_packet_free) +#endif G_END_DECLS