Commit 222a7ecd authored by Ghislain MARY's avatar Ghislain MARY
Browse files

No need to prefix filenames, there is already a directory that prefixes the header file.

parent cedccbe7
......@@ -20,12 +20,19 @@
#
############################################################################
file(GLOB HEADER_FILES "bctoolbox/*.h")
if (NOT ENABLE_TESTS_COMPONENT)
list(REMOVE_ITEM HEADER_FILES bctoolbox/tester.h)
set(BCTOOLBOX_HEADER_FILES
bctoolbox/crypto.h
bctoolbox/list.h
bctoolbox/logging.h
bctoolbox/map.h
bctoolbox/port.h
bctoolbox/vfs.h
)
if(ENABLE_TESTS_COMPONENT)
list(APPEND BCTOOLBOX_HEADER_FILES bctoolbox/tester.h)
endif()
install(FILES ${HEADER_FILES}
install(FILES ${BCTOOLBOX_HEADER_FILES}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bctoolbox
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
bctoolboxdir=$(includedir)/bctoolbox
bctoolbox_HEADERS=tester.h crypto.h map.h list.h port.h logging.h bc_vfs.h
bctoolbox_HEADERS=tester.h crypto.h map.h list.h port.h logging.h vfs.h
EXTRA_DIST=$(bctoolbox_HEADERS)
/*
bc_vfs.h
vfs.h
Copyright (C) 2016 Belledonne Communications SARL
This program is free software; you can redistribute it and/or
......@@ -17,8 +17,9 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef bc_vfs_h
#define bc_vfs_h
#ifndef BCTBX_VFS_H
#define BCTBX_VFS_H
#include <fcntl.h>
#include <bctoolbox/port.h>
......@@ -203,7 +204,7 @@ BCTBX_PUBLIC off_t bctbx_file_seek(bctbx_vfs_file_t *pFile, off_t offset, int wh
/**
* Set default VFS pointer pDefault to my_vfs.
* By default, the global pointer is seet to use VFS implemnted in bc_vfs.c
* By default, the global pointer is set to use VFS implemnted in vfs.c
* @param my_vfs Pointer to a bctbx_vfs_t structure.
*/
BCTBX_PUBLIC void bctbx_vfs_set_default(bctbx_vfs_t *my_vfs);
......@@ -228,6 +229,5 @@ BCTBX_PUBLIC bctbx_vfs_t* bctbx_vfs_get_standard(void);
#endif
#endif
#endif /* BCTBX_VFS_H */
......@@ -21,10 +21,10 @@
############################################################################
set(BCTOOLBOX_C_SOURCE_FILES
bc_vfs.c
containers/list.c
logging/logging.c
utils/port.c
vfs.c
)
set(BCTOOLBOX_CXX_SOURCE_FILES containers/map.cc)
......
......@@ -2,7 +2,7 @@
lib_LTLIBRARIES=libbctoolbox.la libbctoolbox-tester.la
libbctoolbox_la_SOURCES= bc_vfs.c utils/port.c logging/logging.c containers/list.c containers/map.cc
libbctoolbox_la_SOURCES= vfs.c utils/port.c logging/logging.c containers/list.c containers/map.cc
if ENABLE_POLARSSL
......
/*
bc_vfs.c
vfs.c
Copyright (C) 2016 Belledonne Communications SARL
This program is free software; you can redistribute it and/or
......@@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "bctoolbox/bc_vfs.h"
#include "bctoolbox/vfs.h"
#include "bctoolbox/port.h"
#include "bctoolbox/logging.h"
#include <sys/types.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment