Skip to content

Commit

Permalink
Inline the runtime loader header into runtime.h (#831)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored Oct 4, 2024
1 parent 64af701 commit ee129bf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 21 deletions.
3 changes: 1 addition & 2 deletions src/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ noa_library(NAMESPACE sourcemeta PROJECT jsonbinpack NAME runtime
PRIVATE_HEADERS
decoder.h decoder_basic.h
encoder.h encoder_basic.h encoder_context.h
plan.h plan_wrap.h loader.h
varint.h
plan.h plan_wrap.h varint.h
SOURCES loader.cc loader_v1.h)

if(JSONBINPACK_INSTALL)
Expand Down
13 changes: 12 additions & 1 deletion src/runtime/include/sourcemeta/jsonbinpack/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,20 @@
/// #include <sourcemeta/jsonbinpack/runtime.h>
/// ```

#include "runtime_export.h"

#include <sourcemeta/jsontoolkit/json.h>

#include <sourcemeta/jsonbinpack/runtime_decoder.h>
#include <sourcemeta/jsonbinpack/runtime_encoder.h>
#include <sourcemeta/jsonbinpack/runtime_loader.h>
#include <sourcemeta/jsonbinpack/runtime_plan.h>

namespace sourcemeta::jsonbinpack {

/// @ingroup runtime
SOURCEMETA_JSONBINPACK_RUNTIME_EXPORT
auto load(const sourcemeta::jsontoolkit::JSON &input) -> Plan;

} // namespace sourcemeta::jsonbinpack

#endif
17 changes: 0 additions & 17 deletions src/runtime/include/sourcemeta/jsonbinpack/runtime_loader.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/runtime/loader.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <sourcemeta/jsonbinpack/runtime_loader.h>
#include <sourcemeta/jsonbinpack/runtime.h>

#include "loader_v1.h"

Expand Down

0 comments on commit ee129bf

Please sign in to comment.