Added gphFindParse(), which takes a string length parameter.

This is useful for hash lookups while parsing a const string, to avoid
 having to copy and nil-terminate it.
This commit is contained in:
Andrew Johnson
2012-04-27 13:21:33 -04:00
committed by Michael Davidsaver
parent 68dfeb76c0
commit 0ab891fca4
2 changed files with 18 additions and 10 deletions
+3 -1
View File
@@ -5,7 +5,7 @@
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
* in file LICENSE that is included with this distribution.
\*************************************************************************/
/* $Revision-Id$ */
/* Author: Marty Kraimer Date: 04-07-94 */
@@ -37,6 +37,8 @@ epicsShareFunc void epicsShareAPI
gphInitPvt(struct gphPvt **ppvt, int tableSize);
epicsShareFunc GPHENTRY * epicsShareAPI
gphFind(struct gphPvt *pvt, const char *name, void *pvtid);
epicsShareFunc GPHENTRY * epicsShareAPI
gphFindParse(struct gphPvt *pvt, const char *name, size_t len, void *pvtid);
epicsShareFunc GPHENTRY * epicsShareAPI
gphAdd(struct gphPvt *pvt, const char *name, void *pvtid);
epicsShareFunc void epicsShareAPI