diff --git a/lib/json/json_internal.h b/include/spdk_internal/utf.h similarity index 98% rename from lib/json/json_internal.h rename to include/spdk_internal/utf.h index 01f700570e..9f5a680cce 100644 --- a/lib/json/json_internal.h +++ b/include/spdk_internal/utf.h @@ -31,8 +31,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SPDK_JSON_INTERNAL_H_ -#define SPDK_JSON_INTERNAL_H_ +#ifndef SPDK_UTF_H_ +#define SPDK_UTF_H_ #include "spdk/stdinc.h" @@ -41,8 +41,6 @@ #include "spdk/likely.h" #include "spdk/string.h" -#define SPDK_JSON_MAX_NESTING_DEPTH 64 - static inline bool utf8_tail(uint8_t c) { diff --git a/lib/json/json_parse.c b/lib/json/json_parse.c index efabcb1f03..ed8e4a3689 100644 --- a/lib/json/json_parse.c +++ b/lib/json/json_parse.c @@ -31,7 +31,9 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "json_internal.h" +#include "spdk_internal/utf.h" + +#define SPDK_JSON_MAX_NESTING_DEPTH 64 static int hex_value(uint8_t c) diff --git a/lib/json/json_util.c b/lib/json/json_util.c index d25c097f5e..4a9b5b405f 100644 --- a/lib/json/json_util.c +++ b/lib/json/json_util.c @@ -31,7 +31,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "json_internal.h" +#include "spdk_internal/utf.h" size_t spdk_json_val_len(const struct spdk_json_val *val) diff --git a/lib/json/json_write.c b/lib/json/json_write.c index 6c55850ae0..155463b778 100644 --- a/lib/json/json_write.c +++ b/lib/json/json_write.c @@ -31,7 +31,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "json_internal.h" +#include "spdk_internal/utf.h" struct spdk_json_write_ctx { spdk_json_write_cb write_cb;