return r;
}
-PAKFIRE_EXPORT int pakfire_execute_command(struct pakfire* pakfire, const char* command, char* envp[],
- int flags, pakfire_execute_logging_callback logging_callback, void* data) {
- const char* argv[2] = {
- command, NULL,
- };
-
- return pakfire_execute(pakfire, argv, envp, flags, logging_callback, data);
-}
-
PAKFIRE_EXPORT int pakfire_execute_script(struct pakfire* pakfire, const char* script, const size_t size,
const char* args[], char* envp[], int flags, pakfire_execute_logging_callback logging_callback, void* data) {
const char* root = pakfire_get_path(pakfire);
int pakfire_execute(struct pakfire* pakfire, const char* argv[], char* envp[],
int flags, pakfire_execute_logging_callback logging_callback, void* data);
-int pakfire_execute_command(struct pakfire* pakfire, const char* command, char* envp[],
- int flags, pakfire_execute_logging_callback logging_callback, void* data);
int pakfire_execute_script(struct pakfire* pakfire, const char* script, const size_t size,
const char* args[], char* envp[], int flags, pakfire_execute_logging_callback logging_callback, void* data);