-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement an enterprise-edition extension hook for
index
(#34)
Signed-off-by: Juan Cruz Viotti <[email protected]>
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef SOURCEMETA_REGISTRY_ENTERPRISE_INDEX_H_ | ||
#define SOURCEMETA_REGISTRY_ENTERPRISE_INDEX_H_ | ||
|
||
#include <sourcemeta/jsontoolkit/json.h> | ||
|
||
#include <cstdlib> // EXIT_SUCCESS | ||
#include <filesystem> // std::filesystem | ||
|
||
namespace sourcemeta::registry::enterprise { | ||
|
||
auto attach(const sourcemeta::jsontoolkit::JSON &, | ||
const std::filesystem::path &, const std::filesystem::path &) | ||
-> int { | ||
return EXIT_SUCCESS; | ||
} | ||
|
||
} // namespace sourcemeta::registry::enterprise | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
target_compile_definitions(schema_registry_index PRIVATE SOURCEMETA_REGISTRY_ENTERPRISE) | ||
|
||
cmake_path(GET CMAKE_CURRENT_LIST_FILE PARENT_PATH ENTERPRISE_SOURCE_DIR) | ||
target_sources(schema_registry_index PRIVATE "${ENTERPRISE_SOURCE_DIR}/enterprise_index.h") | ||
target_include_directories(schema_registry_index PRIVATE "${ENTERPRISE_SOURCE_DIR}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters