return PAKFIRE_WALK_OK;
// Otherwise, the payload begins
- return PAKFIRE_WALK_DONE;
+ return PAKFIRE_WALK_END;
// The pakfire-format file is part of the metadata
} else if (strcmp(path, "pakfire-format") == 0) {
case '.':
return PAKFIRE_WALK_SKIP;
- // The first file that isn't metadata was found, so we can end here
+ // The first file that isn't metadata, so we are done calling the filter callback
default:
- return PAKFIRE_WALK_END;
+ return PAKFIRE_WALK_DONE;
}
}
case PAKFIRE_WALK_OK:
break;
- case PAKFIRE_WALK_DONE:
- DEBUG(pakfire, "Filter callback sent DONE\n");
+ case PAKFIRE_WALK_END:
+ DEBUG(pakfire, "Filter callback sent END\n");
return 0;
case PAKFIRE_WALK_SKIP:
DEBUG(pakfire, "Filter callback sent SKIP\n");
continue;
- case PAKFIRE_WALK_END:
- DEBUG(pakfire, "Filter callback sent END\n");
+ case PAKFIRE_WALK_DONE:
+ DEBUG(pakfire, "Filter callback sent DONE\n");
// Clear the callback function
filter_callback = NULL;
PAKFIRE_WALK_ERROR = 1,
// After this code has been sent, we will not process any further entries
- PAKFIRE_WALK_DONE = -10,
+ PAKFIRE_WALK_END = -10,
// Request the next entry (only in filter callback)
PAKFIRE_WALK_SKIP = -20,
// Like PAKFIRE_WALK_OK, but the callback will not be called again
- PAKFIRE_WALK_END = -30,
+ PAKFIRE_WALK_DONE = -30,
};
int pakfire_walk(struct pakfire* pakfire, struct archive* archive,