equal
deleted
inserted
replaced
1 #ifndef __JINGLE_CHECK_H__ |
|
2 #define __JINGLE_CHECK_H__ 1 |
|
3 |
|
4 #include <glib.h> |
|
5 #include <loudmouth/loudmouth.h> |
|
6 |
|
7 #include "jingle.h" |
|
8 |
|
9 #define JINGLE_CHECK_ERROR jingle_check_error_quark() |
|
10 |
|
11 |
|
12 typedef enum { |
|
13 JINGLE_CHECK_ERROR_MISSING, // an element or attribute is missing |
|
14 JINGLE_CHECK_ERROR_BADELEM, // an element is not where it is supposed to be |
|
15 JINGLE_CHECK_ERROR_BADVALUE // the value of an attribute is incorrect |
|
16 } JingleCheckError; |
|
17 |
|
18 |
|
19 int check_jingle(LmMessageNode* node, JingleNode *jd, GError **err); |
|
20 GQuark jingle_check_error_quark(); |
|
21 |
|
22 #endif |
|