json_internal.h: rename to utf.h and place in spdk_internal
Change-Id: I1b1f3a6c10b97c6323e52b58537293f6a6c5c56b Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/394117 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
095f4254f1
commit
0a97bd140b
@ -31,8 +31,8 @@
|
|||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SPDK_JSON_INTERNAL_H_
|
#ifndef SPDK_UTF_H_
|
||||||
#define SPDK_JSON_INTERNAL_H_
|
#define SPDK_UTF_H_
|
||||||
|
|
||||||
#include "spdk/stdinc.h"
|
#include "spdk/stdinc.h"
|
||||||
|
|
||||||
@ -41,8 +41,6 @@
|
|||||||
#include "spdk/likely.h"
|
#include "spdk/likely.h"
|
||||||
#include "spdk/string.h"
|
#include "spdk/string.h"
|
||||||
|
|
||||||
#define SPDK_JSON_MAX_NESTING_DEPTH 64
|
|
||||||
|
|
||||||
static inline bool
|
static inline bool
|
||||||
utf8_tail(uint8_t c)
|
utf8_tail(uint8_t c)
|
||||||
{
|
{
|
@ -31,7 +31,9 @@
|
|||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* 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
|
static int
|
||||||
hex_value(uint8_t c)
|
hex_value(uint8_t c)
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "json_internal.h"
|
#include "spdk_internal/utf.h"
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
spdk_json_val_len(const struct spdk_json_val *val)
|
spdk_json_val_len(const struct spdk_json_val *val)
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* 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 {
|
struct spdk_json_write_ctx {
|
||||||
spdk_json_write_cb write_cb;
|
spdk_json_write_cb write_cb;
|
||||||
|
Loading…
Reference in New Issue
Block a user