aboutsummaryrefslogtreecommitdiff
path: root/include/wheel.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-07-30 13:23:46 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-07-30 13:23:46 -0400
commit9cf661ddd274b51802635322fa9e3bac82833c15 (patch)
tree69f45feeaec4386b94e543fb03df41c7da8314f4 /include/wheel.h
parent520fa9f32e0bcc9591eb882f92a185a76476838b (diff)
downloadstasis-9cf661ddd274b51802635322fa9e3bac82833c15.tar.gz
Add pattern matching mode selector to get_wheel_file()
* Adds modes WHEEL_MATCH_EXACT and WHEEL_MATCH_ANY
Diffstat (limited to 'include/wheel.h')
-rw-r--r--include/wheel.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/wheel.h b/include/wheel.h
index 94cf46a..619e0f7 100644
--- a/include/wheel.h
+++ b/include/wheel.h
@@ -6,6 +6,9 @@
#include <stdio.h>
#include "str.h"
+#define WHEEL_MATCH_EXACT 0
+#define WHEEL_MATCH_ANY 1
+
struct Wheel {
char *distribution;
char *version;
@@ -17,5 +20,5 @@ struct Wheel {
char *file_name;
};
-struct Wheel *get_wheel_file(const char *basepath, const char *name, char *to_match[]);
+struct Wheel *get_wheel_file(const char *basepath, const char *name, char *to_match[], unsigned match_mode);
#endif //STASIS_WHEEL_H