2003-04-25 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Fri, 25 Apr 2003 11:31:14 +0000 (11:31 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Fri, 25 Apr 2003 11:31:14 +0000 (11:31 +0000)
* gpgme.h (GpgmeError): Add GPGME_Busy, GPGME_No_Request.
(GPGME_No_Recipients, GPGME_Invalid_Recipient,
GPGME_No_Passphrase): New macros.

trunk/NEWS
trunk/TODO
trunk/gpgme/ChangeLog
trunk/gpgme/gpgme.h

index 6a517b548035a4b38effee45d2c6a4d3dc568ab6..409181c7168077e87c05119f82a111d1507ac2ce 100644 (file)
@@ -41,6 +41,9 @@ Noteworthy changes in version 0.4.1 (unreleased)
    function has been removed, just return GPGME_Canceled in the
    passphrase callback directly.
 
+ * The status of a context operation is not checked anymore, so the
+   errors GPGME_Busy and GPGME_No_Request can not occur anymore.
+
  * For clarity and better reusability, the error codes
    GPGME_No_Recipients, GPGME_Invalid_Recipient and
    GPGME_No_Passphrase have been renamed to GPGME_No_UserID,
@@ -85,9 +88,14 @@ gpgme_get_engine_info                CHANGED: Return info structure instead XML.
 gpgme_get_protocol_name                NEW
 GpgmePassphraseCb              CHANGED: Return error value, new argument.
 gpgme_cancel                   REMOVED: Return error in callback directly.
-GPGME_No_Recipients            CHANGED: Now GPGME_No_UserID.
-GPGME_Invalid_Recipient                CHANGED: Now GPGME_Invalid_UserID.
-GPGME_No_Passphrase            CHANGED: Now GPGME_Bad_Passphrase.
+GPGME_Busy                     DEPRECATED: Not in use.
+GPGME_No_Request               DEPRECATED: Not in use.
+GPGME_No_Recipients            DEPRECATED: Use GPGME_No_UserID.
+GPGME_No_UserID                        NEW
+GPGME_Invalid_Recipient                DEPRECATED: Use GPGME_Invalid_UserID.
+GPGME_Invalid_UserID           NEW
+GPGME_No_Passphrase            DEPRECATED: Use GPGME_Bad_Passphrase.
+GPGME_Bad_Passphrase           NEW
 gpgme_op_genkey                        CHANGED: FPR argument dropped.
 gpgme_op_genkey_result         NEW
 GpgmeGenKeyResult              NEW
index 63826281e1cbd01618decd9d54c7685e0bce9a59..16a26b7f9eb631879e11f99279bd17bb4de9142d 100644 (file)
@@ -6,6 +6,14 @@ Hey Emacs, this is -*- outline -*- mode!
    returning information in the blocking version as function arguments).
 ** Drop the support for finding out if an operation is pending.  After all, one
    or two more ways for a user to shoot themselves in the foot don't matter.
+** Compatibility interfaces that can be removed in future versions:
+*** gpgme_data_new_from_filepart
+*** gpgme_data_new_from_file
+*** gpgme_data_new_with_read_cb
+*** gpgme_data_rewind
+*** GPGME_Busy, GPGME_No_Request
+*** GPGME_No_Passphrase
+*** GPGME_Invalid_Recipient, GPGME_No_Recipients
 
 * Thread support:
 ** Build thread modules for static linking (which just suck in the
index 0ce537cc7f899989e168179e772b5d081027c357..d03971abf170ac5395613a738797a262a927d854 100644 (file)
@@ -1,5 +1,9 @@
 2003-04-25  Marcus Brinkmann  <marcus@g10code.de>
 
+       * gpgme.h (GpgmeError): Add GPGME_Busy, GPGME_No_Request.
+       (GPGME_No_Recipients, GPGME_Invalid_Recipient,
+       GPGME_No_Passphrase): New macros.
+
        * key.c (gpgme_key_get_string_attr): Fix validity attribute.
 
 2003-04-24  Marcus Brinkmann  <marcus@g10code.de>
index 0ad0f23e9f731329a9a4deea99a0eb353cadfe94..f7c8b54aeb74822b12a4e5c0d5d4445e8c486e9b 100644 (file)
@@ -78,28 +78,33 @@ typedef enum
     GPGME_General_Error           = 0x0001,
     GPGME_Out_Of_Core             = 0x0002,
     GPGME_Invalid_Value           = 0x0003,
-    GPGME_No_Request              = 0x0004,
-    GPGME_Exec_Error              = 0x0005,
-    GPGME_Too_Many_Procs          = 0x0006,
-    GPGME_Pipe_Error              = 0x0007,
-    GPGME_No_Data                 = 0x0008,
-    GPGME_Conflict                = 0x0009,
-    GPGME_Not_Implemented         = 0x000a,
-    GPGME_Read_Error              = 0x000b,
-    GPGME_Write_Error             = 0x000c,
-    GPGME_Invalid_Type            = 0x000d,
-    GPGME_Invalid_Mode            = 0x000e,
-    GPGME_File_Error              = 0x000f, /* errno is set in this case.  */
-    GPGME_Decryption_Failed       = 0x0010,
-    GPGME_Bad_Passphrase          = 0x0011,
-    GPGME_Canceled                = 0x0012,
-    GPGME_Invalid_Key             = 0x0013,
-    GPGME_Invalid_Engine          = 0x0014,
-    GPGME_No_UserID               = 0x0015,
-    GPGME_Invalid_UserID          = 0x0016,
+    GPGME_Exec_Error              = 0x0004,
+    GPGME_Too_Many_Procs          = 0x0005,
+    GPGME_Pipe_Error              = 0x0006,
+    GPGME_No_Data                 = 0x0007,
+    GPGME_Conflict                = 0x0008,
+    GPGME_Not_Implemented         = 0x0009,
+    GPGME_Read_Error              = 0x000a,
+    GPGME_Write_Error             = 0x000b,
+    GPGME_Invalid_Type            = 0x000c,
+    GPGME_Invalid_Mode            = 0x000d,
+    GPGME_File_Error              = 0x000e, /* errno is set in this case.  */
+    GPGME_Decryption_Failed       = 0x000f,
+    GPGME_Bad_Passphrase          = 0x0010,
+    GPGME_Canceled                = 0x0011,
+    GPGME_Invalid_Key             = 0x0012,
+    GPGME_Invalid_Engine          = 0x0013,
+    GPGME_No_UserID               = 0x0014,
+    GPGME_Invalid_UserID          = 0x0015,
+    GPGME_Busy                    = -2,
+    GPGME_No_Request              = -3,
   }
 GpgmeError;
 
+#define GPGME_No_Recipients    GPGME_No_UserID
+#define GPGME_Invalid_Recipient        GPGME_Invalid_UserID
+#define GPGME_No_Passphrase    GPGME_Bad_Passphrase
+
 /* The possible types of GpgmeData objects.  */
 typedef enum
   {