jingle-filetransfer/filetransfer.h
author Nicolas Cornu <nicolas.cornu@ensi-bourges.fr>
Tue, 10 Aug 2010 02:06:46 +0200
changeset 88 8b12ebd75c1a
parent 71 53ee5d729367
child 102 ec430b98c115
permissions -rw-r--r--
Change the size to an guint64 and use the G_GUINT64_FORMAT.

#ifndef __JINGLEFT_H__
#define __JINGLEFT_H__ 1

#define NS_JINGLE_APP_FT      "urn:xmpp:jingle:apps:file-transfer:1"
#define NS_JINGLE_APP_FT_INFO "urn:xmpp:jingle:apps:file-transfer:info:1"
#define NS_SI_FT              "http://jabber.org/protocol/si/profile/file-transfer"

typedef enum {
  JINGLE_FT_OFFER,
  JINGLE_FT_REQUEST,
} JingleFTType;

typedef struct {
  /* the last modification of the file, optional */
  time_t date;

  /* MD5 hash of the file, optional */
  gchar *hash;

  /* the name of the file that the sender wishes to send */
  gchar *name;

  /* the size, in bytes, of the data to be sent */
  guint64 size;

  /* descriptor to the output file */
  GIOChannel *outfile;
  
  JingleFTType type;
  
  gchar *desc;
  
} JingleFT;

#endif