diff options
| author | kx <kx@radix-linux.su> | 2026-10-09 18:00:15 +0300 |
|---|---|---|
| committer | kx <kx@radix-linux.su> | 2026-10-09 18:00:15 +0300 |
| commit | 065da3509019b15dd0e678072e6be629e5330bef (patch) | |
| tree | 69c934c9e786ac048b4fbe8f4c4c5571661521f4 /utils/mcpu-library-search.h | |
| parent | d130fe27fa753be02ed76fd9b277aa3c3d928eb9 (diff) | |
| download | libmcpu-0.4.0.tar.xz | |
Version 0.4.00.4.0
Diffstat (limited to 'utils/mcpu-library-search.h')
| -rw-r--r-- | utils/mcpu-library-search.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/utils/mcpu-library-search.h b/utils/mcpu-library-search.h new file mode 100644 index 0000000..66331a6 --- /dev/null +++ b/utils/mcpu-library-search.h @@ -0,0 +1,29 @@ +#ifndef __MCPU_LIBRARY_SEARCH_H__ +#define __MCPU_LIBRARY_SEARCH_H__ 1 + +#include <stddef.h> + +typedef struct mcpu_library_search mcpu_library_search; +struct mcpu_library_search +{ + char **directory; + size_t count; + size_t capacity; +}; + +void mcpu_library_search_init( mcpu_library_search *search ); +void mcpu_library_search_free( mcpu_library_search *search ); +int mcpu_library_search_add_directory( mcpu_library_search *search, + const char *directory ); +int mcpu_library_search_add_list( mcpu_library_search *search, + const char *list ); +int mcpu_library_search_resolve( const mcpu_library_search *search, + const char *system_directory, + const char *name, char **resolved ); +int mcpu_library_search_resolve_alternatives( + const mcpu_library_search *search, + const char *system_directory, + const char *const *names, size_t name_count, + char **resolved, size_t *selected_index ); + +#endif /* __MCPU_LIBRARY_SEARCH_H__ */ |
