equal
deleted
inserted
replaced
30 |
30 |
31 |
31 |
32 /** |
32 /** |
33 * Create a new session and insert it in the linked list. |
33 * Create a new session and insert it in the linked list. |
34 */ |
34 */ |
35 JingleSession *session_new(JingleNode *jn, LmMessageNode* app, |
35 JingleSession *session_new(JingleNode *jn) |
36 LmMessageNode* trans) |
|
37 { |
36 { |
38 JingleSession *js = g_new0(JingleSession, 1); |
37 JingleSession *js = g_new0(JingleSession, 1); |
39 const gchar *from; |
38 const gchar *from; |
40 |
39 |
41 js->sid = g_strdup(jn->sid); |
40 js->sid = g_strdup(jn->sid); |
43 from = lm_message_node_get_attribute(lm_message_get_node(jn->message), "from"); |
42 from = lm_message_node_get_attribute(lm_message_get_node(jn->message), "from"); |
44 if (!from) { |
43 if (!from) { |
45 return NULL; |
44 return NULL; |
46 } |
45 } |
47 js->from = g_strdup(from); |
46 js->from = g_strdup(from); |
48 |
|
49 |
47 |
50 sessions = g_slist_append(sessions, js); |
48 sessions = g_slist_append(sessions, js); |
|
49 return js; |
51 } |
50 } |
52 |
51 |
53 JingleSession *session_find_by_sid(const gchar *sid, const gchar *from) |
52 JingleSession *session_find_by_sid(const gchar *sid, const gchar *from) |
54 { |
53 { |
55 GSList *el; |
54 GSList *el; |