]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
execute: Add flags to the environment
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jul 2022 09:11:04 +0000 (09:11 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jul 2022 09:11:04 +0000 (09:11 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/execute.c

index 344c0ebf435263bb9cd10536e1cc6f6abe3d6356..e3fc3caf80eba07330cfa2cb02390f6791d66823 100644 (file)
@@ -65,6 +65,11 @@ static const struct environ {
 
 struct pakfire_execute {
        struct pakfire* pakfire;
+
+       // Flags
+       int flags;
+
+       // Environment
        const char** argv;
        char* envp[ENVIRON_SIZE];
 
@@ -651,6 +656,7 @@ PAKFIRE_EXPORT int pakfire_execute(struct pakfire* pakfire, const char* argv[],
 
        struct pakfire_execute env = {
                .pakfire = pakfire,
+               .flags = flags,
                .argv = argv,
        };