jingle/check.h
changeset 14 77966ed56e14
child 18 d0ddcfd31eb8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jingle/check.h	Sun Jun 06 23:19:47 2010 +0200
@@ -0,0 +1,22 @@
+#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