Fix C++ integration

master
Yury Kurlykov 2019-10-30 22:09:01 +10:00
parent 31c5b08f6a
commit fbe24f72d7
4 changed files with 30 additions and 4 deletions

View File

@ -1,5 +1,9 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <YeltsinDB/types.h>
@ -100,5 +104,6 @@ YDB_PageSize ydb_page_row_count_get(YDB_TablePage* page);
*/
void ydb_page_row_count_set(YDB_TablePage* page, YDB_PageSize row_count);
#ifdef __cplusplus
}
#endif

View File

@ -1,5 +1,9 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <YeltsinDB/types.h>
#include <YeltsinDB/table_page.h>
@ -148,4 +152,8 @@ YDB_Error ydb_delete_current_page(YDB_Engine* instance);
* - types.h
*
* And in some cases even [table file structure](table_file.md)
*/
*/
#ifdef __cplusplus
}
#endif

View File

@ -1,3 +1,6 @@
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
#include <string.h>
#include <YeltsinDB/constants.h>
@ -112,5 +115,7 @@ void ydb_page_row_count_set(YDB_TablePage *page, YDB_PageSize row_count) {
page->row_count = row_count;
}
#ifdef __cplusplus
}
#endif

View File

@ -1,3 +1,7 @@
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -377,3 +381,7 @@ YDB_Error ydb_delete_current_page(YDB_Engine *instance) {
return YDB_ERR_SUCCESS;
}
#ifdef __cplusplus
}
#endif