Add enum for RPMCALLBACK_INST_STOP callback event
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 5 Jan 2012 12:34:46 +0000 (14:34 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 5 Jan 2012 14:05:10 +0000 (16:05 +0200)
- Unused atm but we'll be adding this shortly

lib/rpmcallback.h
lib/rpminstall.c
python/rpmmodule.c

index ee2305b..b3b05c6 100644 (file)
@@ -30,6 +30,7 @@ typedef enum rpmCallbackType_e {
     RPMCALLBACK_SCRIPT_ERROR   = (1 << 15),
     RPMCALLBACK_SCRIPT_START   = (1 << 16),
     RPMCALLBACK_SCRIPT_STOP    = (1 << 17),
+    RPMCALLBACK_INST_STOP      = (1 << 18),
 } rpmCallbackType;
 
 /**
index 1cac113..019d11a 100644 (file)
@@ -152,6 +152,9 @@ void * rpmShowProgress(const void * arg,
        }
        break;
 
+    case RPMCALLBACK_INST_STOP:
+       break;
+
     case RPMCALLBACK_TRANS_PROGRESS:
     case RPMCALLBACK_INST_PROGRESS:
        if (flags & INSTALL_PERCENT)
index fdbb05c..b82a06d 100644 (file)
@@ -451,6 +451,7 @@ static int initModule(PyObject *m)
     REGISTER_ENUM(RPMCALLBACK_SCRIPT_ERROR);
     REGISTER_ENUM(RPMCALLBACK_SCRIPT_START);
     REGISTER_ENUM(RPMCALLBACK_SCRIPT_STOP);
+    REGISTER_ENUM(RPMCALLBACK_INST_STOP);
 
     REGISTER_ENUM(RPMPROB_BADARCH);
     REGISTER_ENUM(RPMPROB_BADOS);