summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_conf.h
diff options
context:
space:
mode:
authorPaul Barker <paul@paulbarker.me.uk>2013-11-20 10:29:36 (EST)
committer Paul Barker <paul@paulbarker.me.uk>2013-12-17 16:00:35 (EST)
commit670879cbe91702c77da6494c2bc7102f5d014a0d (patch)
tree56cc8207684a96d0e74db6f0cc0eaaa6942504bb /libopkg/opkg_conf.h
parent93b7bcd9335071c85d0353d541d4ff72743333ea (diff)
libopkg: Drop config checks from structures in headers
Ensure that all structures are always the same size, regardless of configuration options so that applications which use libopkg don't need to be rebuilt if configuration options are changed. Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Cc: Carsten Schoenert <c.schoenert@gmail.com>
Diffstat (limited to 'libopkg/opkg_conf.h')
-rw-r--r--libopkg/opkg_conf.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/libopkg/opkg_conf.h b/libopkg/opkg_conf.h
index 75b4cd6..29b65a7 100644
--- a/libopkg/opkg_conf.h
+++ b/libopkg/opkg_conf.h
@@ -88,8 +88,10 @@ struct opkg_conf
int download_only;
char *cache;
-#ifdef HAVE_SSLCURL
- /* some options could be used by
+ /* ssl-curl options: used only when opkg is configured with
+ * '--enable-ssl-curl', otherwise always NULL or 0.
+ *
+ * some options could be used by
* wget if curl support isn't builtin
* If someone want to try...
*/
@@ -102,10 +104,11 @@ struct opkg_conf
char *ssl_ca_file;
char *ssl_ca_path;
int ssl_dont_verify_peer;
-#endif
-#ifdef HAVE_PATHFINDER
+
+ /* pathfinder options: used only when opkg is configured with
+ * '--enable-pathfinder', otherwise always NULL or 0 as above.
+ */
int check_x509_path;
-#endif
/* proxy options */
char *http_proxy;