]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: Rename pakfire_step_type to pakfire_step_type_t
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 14 Jan 2018 16:33:01 +0000 (17:33 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 14 Jan 2018 16:33:01 +0000 (17:33 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/include/pakfire/step.h
src/libpakfire/step.c
src/libpakfire/transaction.c

index 7e659c4d8f7c3fa8fc6a05f90f4e99d2100738da..6e7611e0330846296bf63483c7ba21070a209899 100644 (file)
@@ -34,13 +34,13 @@ typedef enum _pakfire_step_types {
        PAKFIRE_STEP_UPGRADE,
        PAKFIRE_STEP_DOWNGRADE,
        PAKFIRE_STEP_OBSOLETE,
-} pakfire_step_type;
+} pakfire_step_type_t;
 
 PakfireStep pakfire_step_create(PakfireTransaction transaction, Id id);
 void pakfire_step_free(PakfireStep step);
 
 PakfirePackage pakfire_step_get_package(PakfireStep step);
-pakfire_step_type pakfire_step_get_type(PakfireStep step);
+pakfire_step_type_t pakfire_step_get_type(PakfireStep step);
 const char* pakfire_step_get_type_string(PakfireStep step);
 
 unsigned long long pakfire_step_get_downloadsize(PakfireStep step);
index eb893c530578c832f462485375fbdaa3493ad393..ed90cc5fd23aca79fa3d3eb15deee2a7d4acb2e9 100644 (file)
@@ -54,7 +54,7 @@ PAKFIRE_EXPORT PakfirePackage pakfire_step_get_package(PakfireStep step) {
        return pakfire_package_create(step->pool, step->id);
 }
 
-PAKFIRE_EXPORT pakfire_step_type pakfire_step_get_type(PakfireStep step) {
+PAKFIRE_EXPORT pakfire_step_type_t pakfire_step_get_type(PakfireStep step) {
        Transaction* trans = pakfire_transaction_get_transaction(step->transaction);
 
        int type = transaction_type(trans, step->id,
@@ -92,7 +92,7 @@ PAKFIRE_EXPORT pakfire_step_type pakfire_step_get_type(PakfireStep step) {
 }
 
 PAKFIRE_EXPORT const char* pakfire_step_get_type_string(PakfireStep step) {
-       pakfire_step_type type = pakfire_step_get_type(step);
+       pakfire_step_type_t type = pakfire_step_get_type(step);
 
        switch(type) {
                case PAKFIRE_STEP_INSTALL:
@@ -155,7 +155,7 @@ PAKFIRE_EXPORT long pakfire_step_get_installsizechange(PakfireStep step) {
        PakfirePackage pkg = pakfire_step_get_package(step);
        int installsize = pakfire_package_get_installsize(pkg);
 
-       pakfire_step_type type = pakfire_step_get_type(step);
+       pakfire_step_type_t type = pakfire_step_get_type(step);
        switch (type) {
                case PAKFIRE_STEP_IGNORE:
                case PAKFIRE_STEP_ERASE:
@@ -225,7 +225,7 @@ static int pakfire_step_erase(PakfireStep step) {
 }
 
 PAKFIRE_EXPORT int pakfire_step_run(PakfireStep step, const pakfire_action_type action) {
-       pakfire_step_type type = pakfire_step_get_type(step);
+       pakfire_step_type_t type = pakfire_step_get_type(step);
 
        // Get the package
        PakfirePackage pkg = pakfire_step_get_package(step);
index 2f4823b865e3b2424251e30f92d5664020914691..3ab9d0b1f1b8ac5e32f9f6651701c0be47fd9266 100644 (file)
@@ -206,7 +206,7 @@ static void pakfire_transaction_add_separator(char** str, size_t width) {
 }
 
 static size_t pakfire_transaction_add_section(char** str, size_t width, PakfireTransaction transaction,
-               const char* headline, pakfire_step_type type) {
+               const char* headline, pakfire_step_type_t type) {
        PakfirePackageList list = pakfire_transaction_get_packages(transaction, type);
 
        // Nothing to do if there are no packages in this stage