diff -r 9b2c3c7a1a9c -r 567bb019e3e3 gst_plugins_base/gst-libs/gst/netbuffer/gstnetbuffer.h --- a/gst_plugins_base/gst-libs/gst/netbuffer/gstnetbuffer.h Wed Mar 31 22:03:18 2010 +0300 +++ b/gst_plugins_base/gst-libs/gst/netbuffer/gstnetbuffer.h Tue Aug 31 15:30:33 2010 +0300 @@ -50,6 +50,16 @@ } GstNetType; /** + * GST_NETADDRESS_MAX_LEN: + * + * The maximum length of a string representation of a GstNetAddress as produced + * by gst_netaddress_to_string(). + * + * Since: 0.10.24 + */ +#define GST_NETADDRESS_MAX_LEN 64 + +/** * GstNetAddress: * * An opaque network address as used in #GstNetBuffer. @@ -97,48 +107,64 @@ IMPORT_C #endif -GType gst_netbuffer_get_type (void); +GType gst_netbuffer_get_type (void); #ifdef __SYMBIAN32__ IMPORT_C #endif -GstNetBuffer* gst_netbuffer_new (void); +GstNetBuffer* gst_netbuffer_new (void); /* address operations */ #ifdef __SYMBIAN32__ IMPORT_C #endif -void gst_netaddress_set_ip4_address (GstNetAddress *naddr, guint32 address, guint16 port); +void gst_netaddress_set_ip4_address (GstNetAddress *naddr, guint32 address, guint16 port); #ifdef __SYMBIAN32__ IMPORT_C #endif -void gst_netaddress_set_ip6_address (GstNetAddress *naddr, guint8 address[16], guint16 port); +void gst_netaddress_set_ip6_address (GstNetAddress *naddr, guint8 address[16], guint16 port); +#ifdef __SYMBIAN32__ +IMPORT_C +#endif + +gint gst_netaddress_set_address_bytes (GstNetAddress *naddr, GstNetType type, + guint8 address[16], guint16 port); #ifdef __SYMBIAN32__ IMPORT_C #endif -GstNetType gst_netaddress_get_net_type (GstNetAddress *naddr); +GstNetType gst_netaddress_get_net_type (const GstNetAddress *naddr); #ifdef __SYMBIAN32__ IMPORT_C #endif -gboolean gst_netaddress_get_ip4_address (GstNetAddress *naddr, guint32 *address, guint16 *port); +gboolean gst_netaddress_get_ip4_address (const GstNetAddress *naddr, guint32 *address, guint16 *port); #ifdef __SYMBIAN32__ IMPORT_C #endif -gboolean gst_netaddress_get_ip6_address (GstNetAddress *naddr, guint8 address[16], guint16 *port); +gboolean gst_netaddress_get_ip6_address (const GstNetAddress *naddr, guint8 address[16], guint16 *port); +#ifdef __SYMBIAN32__ +IMPORT_C +#endif + +gint gst_netaddress_get_address_bytes (const GstNetAddress *naddr, guint8 address[16], guint16 *port); #ifdef __SYMBIAN32__ IMPORT_C #endif -gboolean gst_netaddress_equal (const GstNetAddress *naddr1, - const GstNetAddress *naddr2); +gboolean gst_netaddress_equal (const GstNetAddress *naddr1, +#ifdef __SYMBIAN32__ +IMPORT_C +#endif + const GstNetAddress *naddr2); + +gint gst_netaddress_to_string (const GstNetAddress *naddr, gchar *dest, gulong len); G_END_DECLS