3a6044a44b
This is just a cleaner arrangement to make the separation more explicit. It also matches what most other wrapper crates do. One advantage of this is that we can tell cbindgen directly that we don't want it to ever export symbols from `libdnf-sys`. Related discussions in: https://github.com/coreos/rpm-ostree/pull/2047
21 lines
921 B
TOML
21 lines
921 B
TOML
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
|
|
language = "C"
|
|
header = "#pragma once\n#include <gio/gio.h>\ntypedef GError RORGError;\ntypedef GHashTable RORGHashTable;\ntypedef GPtrArray RORGPtrArray;"
|
|
trailer = """
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(RORTreefile, ror_treefile_free)
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(RORHistoryCtx, ror_history_ctx_free)
|
|
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(RORHistoryEntry, ror_history_entry_clear)
|
|
"""
|
|
|
|
[export]
|
|
prefix = "ROR"
|
|
# Here we exclude functions belonging to the C side which we use on the Rust side and so
|
|
# doesn't make sense to re-export.
|
|
exclude = ["rpmostree_get_repodata_chksum_repr"]
|
|
|
|
[parse]
|
|
# We don't want cbindgen to parse libdnf-sys, since we're clients of the library, not
|
|
# providers. This should already be guaranteed by `parse_deps` being `false`, but include
|
|
# this here too to be explicit.
|
|
exclude = ["libdnf-sys"]
|