jingle/check.h
author Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
Mon, 16 Aug 2010 02:55:00 +0200
changeset 130 da01e4b2d7fa
parent 54 1c1153f9f945
child 144 efc92c939fef
permissions -rw-r--r--
Fix jingle_ibb_handle_ack_iq_send, keep the JingleIBB in a hash table.

#ifndef __JINGLE_CHECK_H__
#define __JINGLE_CHECK_H__ 1

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

#include <jingle/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;


gboolean check_jingle(LmMessage *message, LmMessageNode *node,
                      JingleNode *jn, GError **err);
gboolean check_contents(JingleNode *jn, GError **err);

gboolean check_transport(const gchar *xmlns, gconstpointer *data);

GQuark jingle_check_error_quark(void);

#endif