aboutsummaryrefslogtreecommitdiff
path: root/include/wheel.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-12-11 09:30:07 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-12-11 09:45:04 -0500
commit4fd92ec6b203d6b94b9e9f9531fd60a65736e810 (patch)
tree2b5be989ca839bd97f55f40605e23d7019397be7 /include/wheel.h
parent1bec4776252cec88ec3336602c0c477c20a1292f (diff)
downloadstasis-4fd92ec6b203d6b94b9e9f9531fd60a65736e810.tar.gz
Restructure projectdelivery-lib
* Move headers to relevant include directories within the target tree(s) * Adjust doxygen configuration to search correct paths * Adjust CMake configuration to use new include paths
Diffstat (limited to 'include/wheel.h')
-rw-r--r--include/wheel.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/include/wheel.h b/include/wheel.h
deleted file mode 100644
index 1a689e9..0000000
--- a/include/wheel.h
+++ /dev/null
@@ -1,36 +0,0 @@
-//! @file wheel.h
-#ifndef STASIS_WHEEL_H
-#define STASIS_WHEEL_H
-
-#include <dirent.h>
-#include <string.h>
-#include <stdio.h>
-#include "str.h"
-#define WHEEL_MATCH_EXACT 0 ///< Match when all patterns are present
-#define WHEEL_MATCH_ANY 1 ///< Match when any patterns are present
-
-struct Wheel {
- char *distribution; ///< Package name
- char *version; ///< Package version
- char *build_tag; ///< Package build tag (optional)
- char *python_tag; ///< Package Python tag (pyXY)
- char *abi_tag; ///< Package ABI tag (cpXY, abiX, none)
- char *platform_tag; ///< Package platform tag (linux_x86_64, any)
- char *path_name; ///< Path to package on-disk
- char *file_name; ///< Name of package on-disk
-};
-
-/**
- * Extract metadata from a Python Wheel file name
- *
- * @param basepath directory containing a wheel file
- * @param name of wheel file
- * @param to_match a NULL terminated array of patterns (i.e. platform, arch, version, etc)
- * @param match_mode WHEEL_MATCH_EXACT
- * @param match_mode WHEEL_MATCH ANY
- * @return pointer to populated Wheel on success
- * @return NULL on error
- */
-struct Wheel *get_wheel_info(const char *basepath, const char *name, char *to_match[], unsigned match_mode);
-void wheel_free(struct Wheel **wheel);
-#endif //STASIS_WHEEL_H