irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

rsRe.cpp
Go to the documentation of this file.
1 
4 /* rsRe.c - Routines for Server interfacing to the Rule Engine
5  */
6 
7 #include "rsGlobalExtern.hpp"
8 #include "reGlobalsExtern.hpp"
9 #include "reconstants.hpp"
10 #include "configuration.hpp"
11 #include "reFuncDefs.hpp"
12 #include "irods_re_plugin.hpp"
13 #include "irods_re_structs.hpp"
14 
15 /* initialize the Rule Engine if it hasn't been done yet */
16 int
17 initRuleEngine( const char* inst_name, rsComm_t *svrComm, const char *ruleSet, const char *dvmSet, const char* fnmSet ) {
18  int status;
19  status = initRuleStruct( inst_name, svrComm, ruleSet, dvmSet, fnmSet );
20 
21  return status;
22 }
23 
24 /* clearCoreRule - clear the core rules. Code copied from msiAdmAddAppRuleStruct
25  *
26  */
27 int
29  int i;
30 
31  i = unlinkFuncDescIndex();
32  if ( i < 0 ) {
33  return i;
34  }
36  if ( i < 0 ) {
37  return i;
38  }
40  if ( i < 0 ) {
41  return i;
42  }
44  if ( i < 0 ) {
45  return i;
46  }
48 
49  if ( i < 0 ) {
50  return i;
51  }
52 
53  return i;
54 
55 }
rsComm_t
Definition: rcConnect.h:145
coreRuleFuncMapDef
rulefmapdef_t coreRuleFuncMapDef
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:49
RESC_CORE_RULE_SET
#define RESC_CORE_RULE_SET
Definition: configuration.hpp:12
clearCoreRule
int clearCoreRule()
Definition: rsRe.cpp:28
configuration.hpp
reGlobalsExtern.hpp
coreRuleVarDef
rulevardef_t coreRuleVarDef
Definition: libirods_rule_engine_plugin-irods_rule_language.cpp:48
irods_re_plugin.hpp
rsGlobalExtern.hpp
generateFunctionDescriptionTables
int generateFunctionDescriptionTables()
Definition: configuration.cpp:267
irods.pypyodbc.status
status
Definition: pypyodbc.py:467
clearResources
int clearResources(int resources)
Definition: configuration.cpp:169
initRuleEngine
int initRuleEngine(const char *inst_name, rsComm_t *svrComm, const char *ruleSet, const char *dvmSet, const char *fnmSet)
Definition: rsRe.cpp:17
unlinkFuncDescIndex
int unlinkFuncDescIndex()
Definition: configuration.cpp:298
reconstants.hpp
clearFuncMapStruct
int clearFuncMapStruct(rulefmapdef_t *inRuleFuncMapDef)
Definition: nre.reLib1.cpp:776
irods_re_structs.hpp
clearDVarStruct
int clearDVarStruct(rulevardef_t *inRuleVarDef)
Definition: nre.reLib1.cpp:759
initRuleStruct
int initRuleStruct(const char *inst_name, rsComm_t *svrComm, const char *ruleSet, const char *dvmSet, const char *fnmSet)
Definition: nre.reLib1.cpp:325
reFuncDefs.hpp
RESC_CORE_FUNC_DESC_INDEX
#define RESC_CORE_FUNC_DESC_INDEX
Definition: configuration.hpp:16
ruleSet
Definition: restructs.hpp:282