Install httpbf and make it possible to include the header in C++ code

This commit is contained in:
Olivier Goffart 2013-05-03 19:05:36 +02:00
parent 10443fc1e3
commit 8c0dbb03e1
2 changed files with 21 additions and 0 deletions

View file

@ -31,3 +31,14 @@ target_link_libraries(${HTTPBF_LIBRARY} ${NEON_LIBRARIES})
if(NOT WIN32)
add_definitions( -fPIC )
endif()
INSTALL(
TARGETS
${HTTPBF_LIBRARY}
LIBRARY DESTINATION
${LIB_INSTALL_DIR}
ARCHIVE DESTINATION
${LIB_INSTALL_DIR}
RUNTIME DESTINATION
${BIN_INSTALL_DIR}
)

View file

@ -25,6 +25,11 @@
#include <neon/ne_session.h>
#ifdef __cplusplus
extern "C" {
#endif
enum hbf_state_e {
HBF_SUCCESS,
HBF_NOT_TRANSFERED, /* never tried to transfer */
@ -99,4 +104,9 @@ const char *hbf_error_string( Hbf_State state );
*/
int hbf_fail_http_code( hbf_transfer_t *transfer );
#ifdef __cplusplus
}
#endif
#endif