]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-file.h
Updated Polish translation
[empathy.git] / libempathy / empathy-tp-file.h
index f120558d546e3670c8d131a055c8648896192bcc..b40b8c364956de02fc75edf6eb6cac90c16256a6 100644 (file)
@@ -31,8 +31,6 @@
 
 G_BEGIN_DECLS
 
-#define EMPATHY_TP_FILE_UNKNOWN_SIZE G_MAXUINT64
-
 #define EMPATHY_TYPE_TP_FILE (empathy_tp_file_get_type ())
 #define EMPATHY_TP_FILE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \
     EMPATHY_TYPE_TP_FILE, EmpathyTpFile))
@@ -52,7 +50,9 @@ typedef enum {
        EMPATHY_FT_ERROR_HASH_MISMATCH,
        EMPATHY_FT_ERROR_TP_ERROR,
        EMPATHY_FT_ERROR_SOCKET,
-       EMPATHY_FT_ERROR_NOT_SUPPORTED
+       EMPATHY_FT_ERROR_NOT_SUPPORTED,
+       EMPATHY_FT_ERROR_INVALID_SOURCE_FILE,
+       EMPATHY_FT_ERROR_EMPTY_SOURCE_FILE
 } EmpathyFTErrorEnum;
 
 typedef struct _EmpathyTpFile EmpathyTpFile;
@@ -69,11 +69,23 @@ struct _EmpathyTpFileClass {
 
 /* prototypes for operation callbacks */
 
+/**
+ * EmpathyTpFileProgressCallback:
+ * @tp_file: the #EmpathyTpFile being transferred
+ * @current_bytes: the bytes currently transferred by the operation
+ * @user_data: user data passed to the callback
+ **/
 typedef void (* EmpathyTpFileProgressCallback)
     (EmpathyTpFile *tp_file,
      guint64 current_bytes,
      gpointer user_data);
 
+/**
+ * EmpathyTpFileOperationCallback:
+ * @tp_file: the #EmpathyTpFile that has been transferred
+ * @error: a #GError if the operation didn't succeed, %NULL otherwise
+ * @user_data: user data passed to the callback
+ **/
 typedef void (* EmpathyTpFileOperationCallback)
     (EmpathyTpFile *tp_file,
      const GError *error,