9f5f5246aa
Added required mask per plugin to shorten check loop. Trivial test change. [src/db/chfPlugin.c src/db/test/chfPluginTest.c]
Ralph LangeandMichael Davidsaver2012-04-27 13:21:52 -04:00
52c6eaa848
Refactor: get rid of ...Ctx (as Ctx is often used for user handles) [src/db/chfPlugin.c]
Ralph LangeandMichael Davidsaver2012-04-27 13:21:52 -04:00
de134ea72d
Added chfPlugin, a simple interface for channel filter plugins. - chfPlugin.h contains the simple jump table and doxygen documentation - chfPlugin.c is a wrapper library around the yajl callbacks that parses any client-supplied configuration into the user's structure - test/chfPluginTest.c tests the library and the data conversion
Michael Davidsaver2012-04-27 13:21:51 -04:00
d22b719e32
Changed the structure for channel filters and channel filter plugins. - Made chFilterPlugin public (moved from dbChannel.c to dbChannel.h) - Made the interface jump table chFilterIf part of the chFilterPlugin (i.e. once per plugin) instead of chFilter (once per instance) - Added a pointer from chFilter (instance) to chFilterPlugin (plugin) - Added a private user pointer in chFilterPlugin - Changed dbFindFilter() to return a chFilterPlugin* (instead of the jump table) - Changed dbRegisterFilter() to accept a user private pointer as 3rd arg
Ralph LangeandMichael Davidsaver2012-04-27 13:21:50 -04:00
4ef35a5f5c
Move recGblInitConstantLink() functionality into dbLink.c Using dbFastPutConvert for string to number conversion.
Andrew JohnsonandMichael Davidsaver2012-04-27 13:21:48 -04:00
74b24bbe0f
Refactor link handling code (incomplete). * Moved routines into dbLink.h and dbLink.c * Created separate routines for DB_LINK processing * Added dbinitLink() and dbAddLink() * Started a Link Support Entry Table, not used yet * Everything should still work as before...
Michael Davidsaver2012-04-27 13:21:47 -04:00
4c2eba502a
Rename dbChannelData() to dbChannelField() dbChannel_get() now uses dbChannelGetField() dbChannel_put() now uses dbChannelPutField() Conflicts:
Michael Davidsaver2012-04-27 13:21:43 -04:00
8bf53d3c59
Replaced dbAddr with dbChannel in all CA-server related code * Routines with a db_access interface are named dbChannel_xxx * Using dbch for member variable names in Jeff's code
Michael Davidsaver2012-04-27 13:21:41 -04:00
56468b684e
Extended functionality of dbChannel code: * Deleted the chan->magic member and associated checks. * Moved rset->cvt_dbaddr() call into dbChannelCreate() * Added many accessor routines * Renamed dbChannelReport() to dbChannelShow() and added dbChannelFilterShow()
Andrew JohnsonandMichael Davidsaver2012-04-27 13:21:41 -04:00
4324ffd274
Various improvements: * A filter's parse routines now return a parse_result (enum) * Return value from test filter parse routines is configurable * Either call parse_end() or parse_abort(), but never both.
Andrew JohnsonandMichael Davidsaver2012-04-27 13:21:40 -04:00
eee5a28983
Integrated dbChannel more and extended its functionality: * Register filters in pdbbase, using a list and gphash * Do record and field search first * Test loads a DBD/DB file to provide a record to find
Michael Davidsaver2012-04-27 13:21:39 -04:00
0ab891fca4
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.
Andrew JohnsonandMichael Davidsaver2012-04-27 13:21:33 -04:00
68dfeb76c0
Adding dbChannel JSON parser and test files. Passes 33 tests.
Michael Davidsaver2012-04-27 13:21:32 -04:00
625a7adc69
Add Lloyd Hilaiel's Yet Another JSON Library v 1.05 to libCom. This is BSD licensed, modified only enough to build under EPICS.
Andrew JohnsonandMichael Davidsaver2012-04-27 13:21:29 -04:00
46e723575e
dbtools: This is Ben's version of msi.c that implements global {} and restores the variable scope for every instantiation of the teplate. He's now having second thoughts on the design though, so this might be not useful.
Andrew Johnson2010-09-08 16:56:13 -05:00
177a9f89c8
dbtools: Merged Ralph's msi-join branch, adds msi to Base.
Andrew Johnson2010-08-25 16:56:22 -05:00
ac32658bf4
dbtools: Added another possibility for pattern_substitutions rule.
Andrew Johnson2010-08-25 13:21:24 -05:00
e2464c8572
Implemented "global" variables in substitution files.
Andrew Johnson2010-08-24 19:01:19 -05:00
6b6de69f1d
build: Point default MSI to the base version.
Ralph Lange2010-08-23 15:08:24 -04:00
52f4c8ae8f
dbtools: shuffle files towards a reasonable layout, keep test files in test dir
Ralph Lange2010-08-23 14:48:43 -04:00
2a19c5f0b8
dbtools: Join msi repository into ../src/dbtools
Ralph Lange2010-08-23 14:36:23 -04:00
4a637c04cf
dbtools: Added command-line variable parameters.
Andrew Johnson2010-08-20 17:59:38 -05:00
75bdfc185e
Honor MS/MSS/MSI flags and fetches timestamps properly too.
Andrew Johnson2010-01-08 17:15:03 -06:00
f7d02cc2a8
Convert INST_IO links to regular PV_LINK types, for VDCT support. Added new PN_LINK type in link.h, make dbStaticLib display it. Made all device support extended so links can be changed at runtime. Modified startup so add_record() always called before regular link processing. Incomplete, stilll need to add MS/MSS/MSI support, currently disabled.
Andrew Johnson2010-01-07 23:48:49 -06:00
0af48f5a29
Alarm filter changes by Bernd Schoeneburg Algorithm by Eric Norum. Developed at the 2009 EPICS Codeathon.
Andrew Johnson2010-01-06 16:05:49 -06:00