jingle/check.h
changeset 14 77966ed56e14
child 18 d0ddcfd31eb8
equal deleted inserted replaced
13:4e6245ccd73c 14:77966ed56e14
       
     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