Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making cmake install jx9.h so that the Jx9 API is available to users #104

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_LIST_DIR}/src)

SET(HEADERS_UNQLITE
unqlite.h
src/jx9.h
)

SET(SOURCES_UNQLITE
Expand Down
20 changes: 20 additions & 0 deletions src/jx9.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
*/
#define JX9_COPYRIGHT "Copyright (C) Symisc Systems 2012-2013, http://jx9.symisc.net/"

#ifdef __cplusplus
extern "C" {
#endif

/* Forward declaration to public objects */
typedef struct jx9_io_stream jx9_io_stream;
typedef struct jx9_context jx9_context;
Expand All @@ -104,8 +108,20 @@ typedef struct jx9_vfs jx9_vfs;
typedef struct jx9_vm jx9_vm;
typedef struct jx9 jx9;

#ifdef __cplusplus
}
#endif

#include "unqlite.h"

#ifdef __cplusplus
extern "C" {
#endif

#ifndef JX9_PRIVATE
#define JX9_PRIVATE
#endif

#if !defined( UNQLITE_ENABLE_JX9_HASH_FUNC )
#define JX9_DISABLE_HASH_FUNC
#endif /* UNQLITE_ENABLE_JX9_HASH_FUNC */
Expand Down Expand Up @@ -459,4 +475,8 @@ JX9_PRIVATE const char * jx9_lib_signature(void);
/*JX9_PRIVATE const char * jx9_lib_ident(void);*/
/*JX9_PRIVATE const char * jx9_lib_copyright(void);*/

#ifdef __cplusplus
}
#endif

#endif /* _JX9H_ */