gst_plugins_base/gst-libs/gst/netbuffer/gstnetbuffer.h
branchRCL_3
changeset 29 567bb019e3e3
parent 0 0e761a78d257
child 30 7e817e7e631c
equal deleted inserted replaced
6:9b2c3c7a1a9c 29:567bb019e3e3
    48   GST_NET_TYPE_IP4,
    48   GST_NET_TYPE_IP4,
    49   GST_NET_TYPE_IP6,
    49   GST_NET_TYPE_IP6,
    50 } GstNetType;
    50 } GstNetType;
    51 
    51 
    52 /**
    52 /**
       
    53  * GST_NETADDRESS_MAX_LEN:
       
    54  *
       
    55  * The maximum length of a string representation of a GstNetAddress as produced
       
    56  * by gst_netaddress_to_string().
       
    57  *
       
    58  * Since: 0.10.24
       
    59  */
       
    60 #define GST_NETADDRESS_MAX_LEN	64
       
    61 
       
    62 /**
    53  * GstNetAddress:
    63  * GstNetAddress:
    54  *
    64  *
    55  * An opaque network address as used in #GstNetBuffer.
    65  * An opaque network address as used in #GstNetBuffer.
    56  */
    66  */
    57 struct _GstNetAddress {
    67 struct _GstNetAddress {
    95 /* creating buffers */
   105 /* creating buffers */
    96 #ifdef __SYMBIAN32__
   106 #ifdef __SYMBIAN32__
    97 IMPORT_C
   107 IMPORT_C
    98 #endif
   108 #endif
    99 
   109 
   100 GType           gst_netbuffer_get_type          (void);
   110 GType           gst_netbuffer_get_type           (void);
   101 #ifdef __SYMBIAN32__
   111 #ifdef __SYMBIAN32__
   102 IMPORT_C
   112 IMPORT_C
   103 #endif
   113 #endif
   104 
   114 
   105 
   115 
   106 GstNetBuffer*   gst_netbuffer_new               (void);
   116 GstNetBuffer*   gst_netbuffer_new                (void);
   107 
   117 
   108 /* address operations */
   118 /* address operations */
   109 #ifdef __SYMBIAN32__
   119 #ifdef __SYMBIAN32__
   110 IMPORT_C
   120 IMPORT_C
   111 #endif
   121 #endif
   112 
   122 
   113 void            gst_netaddress_set_ip4_address  (GstNetAddress *naddr, guint32 address, guint16 port);
   123 void            gst_netaddress_set_ip4_address   (GstNetAddress *naddr, guint32 address, guint16 port);
   114 #ifdef __SYMBIAN32__
   124 #ifdef __SYMBIAN32__
   115 IMPORT_C
   125 IMPORT_C
   116 #endif
   126 #endif
   117 
   127 
   118 void            gst_netaddress_set_ip6_address  (GstNetAddress *naddr, guint8 address[16], guint16 port);
   128 void            gst_netaddress_set_ip6_address   (GstNetAddress *naddr, guint8 address[16], guint16 port);
       
   129 #ifdef __SYMBIAN32__
       
   130 IMPORT_C
       
   131 #endif
       
   132 
       
   133 gint            gst_netaddress_set_address_bytes (GstNetAddress *naddr, GstNetType type,
       
   134                                                   guint8 address[16], guint16 port);
   119 #ifdef __SYMBIAN32__
   135 #ifdef __SYMBIAN32__
   120 IMPORT_C
   136 IMPORT_C
   121 #endif
   137 #endif
   122 
   138 
   123 
   139 
   124 GstNetType      gst_netaddress_get_net_type     (GstNetAddress *naddr);
   140 GstNetType      gst_netaddress_get_net_type      (const GstNetAddress *naddr);
   125 #ifdef __SYMBIAN32__
   141 #ifdef __SYMBIAN32__
   126 IMPORT_C
   142 IMPORT_C
   127 #endif
   143 #endif
   128 
   144 
   129 gboolean        gst_netaddress_get_ip4_address  (GstNetAddress *naddr, guint32 *address, guint16 *port);
   145 gboolean        gst_netaddress_get_ip4_address   (const GstNetAddress *naddr, guint32 *address, guint16 *port);
   130 #ifdef __SYMBIAN32__
   146 #ifdef __SYMBIAN32__
   131 IMPORT_C
   147 IMPORT_C
   132 #endif
   148 #endif
   133 
   149 
   134 gboolean        gst_netaddress_get_ip6_address  (GstNetAddress *naddr, guint8 address[16], guint16 *port);
   150 gboolean        gst_netaddress_get_ip6_address   (const GstNetAddress *naddr, guint8 address[16], guint16 *port);
       
   151 #ifdef __SYMBIAN32__
       
   152 IMPORT_C
       
   153 #endif
       
   154 
       
   155 gint            gst_netaddress_get_address_bytes (const GstNetAddress *naddr, guint8 address[16], guint16 *port);
   135 #ifdef __SYMBIAN32__
   156 #ifdef __SYMBIAN32__
   136 IMPORT_C
   157 IMPORT_C
   137 #endif
   158 #endif
   138 
   159 
   139 
   160 
   140 gboolean        gst_netaddress_equal            (const GstNetAddress *naddr1,
   161 gboolean        gst_netaddress_equal             (const GstNetAddress *naddr1,
   141                                                  const GstNetAddress *naddr2);
   162 #ifdef __SYMBIAN32__
       
   163 IMPORT_C
       
   164 #endif
       
   165                                                   const GstNetAddress *naddr2);
       
   166 
       
   167 gint            gst_netaddress_to_string         (const GstNetAddress *naddr, gchar *dest, gulong len);
   142 
   168 
   143 G_END_DECLS
   169 G_END_DECLS
   144 
   170 
   145 #endif /* __GST_NETBUFFER_H__ */
   171 #endif /* __GST_NETBUFFER_H__ */
   146 
   172