mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
vici: Don't include-depend on libstrongswan for boolean types
As we want to avoid the libstrongswan include dependencies for libvici, avoid the use of the bool type. Unfortunately this change may break the ABI for vici_dump(). As this function is mostly for debugging purposes, we do it nonetheless; my apologies if somebody already relies on the ABI stability of that function.
This commit is contained in:
parent
6f55149335
commit
046b547a37
@ -438,7 +438,7 @@ void vici_free_req(vici_req_t *req)
|
||||
free(req);
|
||||
}
|
||||
|
||||
int vici_dump(vici_res_t *res, char *label, bool pretty, FILE *out)
|
||||
int vici_dump(vici_res_t *res, char *label, int pretty, FILE *out)
|
||||
{
|
||||
if (res->message->dump(res->message, label, pretty, out))
|
||||
{
|
||||
|
@ -75,8 +75,6 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <utils/utils.h>
|
||||
|
||||
/**
|
||||
* Opaque vici connection contex.
|
||||
*/
|
||||
@ -284,7 +282,7 @@ void vici_free_req(vici_req_t *req);
|
||||
* @param out FILE to dump to
|
||||
* @return 0 if dumped complete message, 1 on error
|
||||
*/
|
||||
int vici_dump(vici_res_t *res, char *label, bool pretty, FILE *out);
|
||||
int vici_dump(vici_res_t *res, char *label, int pretty, FILE *out);
|
||||
|
||||
/**
|
||||
* Parse next element from a vici response message.
|
||||
|
Loading…
x
Reference in New Issue
Block a user