Skip to content

Commit

Permalink
[swig] Bindings for libdnf5::utils::[is_glob_pattern | is_file_pattern]
Browse files Browse the repository at this point in the history
libdnf5::utils::is_glob_pattern and libdnf5::utils::is_file_pattern are
C++ public API functions.

Adds a new "utils" module to the bindings.
  • Loading branch information
jrohel committed Sep 30, 2024
1 parent ce289e9 commit 46658f3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ endif()


# list of all modules that will be included in libdnf5 bindings
list(APPEND SWIG_LIBDNF5_MODULES advisory base common comps conf logger repo rpm transaction plugin)
list(APPEND SWIG_LIBDNF5_MODULES advisory base common comps conf logger repo rpm transaction plugin utils)


# list of all modules that will be included in libdnf5-cli bindings
Expand Down
19 changes: 19 additions & 0 deletions bindings/libdnf5/utils.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#if defined(SWIGPYTHON)
%module(package="libdnf5") utils
#elif defined(SWIGPERL)
%module "libdnf5::utils"
#elif defined(SWIGRUBY)
%module "libdnf5/utils"
#endif

%include <std_string.i>

%include <shared.i>

%{
#include "libdnf5/utils/patterns.hpp"
%}

#define CV __perl_CV

%include "libdnf5/utils/patterns.hpp"

0 comments on commit 46658f3

Please sign in to comment.