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)  

rcDataObjRepl.cpp
Go to the documentation of this file.
1 
6 
8 /* This is script-generated code. */
9 /* See dataObjRepl.h for a description of this API call.*/
10 
11 #include "dataObjRepl.h"
12 #include "procApiRequest.h"
13 #include "apiNumber.h"
14 
83 int
84 rcDataObjRepl( rcComm_t *conn, dataObjInp_t *dataObjInp ) {
85  int status;
86  transferStat_t *transferStat = NULL;
87 
88  memset( &conn->transStat, 0, sizeof( transferStat_t ) );
89 
90  dataObjInp->oprType = REPLICATE_OPR;
91 
92  status = _rcDataObjRepl( conn, dataObjInp, &transferStat );
93 
94  if ( status >= 0 && transferStat != NULL ) {
95  conn->transStat = *( transferStat );
96  }
97  if ( transferStat != NULL ) {
98  free( transferStat );
99  }
100  return status;
101 }
102 
103 int
105  transferStat_t **transferStat ) {
106  int status;
107 
108  status = procApiRequest( conn, DATA_OBJ_REPL_AN, dataObjInp, NULL,
109  ( void ** ) transferStat, NULL );
110 
111  return status;
112 }
113 
rcComm_t
Definition: rcConnect.h:95
NULL
#define NULL
Definition: rodsDef.h:70
rcDataObjRepl
int rcDataObjRepl(rcComm_t *conn, dataObjInp_t *dataObjInp)
Definition: rcDataObjRepl.cpp:84
transferStat_t
Definition: objInfo.h:291
procApiRequest.h
DataObjInp
Definition: dataObjInpOut.h:65
DATA_OBJ_REPL_AN
#define DATA_OBJ_REPL_AN
Definition: apiNumber.h:122
irods.pypyodbc.status
status
Definition: pypyodbc.py:467
dataObjRepl.h
apiNumber.h
REPLICATE_OPR
#define REPLICATE_OPR
Definition: dataObjInpOut.h:172
procApiRequest
int procApiRequest(rcComm_t *conn, int apiNumber, void *inputStruct, bytesBuf_t *inputBsBBuf, void **outStruct, bytesBuf_t *outBsBBuf)
Definition: procApiRequest.cpp:55
DataObjInp::oprType
int oprType
Definition: dataObjInpOut.h:72
_rcDataObjRepl
int _rcDataObjRepl(rcComm_t *conn, dataObjInp_t *dataObjInp, transferStat_t **transferStat)
Definition: rcDataObjRepl.cpp:104
rcComm_t::transStat
transferStat_t transStat
Definition: rcConnect.h:108