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)  

rcDataObjCopy.cpp
Go to the documentation of this file.
1 
5 
7 /* This is script-generated code. */
8 /* See dataObjCopy.h for a description of this API call.*/
9 
10 #include "dataObjCopy.h"
11 #include "procApiRequest.h"
12 #include "apiNumber.h"
13 
84 int
85 rcDataObjCopy( rcComm_t *conn, dataObjCopyInp_t *dataObjCopyInp ) {
86  int status;
87  transferStat_t *transferStat = NULL;
88 
89  memset( &conn->transStat, 0, sizeof( transferStat_t ) );
90 
91  dataObjCopyInp->srcDataObjInp.oprType = COPY_SRC;
92  dataObjCopyInp->destDataObjInp.oprType = COPY_DEST;
93 
94  status = _rcDataObjCopy( conn, dataObjCopyInp, &transferStat );
95 
96  if ( status >= 0 && transferStat != NULL ) {
97  conn->transStat = *( transferStat );
98  }
99  if ( transferStat != NULL ) {
100  free( transferStat );
101  }
102 
103  return status;
104 }
105 
106 int
107 _rcDataObjCopy( rcComm_t *conn, dataObjCopyInp_t *dataObjCopyInp,
108  transferStat_t **transferStat ) {
109  int status;
110 
111  status = procApiRequest( conn, DATA_OBJ_COPY_AN, dataObjCopyInp, NULL,
112  ( void ** ) transferStat, NULL );
113 
114  return status;
115 }
rcComm_t
Definition: rcConnect.h:95
NULL
#define NULL
Definition: rodsDef.h:70
DataObjCopyInp::srcDataObjInp
dataObjInp_t srcDataObjInp
Definition: dataObjCopy.h:26
transferStat_t
Definition: objInfo.h:291
DataObjCopyInp
Definition: dataObjCopy.h:25
COPY_SRC
#define COPY_SRC
Definition: dataObjInpOut.h:176
procApiRequest.h
_rcDataObjCopy
int _rcDataObjCopy(rcComm_t *conn, dataObjCopyInp_t *dataObjCopyInp, transferStat_t **transferStat)
Definition: rcDataObjCopy.cpp:107
irods.pypyodbc.status
status
Definition: pypyodbc.py:467
apiNumber.h
rcDataObjCopy
int rcDataObjCopy(rcComm_t *conn, dataObjCopyInp_t *dataObjCopyInp)
Definition: rcDataObjCopy.cpp:85
procApiRequest
int procApiRequest(rcComm_t *conn, int apiNumber, void *inputStruct, bytesBuf_t *inputBsBBuf, void **outStruct, bytesBuf_t *outBsBBuf)
Definition: procApiRequest.cpp:55
DataObjCopyInp::destDataObjInp
dataObjInp_t destDataObjInp
Definition: dataObjCopy.h:27
COPY_DEST
#define COPY_DEST
Definition: dataObjInpOut.h:175
DataObjInp::oprType
int oprType
Definition: dataObjInpOut.h:72
rcComm_t::transStat
transferStat_t transStat
Definition: rcConnect.h:108
dataObjCopy.h
DATA_OBJ_COPY_AN
#define DATA_OBJ_COPY_AN
Definition: apiNumber.h:123