I'm currently sitting on a series of patches that move a few of
libreswan's non linux-kernel specific declarations to include/,
namely:

- err_t -> include/err.h (but it should just go away)
- ip_address -> include/ip_address.h (others?) (I wish it was called
ip_endpoint - per IKEv2 - but that's another story)
- PRINTF_LIKE et.al. -> include/lswcdefs.h (blame sys/cdefs.h)
- ckaid_t -> include/ckaid.h

but there's a catch (isn't there always).  The klips linux-kernel
module still needs at least some of these declarations to be visible,
consequently:

- include/ gets added to klips linux-kernel module's build path
- *linux*/include/libreswan.h includes the new headers to keep that code happy

presumably, a long term goal is to only include the linux-kernel
specific libreswan.h header in linux kernel specific code.  Right?

Andrew (mumbling something about post 3.24)
_______________________________________________
Swan-dev mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-dev

Reply via email to