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)  

rcRegDataObj.cpp
Go to the documentation of this file.
1 #include "regDataObj.h"
2 #include "procApiRequest.h"
3 #include "apiNumber.h"
4 
23 int
24 rcRegDataObj( rcComm_t *conn, dataObjInfo_t *dataObjInfo,
25  dataObjInfo_t **outDataObjInfo ) {
26  int status = 0;
27  dataObjInfo_t* srcNext = 0;
28 
29  /* don't send next */
30  srcNext = dataObjInfo->next;
31  dataObjInfo->next = NULL;
32  status = procApiRequest( conn, REG_DATA_OBJ_AN, dataObjInfo, NULL,
33  ( void ** ) outDataObjInfo, NULL );
34 
35  /* restore */
36  dataObjInfo->next = srcNext;
37  /* cleanup fake pointers */
38  if ( status >= 0 && *outDataObjInfo != NULL ) {
39  if ( ( *outDataObjInfo )->next != NULL ) {
40  free( ( *outDataObjInfo )->next );
41  ( *outDataObjInfo )->next = NULL;
42  }
43  }
44  return status;
45 }
rcComm_t
Definition: rcConnect.h:95
NULL
#define NULL
Definition: rodsDef.h:70
regDataObj.h
REG_DATA_OBJ_AN
#define REG_DATA_OBJ_AN
Definition: apiNumber.h:51
DataObjInfo::next
struct DataObjInfo * next
Definition: objInfo.h:163
rcRegDataObj
int rcRegDataObj(rcComm_t *conn, dataObjInfo_t *dataObjInfo, dataObjInfo_t **outDataObjInfo)
Definition: rcRegDataObj.cpp:24
procApiRequest.h
irods.pypyodbc.status
status
Definition: pypyodbc.py:467
apiNumber.h
procApiRequest
int procApiRequest(rcComm_t *conn, int apiNumber, void *inputStruct, bytesBuf_t *inputBsBBuf, void **outStruct, bytesBuf_t *outBsBBuf)
Definition: procApiRequest.cpp:55
DataObjInfo
Definition: objInfo.h:129