jingle/check.h
author Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
Sun, 06 Jun 2010 23:19:47 +0200
changeset 14 77966ed56e14
child 18 d0ddcfd31eb8
permissions -rw-r--r--
Create two subdirectories. One will contain the main jingle module and the other the file transfert app.

#ifndef __JINGLE_CHECK_H__
#define __JINGLE_CHECK_H__ 1

#include <glib.h>
#include <loudmouth/loudmouth.h>

#include "jingle.h"

#define JINGLE_CHECK_ERROR jingle_check_error_quark()


typedef enum {
  JINGLE_CHECK_ERROR_MISSING,  // an element or attribute is missing
  JINGLE_CHECK_ERROR_BADELEM,  // an element is not where it is supposed to be
  JINGLE_CHECK_ERROR_BADVALUE  // the value of an attribute is incorrect
} JingleCheckError;


int check_jingle(LmMessageNode* node, JingleNode *jd, GError **err);
GQuark jingle_check_error_quark();

#endif