From 82385c9f1b1bab5f02243587bfc36fff775d5c38 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 18 Aug 2016 00:18:41 -0500 Subject: [PATCH] Missed a spot handling JSON_LINK field values --- src/ioc/dbStatic/dbStaticLib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ioc/dbStatic/dbStaticLib.c b/src/ioc/dbStatic/dbStaticLib.c index a09b999aa..e147374e5 100644 --- a/src/ioc/dbStatic/dbStaticLib.c +++ b/src/ioc/dbStatic/dbStaticLib.c @@ -2039,6 +2039,9 @@ char * dbGetString(DBENTRY *pdbentry) dbMsgCpy(pdbentry, ""); } break; + case JSON_LINK: + dbMsgCpy(pdbentry, plink->value.json.string); + break; case PV_LINK: case CA_LINK: case DB_LINK: { @@ -2264,6 +2267,7 @@ long dbParseLink(const char *str, short ftype, dbLinkInfo *pinfo) /* Check for braces => JSON */ if (*str == '{' && str[len-1] == '}') { + /* FIXME Parse JSON object here */ pinfo->ltype = JSON_LINK; return 0; } @@ -2333,6 +2337,7 @@ long dbParseLink(const char *str, short ftype, dbLinkInfo *pinfo) /* Link may be an array constant */ if (pstr[0] == '[' && pstr[len-1] == ']' && (strchr(pstr, ',') || strchr(pstr, '"'))) { + /* FIXME Parse JSON array here */ pinfo->ltype = CONSTANT; return 0; }