jingle-ibb/ibb.h
author Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
Sun, 03 Oct 2010 22:01:59 +0200
changeset 169 9aee866bdb9a
parent 131 943c3f938cb4
permissions -rw-r--r--
JFT: when no ressource, change state from PENDING to ERROR

#ifndef __JINGLEIBB_H__
#define __JINGLEIBB_H__ 1

#define NS_JINGLE_TRANSPORT_IBB "urn:xmpp:jingle:transports:ibb:0"
#define NS_TRANSPORT_IBB "http://jabber.org/protocol/ibb"

#define IBB_BLOCK_SIZE_MAX 4096

typedef struct {
  /* Size of the blocks */
  guint blocksize;

  /* The identifiant of the transfer */
  gchar *sid;

  gchar *buf;
  
  gint size_buf;
  
  gint dataleft;
  
  gint64 seq;
  
} JingleIBB;

#endif