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)  

msParam.h File Reference
#include "rods.h"
#include "objInfo.h"
#include "dataObjCopy.h"
#include "structFileExtAndReg.h"
#include "execCmd.h"
#include "rodsPath.h"
Include dependency graph for msParam.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MsParam
 
struct  MsParamArray
 
struct  ParsedMsKeyValStr
 
struct  ValidKeyWd
 

Macros

#define STR_MS_T   "STR_PI"
 
#define INT_MS_T   "INT_PI"
 
#define INT16_MS_T   "INT16_PI"
 
#define CHAR_MS_T   "CHAR_PI"
 
#define BUF_LEN_MS_T
 
#define STREAM_MS_T
 
#define DOUBLE_MS_T   "DOUBLE_PI"
 
#define FLOAT_MS_T   "FLOAT_PI"
 
#define BOOL_MS_T   "BOOL_PI"
 
#define DataObjInp_MS_T   "DataObjInp_PI"
 
#define DataObjCloseInp_MS_T   "DataObjCloseInp_PI"
 
#define DataObjCopyInp_MS_T   "DataObjCopyInp_PI"
 
#define DataObjReadInp_MS_T   "dataObjReadInp_PI"
 
#define DataObjWriteInp_MS_T   "dataObjWriteInp_PI"
 
#define DataObjLseekInp_MS_T   "fileLseekInp_PI"
 
#define DataObjLseekOut_MS_T   "fileLseekOut_PI"
 
#define KeyValPair_MS_T   "KeyValPair_PI"
 
#define TagStruct_MS_T   "TagStruct_PI"
 
#define CollInp_MS_T   "CollInpNew_PI"
 
#define ExecCmd_MS_T   "ExecCmd_PI"
 
#define ExecCmdOut_MS_T   "ExecCmdOut_PI"
 
#define RodsObjStat_MS_T   "RodsObjStat_PI"
 
#define VaultPathPolicy_MS_T   "VaultPathPolicy_PI"
 
#define StrArray_MS_T   "StrArray_PI"
 
#define IntArray_MS_T   "IntArray_PI"
 
#define GenQueryInp_MS_T   "GenQueryInp_PI"
 
#define GenQueryOut_MS_T   "GenQueryOut_PI"
 
#define XmsgTicketInfo_MS_T   "XmsgTicketInfo_PI"
 
#define SendXmsgInfo_MS_T   "SendXmsgInfo_PI"
 
#define GetXmsgTicketInp_MS_T   "GetXmsgTicketInp_PI"
 
#define SendXmsgInp_MS_T   "SendXmsgInp_PI"
 
#define RcvXmsgInp_MS_T   "RcvXmsgInp_PI"
 
#define RcvXmsgOut_MS_T   "RcvXmsgOut_PI"
 
#define StructFileExtAndRegInp_MS_T   "StructFileExtAndRegInp_PI"
 
#define RuleSet_MS_T   "RuleSet_PI"
 
#define RuleStruct_MS_T   "RuleStruct_PI"
 
#define DVMapStruct_MS_T   "DVMapStruct_PI"
 
#define FNMapStruct_MS_T   "FNMapStruct_PI"
 
#define MsrvcStruct_MS_T   "MsrvcStruct_PI"
 
#define NcOpenInp_MS_T   "NcOpenInp_PI"
 
#define NcInqIdInp_MS_T   "NcInqIdInp_PI"
 
#define NcInqWithIdOut_MS_T   "NcInqWithIdOut_PI"
 
#define NcInqInp_MS_T   "NcInqInp_PI"
 
#define NcInqOut_MS_T   "NcInqOut_PI"
 
#define NcCloseInp_MS_T   "NcCloseInp_PI"
 
#define NcGetVarInp_MS_T   "NcGetVarInp_PI"
 
#define NcGetVarOut_MS_T   "NcGetVarOut_PI"
 
#define NcInqOut_MS_T   "NcInqOut_PI"
 
#define NcInqGrpsOut_MS_T   "NcInqGrpsOut_PI"
 
#define Dictionary_MS_T   "Dictionary_PI"
 
#define DictArray_MS_T   "DictArray_PI"
 
#define GenArray_MS_T   "GenArray_PI"
 
#define DataObjInfo_MS_T   "DataObjInfo_PI"
 
#define MS_INP_SEP_STR   "++++" /* the separator str for msInp */
 
#define MS_NULL_STR   "null" /* no input */
 
#define RESC_NAME_FLAG   0x1
 
#define DEST_RESC_NAME_FLAG   0x2
 
#define BACKUP_RESC_NAME_FLAG   0x4
 
#define FORCE_FLAG_FLAG   0x8
 
#define ALL_FLAG   0x10
 
#define LOCAL_PATH_FLAG   0x20
 
#define VERIFY_CHKSUM_FLAG   0x40
 
#define ADMIN_FLAG   0x80
 
#define UPDATE_REPL_FLAG   0x100
 
#define REPL_NUM_FLAG   0x200
 
#define DATA_TYPE_FLAG   0x400
 
#define CHKSUM_ALL_FLAG   0x800
 
#define FORCE_CHKSUM_FLAG   0x1000
 
#define FILE_PATH_FLAG   0x2000
 
#define CREATE_MODE_FLAG   0x4000
 
#define OPEN_FLAGS_FLAG   0x8000
 
#define COLL_FLAGS_FLAG   0x10000
 
#define DATA_SIZE_FLAGS   0x20000
 
#define NUM_THREADS_FLAG   0x40000
 
#define OPR_TYPE_FLAG   0x80000
 
#define OBJ_PATH_FLAG   0x100000
 
#define COLL_NAME_FLAG   0x200000
 
#define RMTRASH_FLAG   0x400000
 
#define ADMIN_RMTRASH_FLAG   0x800000
 
#define DEF_RESC_NAME_FLAG   0x1000000
 
#define RBUDP_TRANSFER_FLAG   0x2000000
 
#define RBUDP_SEND_RATE_FLAG   0x4000000
 
#define RBUDP_PACK_SIZE_FLAG   0x8000000
 
#define BULK_OPR_FLAG   0x10000000
 
#define UNREG_FLAG   0x20000000
 

Typedefs

typedef struct MsParam msParam_t
 
typedef struct MsParamArray msParamArray_t
 
typedef struct ParsedMsKeyValStr parsedMsKeyValStr_t
 
typedef struct ValidKeyWd validKeyWd_t
 

Functions

int resetMsParam (msParam_t *msParam)
 
int clearMsParam (msParam_t *msParam, int freeStruct)
 
int addMsParam (msParamArray_t *msParamArray, const char *label, const char *packInstruct, void *inOutStruct, bytesBuf_t *inpOutBuf)
 
int addIntParamToArray (msParamArray_t *msParamArray, char *label, int inpInt)
 
int addMsParamToArray (msParamArray_t *msParamArray, const char *label, const char *type, void *inOutStruct, bytesBuf_t *inpOutBuf, int replFlag)
 
int replMsParamArray (msParamArray_t *msParamArray, msParamArray_t *outMsParamArray)
 
int replMsParam (msParam_t *msParam, msParam_t *outMsParam)
 
int replInOutStruct (void *inStruct, void **outStruct, const char *type)
 
bytesBuf_treplBytesBuf (const bytesBuf_t *in)
 
int fillMsParam (msParam_t *msParam, const char *label, const char *type, void *inOutStruct, bytesBuf_t *inpOutBuf)
 
msParam_tgetMsParamByLabel (msParamArray_t *msParamArray, const char *label)
 
msParam_tgetMsParamByType (msParamArray_t *msParamArray, const char *type)
 
int rmMsParamByLabel (msParamArray_t *msParamArray, const char *label, int freeStruct)
 
int trimMsParamArray (msParamArray_t *msParamArray, char *outParamDesc)
 
int printMsParam (msParamArray_t *msParamArray)
 
int writeMsParam (char *buf, int len, msParam_t *msParam)
 
int clearMsParamArray (msParamArray_t *msParamArray, int freeStruct)
 
void fillIntInMsParam (msParam_t *msParam, const int myInt)
 
void fillFloatInMsParam (msParam_t *msParam, const float myFloat)
 
void fillCharInMsParam (msParam_t *msParam, const char myChar)
 
void fillDoubleInMsParam (msParam_t *msParam, const rodsLong_t myDouble)
 
void fillStrInMsParam (msParam_t *msParam, const char *myStr)
 
void fillBufLenInMsParam (msParam_t *msParam, int myInt, bytesBuf_t *bytesBuf)
 
int parseMspForDataObjInp (msParam_t *inpParam, dataObjInp_t *dataObjInpCache, dataObjInp_t **outDataObjInp, int writeToCache)
 
int parseMspForCollInp (msParam_t *inpParam, collInp_t *collInpCache, collInp_t **outCollInp, int writeToCache)
 
int parseMspForCondInp (msParam_t *inpParam, keyValPair_t *condInput, char *condKw)
 
int parseMspForCondKw (msParam_t *inpParam, keyValPair_t *condInput)
 
int parseMspForPhyPathReg (msParam_t *inpParam, keyValPair_t *condInput)
 
int parseMspForPosInt (msParam_t *inpParam)
 
char * parseMspForStr (msParam_t *inpParam)
 
int parseMspForFloat (msParam_t *inpParam, float *floatout)
 
int parseMspForDouble (msParam_t *inpParam, double *doubleout)
 
int parseMspForDataObjCopyInp (msParam_t *inpParam, dataObjCopyInp_t *dataObjCopyInpCache, dataObjCopyInp_t **outDataObjCopyInp)
 
int parseMspForExecCmdInp (msParam_t *inpParam, execCmd_t *execCmdInpCache, execCmd_t **ouExecCmdInp)
 
void * getMspInOutStructByLabel (msParamArray_t *msParamArray, const char *label)
 
int getStdoutInExecCmdOut (msParam_t *inpExecCmdOut, char **outStr)
 
int getStderrInExecCmdOut (msParam_t *inpExecCmdOut, char **outStr)
 
int initParsedMsKeyValStr (char *inpStr, parsedMsKeyValStr_t *parsedMsKeyValStr)
 
int clearParsedMsKeyValStr (parsedMsKeyValStr_t *parsedMsKeyValStr)
 
int getNextKeyValFromMsKeyValStr (parsedMsKeyValStr_t *parsedMsKeyValStr)
 
int parseMsKeyValStrForDataObjInp (msParam_t *inpParam, dataObjInp_t *dataObjInp, char *hintForMissingKw, int validKwFlags, char **outBadKeyWd)
 
int chkDataObjInpKw (char *keyWd, int validKwFlags)
 
int parseMsKeyValStrForCollInp (msParam_t *inpParam, collInp_t *collInp, char *hintForMissingKw, int validKwFlags, char **outBadKeyWd)
 
int chkCollInpKw (char *keyWd, int validKwFlags)
 
int addKeyValToMspStr (msParam_t *keyStr, msParam_t *valStr, msParam_t *msKeyValStr)
 
int chkStructFileExtAndRegInpKw (char *keyWd, int validKwFlags)
 
int parseMsKeyValStrForStructFileExtAndRegInp (msParam_t *inpParam, structFileExtAndRegInp_t *structFileExtAndRegInp, char *hintForMissingKw, int validKwFlags, char **outBadKeyWd)
 
int parseMsParamFromIRFile (msParamArray_t *inpParamArray, char *inBuf)
 

Macro Definition Documentation

◆ ADMIN_FLAG

#define ADMIN_FLAG   0x80

Definition at line 115 of file msParam.h.

◆ ADMIN_RMTRASH_FLAG

#define ADMIN_RMTRASH_FLAG   0x800000

Definition at line 131 of file msParam.h.

◆ ALL_FLAG

#define ALL_FLAG   0x10

Definition at line 112 of file msParam.h.

◆ BACKUP_RESC_NAME_FLAG

#define BACKUP_RESC_NAME_FLAG   0x4

Definition at line 110 of file msParam.h.

◆ BOOL_MS_T

#define BOOL_MS_T   "BOOL_PI"

Definition at line 30 of file msParam.h.

◆ BUF_LEN_MS_T

#define BUF_LEN_MS_T
Value:
"BUF_LEN_PI" /* an integer indication the
* length of BBuf */

Definition at line 26 of file msParam.h.

◆ BULK_OPR_FLAG

#define BULK_OPR_FLAG   0x10000000

Definition at line 136 of file msParam.h.

◆ CHAR_MS_T

#define CHAR_MS_T   "CHAR_PI"

Definition at line 25 of file msParam.h.

◆ CHKSUM_ALL_FLAG

#define CHKSUM_ALL_FLAG   0x800

Definition at line 119 of file msParam.h.

◆ COLL_FLAGS_FLAG

#define COLL_FLAGS_FLAG   0x10000

Definition at line 124 of file msParam.h.

◆ COLL_NAME_FLAG

#define COLL_NAME_FLAG   0x200000

Definition at line 129 of file msParam.h.

◆ CollInp_MS_T

#define CollInp_MS_T   "CollInpNew_PI"

Definition at line 40 of file msParam.h.

◆ CREATE_MODE_FLAG

#define CREATE_MODE_FLAG   0x4000

Definition at line 122 of file msParam.h.

◆ DATA_SIZE_FLAGS

#define DATA_SIZE_FLAGS   0x20000

Definition at line 125 of file msParam.h.

◆ DATA_TYPE_FLAG

#define DATA_TYPE_FLAG   0x400

Definition at line 118 of file msParam.h.

◆ DataObjCloseInp_MS_T

#define DataObjCloseInp_MS_T   "DataObjCloseInp_PI"

Definition at line 32 of file msParam.h.

◆ DataObjCopyInp_MS_T

#define DataObjCopyInp_MS_T   "DataObjCopyInp_PI"

Definition at line 33 of file msParam.h.

◆ DataObjInfo_MS_T

#define DataObjInfo_MS_T   "DataObjInfo_PI"

Definition at line 74 of file msParam.h.

◆ DataObjInp_MS_T

#define DataObjInp_MS_T   "DataObjInp_PI"

Definition at line 31 of file msParam.h.

◆ DataObjLseekInp_MS_T

#define DataObjLseekInp_MS_T   "fileLseekInp_PI"

Definition at line 36 of file msParam.h.

◆ DataObjLseekOut_MS_T

#define DataObjLseekOut_MS_T   "fileLseekOut_PI"

Definition at line 37 of file msParam.h.

◆ DataObjReadInp_MS_T

#define DataObjReadInp_MS_T   "dataObjReadInp_PI"

Definition at line 34 of file msParam.h.

◆ DataObjWriteInp_MS_T

#define DataObjWriteInp_MS_T   "dataObjWriteInp_PI"

Definition at line 35 of file msParam.h.

◆ DEF_RESC_NAME_FLAG

#define DEF_RESC_NAME_FLAG   0x1000000

Definition at line 132 of file msParam.h.

◆ DEST_RESC_NAME_FLAG

#define DEST_RESC_NAME_FLAG   0x2

Definition at line 109 of file msParam.h.

◆ DictArray_MS_T

#define DictArray_MS_T   "DictArray_PI"

Definition at line 72 of file msParam.h.

◆ Dictionary_MS_T

#define Dictionary_MS_T   "Dictionary_PI"

Definition at line 71 of file msParam.h.

◆ DOUBLE_MS_T

#define DOUBLE_MS_T   "DOUBLE_PI"

Definition at line 28 of file msParam.h.

◆ DVMapStruct_MS_T

#define DVMapStruct_MS_T   "DVMapStruct_PI"

Definition at line 58 of file msParam.h.

◆ ExecCmd_MS_T

#define ExecCmd_MS_T   "ExecCmd_PI"

Definition at line 41 of file msParam.h.

◆ ExecCmdOut_MS_T

#define ExecCmdOut_MS_T   "ExecCmdOut_PI"

Definition at line 42 of file msParam.h.

◆ FILE_PATH_FLAG

#define FILE_PATH_FLAG   0x2000

Definition at line 121 of file msParam.h.

◆ FLOAT_MS_T

#define FLOAT_MS_T   "FLOAT_PI"

Definition at line 29 of file msParam.h.

◆ FNMapStruct_MS_T

#define FNMapStruct_MS_T   "FNMapStruct_PI"

Definition at line 59 of file msParam.h.

◆ FORCE_CHKSUM_FLAG

#define FORCE_CHKSUM_FLAG   0x1000

Definition at line 120 of file msParam.h.

◆ FORCE_FLAG_FLAG

#define FORCE_FLAG_FLAG   0x8

Definition at line 111 of file msParam.h.

◆ GenArray_MS_T

#define GenArray_MS_T   "GenArray_PI"

Definition at line 73 of file msParam.h.

◆ GenQueryInp_MS_T

#define GenQueryInp_MS_T   "GenQueryInp_PI"

Definition at line 47 of file msParam.h.

◆ GenQueryOut_MS_T

#define GenQueryOut_MS_T   "GenQueryOut_PI"

Definition at line 48 of file msParam.h.

◆ GetXmsgTicketInp_MS_T

#define GetXmsgTicketInp_MS_T   "GetXmsgTicketInp_PI"

Definition at line 51 of file msParam.h.

◆ INT16_MS_T

#define INT16_MS_T   "INT16_PI"

Definition at line 24 of file msParam.h.

◆ INT_MS_T

#define INT_MS_T   "INT_PI"

Definition at line 23 of file msParam.h.

◆ IntArray_MS_T

#define IntArray_MS_T   "IntArray_PI"

Definition at line 46 of file msParam.h.

◆ KeyValPair_MS_T

#define KeyValPair_MS_T   "KeyValPair_PI"

Definition at line 38 of file msParam.h.

◆ LOCAL_PATH_FLAG

#define LOCAL_PATH_FLAG   0x20

Definition at line 113 of file msParam.h.

◆ MS_INP_SEP_STR

#define MS_INP_SEP_STR   "++++" /* the separator str for msInp */

Definition at line 91 of file msParam.h.

◆ MS_NULL_STR

#define MS_NULL_STR   "null" /* no input */

Definition at line 92 of file msParam.h.

◆ MsrvcStruct_MS_T

#define MsrvcStruct_MS_T   "MsrvcStruct_PI"

Definition at line 60 of file msParam.h.

◆ NcCloseInp_MS_T

#define NcCloseInp_MS_T   "NcCloseInp_PI"

Definition at line 66 of file msParam.h.

◆ NcGetVarInp_MS_T

#define NcGetVarInp_MS_T   "NcGetVarInp_PI"

Definition at line 67 of file msParam.h.

◆ NcGetVarOut_MS_T

#define NcGetVarOut_MS_T   "NcGetVarOut_PI"

Definition at line 68 of file msParam.h.

◆ NcInqGrpsOut_MS_T

#define NcInqGrpsOut_MS_T   "NcInqGrpsOut_PI"

Definition at line 70 of file msParam.h.

◆ NcInqIdInp_MS_T

#define NcInqIdInp_MS_T   "NcInqIdInp_PI"

Definition at line 62 of file msParam.h.

◆ NcInqInp_MS_T

#define NcInqInp_MS_T   "NcInqInp_PI"

Definition at line 64 of file msParam.h.

◆ NcInqOut_MS_T [1/2]

#define NcInqOut_MS_T   "NcInqOut_PI"

Definition at line 69 of file msParam.h.

◆ NcInqOut_MS_T [2/2]

#define NcInqOut_MS_T   "NcInqOut_PI"

Definition at line 69 of file msParam.h.

◆ NcInqWithIdOut_MS_T

#define NcInqWithIdOut_MS_T   "NcInqWithIdOut_PI"

Definition at line 63 of file msParam.h.

◆ NcOpenInp_MS_T

#define NcOpenInp_MS_T   "NcOpenInp_PI"

Definition at line 61 of file msParam.h.

◆ NUM_THREADS_FLAG

#define NUM_THREADS_FLAG   0x40000

Definition at line 126 of file msParam.h.

◆ OBJ_PATH_FLAG

#define OBJ_PATH_FLAG   0x100000

Definition at line 128 of file msParam.h.

◆ OPEN_FLAGS_FLAG

#define OPEN_FLAGS_FLAG   0x8000

Definition at line 123 of file msParam.h.

◆ OPR_TYPE_FLAG

#define OPR_TYPE_FLAG   0x80000

Definition at line 127 of file msParam.h.

◆ RBUDP_PACK_SIZE_FLAG

#define RBUDP_PACK_SIZE_FLAG   0x8000000

Definition at line 135 of file msParam.h.

◆ RBUDP_SEND_RATE_FLAG

#define RBUDP_SEND_RATE_FLAG   0x4000000

Definition at line 134 of file msParam.h.

◆ RBUDP_TRANSFER_FLAG

#define RBUDP_TRANSFER_FLAG   0x2000000

Definition at line 133 of file msParam.h.

◆ RcvXmsgInp_MS_T

#define RcvXmsgInp_MS_T   "RcvXmsgInp_PI"

Definition at line 53 of file msParam.h.

◆ RcvXmsgOut_MS_T

#define RcvXmsgOut_MS_T   "RcvXmsgOut_PI"

Definition at line 54 of file msParam.h.

◆ REPL_NUM_FLAG

#define REPL_NUM_FLAG   0x200

Definition at line 117 of file msParam.h.

◆ RESC_NAME_FLAG

#define RESC_NAME_FLAG   0x1

Definition at line 108 of file msParam.h.

◆ RMTRASH_FLAG

#define RMTRASH_FLAG   0x400000

Definition at line 130 of file msParam.h.

◆ RodsObjStat_MS_T

#define RodsObjStat_MS_T   "RodsObjStat_PI"

Definition at line 43 of file msParam.h.

◆ RuleSet_MS_T

#define RuleSet_MS_T   "RuleSet_PI"

Definition at line 56 of file msParam.h.

◆ RuleStruct_MS_T

#define RuleStruct_MS_T   "RuleStruct_PI"

Definition at line 57 of file msParam.h.

◆ SendXmsgInfo_MS_T

#define SendXmsgInfo_MS_T   "SendXmsgInfo_PI"

Definition at line 50 of file msParam.h.

◆ SendXmsgInp_MS_T

#define SendXmsgInp_MS_T   "SendXmsgInp_PI"

Definition at line 52 of file msParam.h.

◆ STR_MS_T

#define STR_MS_T   "STR_PI"

Definition at line 22 of file msParam.h.

◆ StrArray_MS_T

#define StrArray_MS_T   "StrArray_PI"

Definition at line 45 of file msParam.h.

◆ STREAM_MS_T

#define STREAM_MS_T
Value:
"INT_PI" /* value from bindStreamToIRods.
* Caller should use rcStreamRead
* and rcStreamClose to read */

Definition at line 27 of file msParam.h.

◆ StructFileExtAndRegInp_MS_T

#define StructFileExtAndRegInp_MS_T   "StructFileExtAndRegInp_PI"

Definition at line 55 of file msParam.h.

◆ TagStruct_MS_T

#define TagStruct_MS_T   "TagStruct_PI"

Definition at line 39 of file msParam.h.

◆ UNREG_FLAG

#define UNREG_FLAG   0x20000000

Definition at line 137 of file msParam.h.

◆ UPDATE_REPL_FLAG

#define UPDATE_REPL_FLAG   0x100

Definition at line 116 of file msParam.h.

◆ VaultPathPolicy_MS_T

#define VaultPathPolicy_MS_T   "VaultPathPolicy_PI"

Definition at line 44 of file msParam.h.

◆ VERIFY_CHKSUM_FLAG

#define VERIFY_CHKSUM_FLAG   0x40

Definition at line 114 of file msParam.h.

◆ XmsgTicketInfo_MS_T

#define XmsgTicketInfo_MS_T   "XmsgTicketInfo_PI"

Definition at line 49 of file msParam.h.

Typedef Documentation

◆ msParam_t

typedef struct MsParam msParam_t

◆ msParamArray_t

typedef struct MsParamArray msParamArray_t

◆ parsedMsKeyValStr_t

◆ validKeyWd_t

typedef struct ValidKeyWd validKeyWd_t

Function Documentation

◆ addIntParamToArray()

int addIntParamToArray ( msParamArray_t msParamArray,
char *  label,
int  inpInt 
)

Definition at line 24 of file msParam.cpp.

References addMsParamToArray(), INT_MS_T, NULL, and irods.pypyodbc::status.

Referenced by initXmsgHashQue().

Here is the call graph for this function:

◆ addKeyValToMspStr()

int addKeyValToMspStr ( msParam_t keyStr,
msParam_t valStr,
msParam_t msKeyValStr 
)

Definition at line 1389 of file msParam.cpp.

References fillStrInMsParam(), MsParam::inOutStruct, MS_INP_SEP_STR, MS_NULL_STR, NULL, parseMspForStr(), SYS_INTERNAL_NULL_INPUT_ERR, and MsParam::type.

Referenced by msiAddKeyValToMspStr().

Here is the call graph for this function:

◆ addMsParam()

int addMsParam ( msParamArray_t msParamArray,
const char *  label,
const char *  packInstruct,
void *  inOutStruct,
bytesBuf_t inpOutBuf 
)

Definition at line 17 of file msParam.cpp.

References addMsParamToArray(), and type.

Referenced by appendOutputToInput(), exec_rule(), initXmsgHashQue(), msiDataObjGet(), msiDataObjPut(), msiSetGraftPathScheme(), msiSetRandomScheme(), and parseMsParamFromIRFile().

Here is the call graph for this function:

◆ addMsParamToArray()

int addMsParamToArray ( msParamArray_t msParamArray,
const char *  label,
const char *  type,
void *  inOutStruct,
bytesBuf_t inpOutBuf,
int  replFlag 
)

◆ chkCollInpKw()

int chkCollInpKw ( char *  keyWd,
int  validKwFlags 
)

◆ chkDataObjInpKw()

int chkDataObjInpKw ( char *  keyWd,
int  validKwFlags 
)

◆ chkStructFileExtAndRegInpKw()

int chkStructFileExtAndRegInpKw ( char *  keyWd,
int  validKwFlags 
)

◆ clearMsParam()

◆ clearMsParamArray()

int clearMsParamArray ( msParamArray_t msParamArray,
int  freeStruct 
)

Definition at line 447 of file msParam.cpp.

References clearMsParam(), MsParamArray::len, MsParamArray::msParam, and NULL.

Referenced by _rsCollRsync(), applyRuleForPostProcForRead(), applyRuleForPostProcForWrite(), clearMsparamInRei(), deleteMsParamArray(), exec_rule(), freeRuleExecInfoInternals(), getVaultPathPolicy(), msiDataObjGet(), msiDataObjPut(), msiDataObjRsync(), parseAndComputeExpressionAdapter(), rcDataObjRsync(), rcExecMyRule(), and remoteExec().

Here is the call graph for this function:

◆ clearParsedMsKeyValStr()

int clearParsedMsKeyValStr ( parsedMsKeyValStr_t parsedMsKeyValStr)

Definition at line 1072 of file msParam.cpp.

References ParsedMsKeyValStr::inpStr, LOG_ERROR, NULL, rodsLog(), and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by parseMsKeyValStrForCollInp(), parseMsKeyValStrForDataObjInp(), and parseMsKeyValStrForStructFileExtAndRegInp().

Here is the call graph for this function:

◆ fillBufLenInMsParam()

void fillBufLenInMsParam ( msParam_t msParam,
int  myInt,
bytesBuf_t bytesBuf 
)

◆ fillCharInMsParam()

void fillCharInMsParam ( msParam_t msParam,
const char  myChar 
)

Definition at line 269 of file msParam.cpp.

References FLOAT_MS_T, MsParam::inOutStruct, NULL, and MsParam::type.

◆ fillDoubleInMsParam()

void fillDoubleInMsParam ( msParam_t msParam,
const rodsLong_t  myDouble 
)

Definition at line 260 of file msParam.cpp.

References DOUBLE_MS_T, MsParam::inOutStruct, NULL, and MsParam::type.

◆ fillFloatInMsParam()

void fillFloatInMsParam ( msParam_t msParam,
const float  myFloat 
)

Definition at line 251 of file msParam.cpp.

References FLOAT_MS_T, MsParam::inOutStruct, NULL, and MsParam::type.

◆ fillIntInMsParam()

◆ fillMsParam()

int fillMsParam ( msParam_t msParam,
const char *  label,
const char *  type,
void *  inOutStruct,
bytesBuf_t inpOutBuf 
)

◆ fillStrInMsParam()

◆ getMsParamByLabel()

◆ getMsParamByType()

msParam_t* getMsParamByType ( msParamArray_t msParamArray,
const char *  type 
)

Definition at line 392 of file msParam.cpp.

References MsParamArray::len, MsParamArray::msParam, NULL, MsParam::type, and type.

◆ getMspInOutStructByLabel()

void* getMspInOutStructByLabel ( msParamArray_t msParamArray,
const char *  label 
)

◆ getNextKeyValFromMsKeyValStr()

int getNextKeyValFromMsKeyValStr ( parsedMsKeyValStr_t parsedMsKeyValStr)

Definition at line 1094 of file msParam.cpp.

References ParsedMsKeyValStr::curPtr, ParsedMsKeyValStr::endPtr, ParsedMsKeyValStr::kwPtr, LOG_ERROR, MS_INP_SEP_STR, MS_NULL_STR, NO_MORE_RESULT, NULL, rodsLog(), SYS_INTERNAL_NULL_INPUT_ERR, and ParsedMsKeyValStr::valPtr.

Referenced by parseMsKeyValStrForCollInp(), parseMsKeyValStrForDataObjInp(), and parseMsKeyValStrForStructFileExtAndRegInp().

Here is the call graph for this function:

◆ getStderrInExecCmdOut()

int getStderrInExecCmdOut ( msParam_t inpExecCmdOut,
char **  outStr 
)

Definition at line 1028 of file msParam.cpp.

References BytesBuf::buf, ExecCmdOut_MS_T, MsParam::inOutStruct, BytesBuf::len, LOG_ERROR, NULL, rodsLog(), ExecCmdOut::stderrBuf, SYS_INTERNAL_NULL_INPUT_ERR, MsParam::type, and USER_PARAM_TYPE_ERR.

Referenced by msiGetStderrInExecCmdOut().

Here is the call graph for this function:

◆ getStdoutInExecCmdOut()

int getStdoutInExecCmdOut ( msParam_t inpExecCmdOut,
char **  outStr 
)

Definition at line 1000 of file msParam.cpp.

References BytesBuf::buf, ExecCmdOut_MS_T, MsParam::inOutStruct, BytesBuf::len, LOG_ERROR, NULL, rodsLog(), ExecCmdOut::stdoutBuf, SYS_INTERNAL_NULL_INPUT_ERR, MsParam::type, and USER_PARAM_TYPE_ERR.

Referenced by msiGetStdoutInExecCmdOut().

Here is the call graph for this function:

◆ initParsedMsKeyValStr()

int initParsedMsKeyValStr ( char *  inpStr,
parsedMsKeyValStr_t parsedMsKeyValStr 
)

Definition at line 1056 of file msParam.cpp.

References ParsedMsKeyValStr::curPtr, ParsedMsKeyValStr::endPtr, ParsedMsKeyValStr::inpStr, LOG_ERROR, NULL, rodsLog(), and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by parseMsKeyValStrForCollInp(), parseMsKeyValStrForDataObjInp(), and parseMsKeyValStrForStructFileExtAndRegInp().

Here is the call graph for this function:

◆ parseMsKeyValStrForCollInp()

int parseMsKeyValStrForCollInp ( msParam_t inpParam,
collInp_t collInp,
char *  hintForMissingKw,
int  validKwFlags,
char **  outBadKeyWd 
)

◆ parseMsKeyValStrForDataObjInp()

◆ parseMsKeyValStrForStructFileExtAndRegInp()

◆ parseMsParamFromIRFile()

int parseMsParamFromIRFile ( msParamArray_t inpParamArray,
char *  inBuf 
)

Definition at line 1558 of file msParam.cpp.

References addMsParam(), StrArray::len, LOG_ERROR, NULL, rodsLog(), StrArray::size, splitMultiStr(), irods.pypyodbc::status, STR_MS_T, StrArray::value, and get_irods_version::value.

Here is the call graph for this function:

◆ parseMspForCollInp()

int parseMspForCollInp ( msParam_t inpParam,
collInp_t collInpCache,
collInp_t **  outCollInp,
int  writeToCache 
)

Definition at line 677 of file msParam.cpp.

References CollInp_MS_T, CollInp::collName, CollInp::condInput, MsParam::inOutStruct, LOG_ERROR, MAX_NAME_LEN, NULL, rodsLog(), rstrcpy(), STR_MS_T, SYS_INTERNAL_NULL_INPUT_ERR, MsParam::type, and USER_PARAM_TYPE_ERR.

Referenced by convertResToString(), msiCollCreate(), msiCollRepl(), and msiRmColl().

Here is the call graph for this function:

◆ parseMspForCondInp()

int parseMspForCondInp ( msParam_t inpParam,
keyValPair_t condInput,
char *  condKw 
)

Definition at line 782 of file msParam.cpp.

References addKeyVal(), MsParam::inOutStruct, LOG_ERROR, NULL, rodsLog(), STR_MS_T, MsParam::type, and USER_PARAM_TYPE_ERR.

Referenced by msiCollRsync(), msiDataObjPhymv(), msiDataObjPut(), msiDataObjRsync(), msiDataObjTrim(), and msiPhyPathReg().

Here is the call graph for this function:

◆ parseMspForCondKw()

int parseMspForCondKw ( msParam_t inpParam,
keyValPair_t condInput 
)

Definition at line 807 of file msParam.cpp.

References addKeyVal(), MsParam::inOutStruct, LOG_ERROR, NULL, rodsLog(), STR_MS_T, MsParam::type, and USER_PARAM_TYPE_ERR.

Here is the call graph for this function:

◆ parseMspForDataObjCopyInp()

int parseMspForDataObjCopyInp ( msParam_t inpParam,
dataObjCopyInp_t dataObjCopyInpCache,
dataObjCopyInp_t **  outDataObjCopyInp 
)

Definition at line 727 of file msParam.cpp.

References DataObjCopyInp_MS_T, DataObjInp_MS_T, getValByKey(), MsParam::inOutStruct, KeyValPair_MS_T, LOG_ERROR, MAX_NAME_LEN, NULL, DataObjInp::objPath, rodsLog(), rstrcpy(), DataObjCopyInp::srcDataObjInp, STR_MS_T, SYS_INTERNAL_NULL_INPUT_ERR, MsParam::type, and USER_PARAM_TYPE_ERR.

Referenced by convertResToString(), msiDataObjCopy(), and msiDataObjRename().

Here is the call graph for this function:

◆ parseMspForDataObjInp()

int parseMspForDataObjInp ( msParam_t inpParam,
dataObjInp_t dataObjInpCache,
dataObjInp_t **  outDataObjInp,
int  writeToCache 
)

◆ parseMspForDouble()

int parseMspForDouble ( msParam_t inpParam,
double *  doubleout 
)

Definition at line 943 of file msParam.cpp.

References DOUBLE_MS_T, MsParam::inOutStruct, LOG_ERROR, NULL, rodsLog(), STR_MS_T, SYS_NULL_INPUT, MsParam::type, and USER_PARAM_TYPE_ERR.

Here is the call graph for this function:

◆ parseMspForExecCmdInp()

int parseMspForExecCmdInp ( msParam_t inpParam,
execCmd_t execCmdInpCache,
execCmd_t **  ouExecCmdInp 
)

Definition at line 972 of file msParam.cpp.

References ExecCmd::cmd, ExecCmd_MS_T, MsParam::inOutStruct, LOG_ERROR, LONG_NAME_LEN, NULL, rodsLog(), rstrcpy(), STR_MS_T, SYS_INTERNAL_NULL_INPUT_ERR, MsParam::type, and USER_PARAM_TYPE_ERR.

Referenced by msiExecCmd().

Here is the call graph for this function:

◆ parseMspForFloat()

int parseMspForFloat ( msParam_t inpParam,
float *  floatout 
)

Definition at line 913 of file msParam.cpp.

References FLOAT_MS_T, MsParam::inOutStruct, INT_MS_T, LOG_ERROR, NULL, rodsLog(), STR_MS_T, SYS_NULL_INPUT, MsParam::type, and USER_PARAM_TYPE_ERR.

Here is the call graph for this function:

◆ parseMspForPhyPathReg()

int parseMspForPhyPathReg ( msParam_t inpParam,
keyValPair_t condInput 
)

Definition at line 827 of file msParam.cpp.

References addKeyVal(), COLLECTION_KW, COLLECTION_TYPE_KW, MsParam::inOutStruct, LINK_POINT_STR, LOG_ERROR, MOUNT_POINT_STR, NULL, rodsLog(), STR_MS_T, MsParam::type, UNMOUNT_STR, and USER_PARAM_TYPE_ERR.

Referenced by msiPhyPathReg().

Here is the call graph for this function:

◆ parseMspForPosInt()

int parseMspForPosInt ( msParam_t inpParam)

Definition at line 861 of file msParam.cpp.

References BUF_LEN_MS_T, DOUBLE_MS_T, MsParam::inOutStruct, INT_MS_T, LOG_DEBUG, LOG_ERROR, rodsLog(), STR_MS_T, SYS_NULL_INPUT, MsParam::type, and USER_PARAM_TYPE_ERR.

Referenced by msiCollCreate(), msiDataObjClose(), msiDataObjRead(), msiDataObjRename(), msiDataObjWrite(), msiExecCmd(), msiSetReplComment(), and writePosInt().

Here is the call graph for this function:

◆ parseMspForStr()

char* parseMspForStr ( msParam_t inpParam)

◆ printMsParam()

int printMsParam ( msParamArray_t msParamArray)

Definition at line 298 of file msParam.cpp.

References buf, MsParamArray::len, MsParamArray::msParam, NULL, and writeMsParam().

Here is the call graph for this function:

◆ replBytesBuf()

bytesBuf_t* replBytesBuf ( const bytesBuf_t in)

Definition at line 208 of file msParam.cpp.

References BytesBuf::buf, BytesBuf::len, NULL, and manual_cleanup::out.

Referenced by addMsParamToArray(), carryOverMsParam(), and replMsParam().

◆ replInOutStruct()

int replInOutStruct ( void *  inStruct,
void **  outStruct,
const char *  type 
)

Definition at line 173 of file msParam.cpp.

References BytesBuf::buf, freeBBuf(), LOG_ERROR, NATIVE_PROT, NULL, packStruct(), rodsLogError(), irods.pypyodbc::status, STR_MS_T, SYS_INTERNAL_NULL_INPUT_ERR, type, and unpackStruct().

Referenced by addMsParamToArray(), carryOverMsParam(), and replMsParam().

Here is the call graph for this function:

◆ replMsParam()

int replMsParam ( msParam_t msParam,
msParam_t outMsParam 
)

Definition at line 156 of file msParam.cpp.

References MsParam::inOutStruct, MsParam::inpOutBuf, MsParam::label, LOG_ERROR, NULL, manual_cleanup::out, replBytesBuf(), replInOutStruct(), rodsLogError(), irods.pypyodbc::status, SYS_INTERNAL_NULL_INPUT_ERR, and MsParam::type.

Referenced by irods::convertFromMsParam(), irods::convertToMsParam(), replMsParamArray(), and smsi_remoteExec().

Here is the call graph for this function:

◆ replMsParamArray()

int replMsParamArray ( msParamArray_t msParamArray,
msParamArray_t outMsParamArray 
)

Definition at line 129 of file msParam.cpp.

References MsParamArray::len, LOG_ERROR, MsParamArray::msParam, NULL, manual_cleanup::out, PTR_ARRAY_MALLOC_LEN, replMsParam(), rodsLogError(), irods.pypyodbc::status, and SYS_INTERNAL_NULL_INPUT_ERR.

Referenced by remoteExec().

Here is the call graph for this function:

◆ resetMsParam()

int resetMsParam ( msParam_t msParam)

Definition at line 491 of file msParam.cpp.

References freeBBuf(), MsParam::inOutStruct, MsParam::inpOutBuf, NULL, and MsParam::type.

Referenced by msiGetMoreRows(), and msiPrintGenQueryOutToBuffer().

Here is the call graph for this function:

◆ rmMsParamByLabel()

int rmMsParamByLabel ( msParamArray_t msParamArray,
const char *  label,
int  freeStruct 
)

Definition at line 424 of file msParam.cpp.

References clearMsParam(), MsParam::label, MsParamArray::len, MsParamArray::msParam, and NULL.

Referenced by removeTmpVarName(), and smsi_remoteExec().

Here is the call graph for this function:

◆ trimMsParamArray()

int trimMsParamArray ( msParamArray_t msParamArray,
char *  outParamDesc 
)

Definition at line 511 of file msParam.cpp.

References ALL_MS_PARAM_KW, clearMsParam(), MsParam::label, MsParamArray::len, StrArray::len, LOG_ERROR, match(), MsParamArray::msParam, NULL, parseMultiStr(), rodsLog(), StrArray::size, irods.pypyodbc::status, type, StrArray::value, and get_irods_version::value.

Referenced by rsExecMyRule().

Here is the call graph for this function:

◆ writeMsParam()