vagrant tests eg with evhtp
This commit is contained in:
parent
efc0228f99
commit
53deedc242
8 changed files with 317 additions and 138 deletions
|
|
@ -65,6 +65,15 @@
|
|||
#include "restconf_lib.h"
|
||||
#include "restconf_api.h" /* Virtual api */
|
||||
|
||||
/* evhtp_safe_free is a macro that may not be present in a libevhtp release
|
||||
*/
|
||||
#ifndef evhtp_safe_free
|
||||
#define evhtp_safe_free(_var, _freefn) do { \
|
||||
_freefn((_var)); \
|
||||
(_var) = NULL; \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
/*! Add HTTP header field name and value to reply, evhtp specific
|
||||
* @param[in] req Evhtp http request handle
|
||||
* @param[in] name HTTP header field name
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#ifndef _RESTCONF_HANDLE_H_
|
||||
#define _RESCTONF_HANDLE_H_
|
||||
#define _RESTCONF_HANDLE_H_
|
||||
|
||||
/*
|
||||
* Prototypes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue