' Newline-delimited JSON constants and optional stream declarations.
#IF NOT %DEF(PBX_NDJSON_PBI)
#DEFINE PBX_NDJSON_PBI
CONST NDJSON_MIME = "application/x-ndjson"
CONST NDJSON_LINE_LF = "\n"
CONST NDJSON_LINE_CRLF = "\r\n"
DECLARE FUNCTION PBXNdjson_ReadNext LIB "pbxjson64.dll" ALIAS "PBXNdjson_ReadNext" (BYVAL hReader AS QUAD, BYVAL phDoc AS QUAD) AS LONG
DECLARE FUNCTION PBXNdjson_WriteDoc LIB "pbxjson64.dll" ALIAS "PBXNdjson_WriteDoc" (BYVAL hWriter AS QUAD, BYVAL hDoc AS QUAD, BYVAL flags AS DWORD) AS LONG
#ENDIF
