Skip to content

Commit fc11a3a

Browse files
committed
Move public headers to svs/runtime subdir
1 parent b2c61ba commit fc11a3a

16 files changed

+30
-22
lines changed

bindings/cpp/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ project(svs_runtime VERSION 0.0.10 LANGUAGES CXX)
1717
set(TARGET_NAME svs_runtime)
1818

1919
set(SVS_RUNTIME_HEADERS
20-
include/version.h
21-
include/IndexSVSImplDefs.h
22-
include/training.h
23-
include/vamana_index.h
24-
include/dynamic_vamana_index.h
25-
include/flat_index.h
20+
include/svs/runtime/version.h
21+
include/svs/runtime/api_defs.h
22+
include/svs/runtime/training.h
23+
include/svs/runtime/vamana_index.h
24+
include/svs/runtime/dynamic_vamana_index.h
25+
include/svs/runtime/flat_index.h
2626
)
2727

2828
set(SVS_RUNTIME_SOURCES
2929
src/svs_runtime_utils.h
3030
src/dynamic_vamana_index_impl.h
3131
src/flat_index_impl.h
32-
src/IndexSVSImplDefs.cpp
32+
src/api_defs.cpp
3333
src/training.cpp
3434
src/vamana_index.cpp
3535
src/dynamic_vamana_index.cpp

bindings/cpp/include/IndexSVSImplDefs.h renamed to bindings/cpp/include/svs/runtime/api_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#pragma once
1818

19-
#include "version.h"
19+
#include <svs/runtime/version.h>
2020

2121
#include <cstdint>
2222
#include <span>

bindings/cpp/include/dynamic_vamana_index.h renamed to bindings/cpp/include/svs/runtime/dynamic_vamana_index.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
*/
1616

1717
#pragma once
18-
#include "IndexSVSImplDefs.h"
19-
#include "training.h"
20-
#include "vamana_index.h"
18+
#include <svs/runtime/api_defs.h>
19+
#include <svs/runtime/training.h>
20+
#include <svs/runtime/vamana_index.h>
2121

2222
#include <cstddef>
2323
#include <istream>

bindings/cpp/include/flat_index.h renamed to bindings/cpp/include/svs/runtime/flat_index.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
#pragma once
18-
#include "IndexSVSImplDefs.h"
18+
#include <svs/runtime/api_defs.h>
1919

2020
#include <cstddef>
2121
#include <istream>

bindings/cpp/include/training.h renamed to bindings/cpp/include/svs/runtime/training.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
#pragma once
18-
#include "IndexSVSImplDefs.h"
18+
#include <svs/runtime/api_defs.h>
1919

2020
#include <cstddef>
2121
#include <istream>

bindings/cpp/include/vamana_index.h renamed to bindings/cpp/include/svs/runtime/vamana_index.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
#pragma once
18-
#include "IndexSVSImplDefs.h"
18+
#include <svs/runtime/api_defs.h>
1919

2020
#include <cstddef>
2121

File renamed without changes.

bindings/cpp/src/IndexSVSImplDefs.cpp renamed to bindings/cpp/src/api_defs.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "IndexSVSImplDefs.h"
17+
#include <svs/runtime/api_defs.h>
18+
1819
#include <cassert>
1920
#include <cstring>
2021

bindings/cpp/src/dynamic_vamana_index.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "dynamic_vamana_index.h"
17+
#include <svs/runtime/dynamic_vamana_index.h>
18+
1819
#include "dynamic_vamana_index_impl.h"
1920
#include "svs_runtime_utils.h"
2021

bindings/cpp/src/dynamic_vamana_index_impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616

1717
#pragma once
1818

19-
#include "dynamic_vamana_index.h"
2019
#include "svs_runtime_utils.h"
2120
#include "training_impl.h"
2221

22+
#include <svs/runtime/dynamic_vamana_index.h>
23+
2324
#include <algorithm>
2425
#include <memory>
2526
#include <variant>

0 commit comments

Comments
 (0)