From 4ef66d99bba1de3ec73205aa2a97fcdf5cc9bede Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 19 Jun 2013 11:29:04 +0200 Subject: [PATCH] Drop requirement of confuse header for the public API; it's only used by libxbps. --- include/xbps_api.h.in | 5 ++++- include/xbps_api_impl.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/xbps_api.h.in b/include/xbps_api.h.in index d0109319..a39e3ab2 100644 --- a/include/xbps_api.h.in +++ b/include/xbps_api.h.in @@ -33,7 +33,6 @@ #include #include #include -#include /** * @file include/xbps_api.h @@ -430,6 +429,10 @@ struct xbps_unpack_cb_data { bool entry_is_conf; }; +#ifndef LIBXBPS_PRIVATE +typedef void *cfg_t; +#endif + /** * @struct xbps_handle xbps_api.h "xbps_api.h" * @brief Generic XBPS structure handler for initialization. diff --git a/include/xbps_api_impl.h b/include/xbps_api_impl.h index 86743581..b26e9be2 100644 --- a/include/xbps_api_impl.h +++ b/include/xbps_api_impl.h @@ -32,6 +32,8 @@ #endif #include +#include +#define LIBXBPS_PRIVATE #include /* * By default all public functions have default visibility, unless