equal
deleted
inserted
replaced
16 * You should have received a copy of the GNU General Public License |
16 * You should have received a copy of the GNU General Public License |
17 * along with this program; if not, write to the Free Software |
17 * along with this program; if not, write to the Free Software |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
19 * USA |
19 * USA |
20 */ |
20 */ |
21 |
|
22 #include "config.h" |
21 #include "config.h" |
23 |
22 |
24 #include <glib.h> |
23 #include <glib.h> |
25 #include <glib/gstdio.h> |
24 #include <glib/gstdio.h> |
26 #include <string.h> |
25 #include <string.h> |
96 .uninit = jingle_ft_uninit, |
95 .uninit = jingle_ft_uninit, |
97 .next = NULL, |
96 .next = NULL, |
98 }; |
97 }; |
99 |
98 |
100 |
99 |
|
100 /** |
|
101 * \fn static gconstpointer check(JingleContent *cn, GError **err) |
|
102 * \brief Check if a node description with xmlns of JFT is correct |
|
103 * |
|
104 * \param cn the jinglecontent a node description |
|
105 * \param err contain an error of the domain JINGLE_CHECK_ERROR |
|
106 * \return a gconstpointer, which is a new allocated JingleFT |
|
107 */ |
101 static gconstpointer check(JingleContent *cn, GError **err) |
108 static gconstpointer check(JingleContent *cn, GError **err) |
102 { |
109 { |
103 JingleFT *ft = NULL; |
110 JingleFT *ft = NULL; |
104 LmMessageNode *node; |
111 LmMessageNode *node; |
105 gint64 tmpsize; |
112 gint64 tmpsize; |
186 } |
193 } |
187 |
194 |
188 return (gconstpointer) ft; |
195 return (gconstpointer) ft; |
189 } |
196 } |
190 |
197 |
|
198 /** |
|
199 * \fn static gboolean handle(JingleAction action, gconstpointer data, LmMessageNode *node) |
|
200 * \brief handle a function to handle action which are not "current" |
|
201 * |
|
202 * \param action the action which have been received |
|
203 * \param data contain the JingleFT of the content concerned |
|
204 * \param node the node himself |
|
205 * \return a gconstpointer, which is a new allocated JingleFT |
|
206 */ |
191 static gboolean handle(JingleAction action, gconstpointer data, |
207 static gboolean handle(JingleAction action, gconstpointer data, |
192 LmMessageNode *node) |
208 LmMessageNode *node) |
193 { |
209 { |
194 if (action == JINGLE_SESSION_INFO) { |
210 if (action == JINGLE_SESSION_INFO) { |
195 if (!g_strcmp0(lm_message_node_get_attribute(node, "xmlns"), |
211 if (!g_strcmp0(lm_message_node_get_attribute(node, "xmlns"), |