| Wocky Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
enum WockyJingleMediaType; enum WockyJingleContentState; WockyJingleCandidate; struct WockyJingleContentClass; void wocky_jingle_content_parse_add (WockyJingleContent *c,WockyNode *content_node,gboolean google_mode,GError **error); void wocky_jingle_content_update_senders (WockyJingleContent *c,WockyNode *content_node,GError **error); void wocky_jingle_content_produce_node (WockyJingleContent *c,WockyNode *parent,gboolean include_description,gboolean include_transport,WockyNode **trans_node_out); void wocky_jingle_content_parse_accept (WockyJingleContent *c,WockyNode *content_node,gboolean google_mode,GError **error); void wocky_jingle_content_parse_info (WockyJingleContent *c,WockyNode *content_node,GError **error); void wocky_jingle_content_parse_transport_info (WockyJingleContent *self,WockyNode *trans_node,GError **error); void wocky_jingle_content_parse_description_info (WockyJingleContent *self,WockyNode *trans_node,GError **error); guint wocky_jingle_content_create_share_channel (WockyJingleContent *self,const gchar *name); void wocky_jingle_content_add_candidates (WockyJingleContent *self,GList *li); gboolean wocky_jingle_content_is_ready (WockyJingleContent *self); void wocky_jingle_content_set_transport_state (WockyJingleContent *content,WockyJingleTransportState state); void wocky_jingle_content_remove (WockyJingleContent *c,gboolean signal_peer); void wocky_jingle_content_reject (WockyJingleContent *c,WockyJingleReason reason); GList * wocky_jingle_content_get_remote_candidates (WockyJingleContent *c); GList * wocky_jingle_content_get_local_candidates (WockyJingleContent *c); gboolean wocky_jingle_content_get_credentials (WockyJingleContent *c,gchar **ufrag,gchar **pwd); gboolean wocky_jingle_content_change_direction (WockyJingleContent *c,WockyJingleContentSenders senders); void wocky_jingle_content_retransmit_candidates (WockyJingleContent *self,gboolean all); void wocky_jingle_content_inject_candidates (WockyJingleContent *self,WockyNode *transport_node); gboolean wocky_jingle_content_is_created_by_us (WockyJingleContent *c); gboolean wocky_jingle_content_creator_is_initiator (WockyJingleContent *c); const gchar * wocky_jingle_content_get_name (WockyJingleContent *self); const gchar * wocky_jingle_content_get_ns (WockyJingleContent *self); const gchar * wocky_jingle_content_get_disposition (WockyJingleContent *self); WockyJingleTransportType wocky_jingle_content_get_transport_type (WockyJingleContent *c); const gchar * wocky_jingle_content_get_transport_ns (WockyJingleContent *self); void wocky_jingle_content_maybe_send_description (WockyJingleContent *self); gboolean wocky_jingle_content_sending (WockyJingleContent *self); gboolean wocky_jingle_content_receiving (WockyJingleContent *self); void wocky_jingle_content_set_sending (WockyJingleContent *self,gboolean send); void wocky_jingle_content_request_receiving (WockyJingleContent *self,gboolean receive); void wocky_jingle_content_send_complete (WockyJingleContent *self);
typedef enum {
WOCKY_JINGLE_MEDIA_TYPE_NONE = 0,
WOCKY_JINGLE_MEDIA_TYPE_AUDIO,
WOCKY_JINGLE_MEDIA_TYPE_VIDEO,
} WockyJingleMediaType;
typedef enum {
WOCKY_JINGLE_CONTENT_STATE_EMPTY = 0,
WOCKY_JINGLE_CONTENT_STATE_NEW,
WOCKY_JINGLE_CONTENT_STATE_SENT,
WOCKY_JINGLE_CONTENT_STATE_ACKNOWLEDGED,
WOCKY_JINGLE_CONTENT_STATE_REMOVING
} WockyJingleContentState;
typedef struct {
WockyJingleTransportProtocol protocol;
WockyJingleCandidateType type;
gchar *id;
gchar *address;
int port;
int component;
int generation;
int preference;
gchar *username;
gchar *password;
int network;
} WockyJingleCandidate;
struct WockyJingleContentClass {
GObjectClass parent_class;
void (*parse_description) (WockyJingleContent *, WockyNode *,
GError **);
void (*produce_description) (WockyJingleContent *, WockyNode *);
void (*transport_created) (WockyJingleContent *,
WockyJingleTransportIface *);
WockyJingleContentSenders (*get_default_senders) (WockyJingleContent *);
};
void wocky_jingle_content_parse_add (WockyJingleContent *c,WockyNode *content_node,gboolean google_mode,GError **error);
void wocky_jingle_content_update_senders (WockyJingleContent *c,WockyNode *content_node,GError **error);
void wocky_jingle_content_produce_node (WockyJingleContent *c,WockyNode *parent,gboolean include_description,gboolean include_transport,WockyNode **trans_node_out);
void wocky_jingle_content_parse_accept (WockyJingleContent *c,WockyNode *content_node,gboolean google_mode,GError **error);
void wocky_jingle_content_parse_info (WockyJingleContent *c,WockyNode *content_node,GError **error);
void wocky_jingle_content_parse_transport_info (WockyJingleContent *self,WockyNode *trans_node,GError **error);
void wocky_jingle_content_parse_description_info (WockyJingleContent *self,WockyNode *trans_node,GError **error);
guint wocky_jingle_content_create_share_channel (WockyJingleContent *self,const gchar *name);
void wocky_jingle_content_add_candidates (WockyJingleContent *self,GList *li);
Adds the candidates listed in li to the content, communicating them to the
peer if appropriate.
|
the content |
|
a list of
WockyJingleCandidate structs, allocated with wocky_jingle_candidate_new(). [element-type WockyJingleCandidate][transfer full]
|
void wocky_jingle_content_set_transport_state (WockyJingleContent *content,WockyJingleTransportState state);
void wocky_jingle_content_remove (WockyJingleContent *c,gboolean signal_peer);
void wocky_jingle_content_reject (WockyJingleContent *c,WockyJingleReason reason);
GList * wocky_jingle_content_get_remote_candidates
(WockyJingleContent *c);
GList * wocky_jingle_content_get_local_candidates
(WockyJingleContent *c);
gboolean wocky_jingle_content_get_credentials (WockyJingleContent *c,gchar **ufrag,gchar **pwd);
gboolean wocky_jingle_content_change_direction (WockyJingleContent *c,WockyJingleContentSenders senders);
void wocky_jingle_content_retransmit_candidates (WockyJingleContent *self,gboolean all);
void wocky_jingle_content_inject_candidates (WockyJingleContent *self,WockyNode *transport_node);
gboolean wocky_jingle_content_is_created_by_us
(WockyJingleContent *c);
gboolean wocky_jingle_content_creator_is_initiator
(WockyJingleContent *c);
const gchar * wocky_jingle_content_get_name (WockyJingleContent *self);
const gchar * wocky_jingle_content_get_ns (WockyJingleContent *self);
const gchar * wocky_jingle_content_get_disposition
(WockyJingleContent *self);
WockyJingleTransportType wocky_jingle_content_get_transport_type
(WockyJingleContent *c);
const gchar * wocky_jingle_content_get_transport_ns
(WockyJingleContent *self);
void wocky_jingle_content_maybe_send_description
(WockyJingleContent *self);
gboolean wocky_jingle_content_receiving (WockyJingleContent *self);
void wocky_jingle_content_set_sending (WockyJingleContent *self,gboolean send);
void wocky_jingle_content_request_receiving (WockyJingleContent *self,gboolean receive);
void wocky_jingle_content_send_complete (WockyJingleContent *self);