"Fossies" - the Fresh Open Source Software Archive

Member "irods-4.2.8/lib/api/include/bulkDataObjPut.h" (14 May 2020, 1845 Bytes) of package /linux/misc/irods-4.2.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "bulkDataObjPut.h" see the Fossies "Dox" file reference documentation.

    1 /*** Copyright (c), The Regents of the University of California            ***
    2  *** For more information please refer to files in the COPYRIGHT directory ***/
    3 /* bulkDataObjPut.h - This dataObj may be generated by a program or script
    4  */
    5 
    6 #ifndef BULK_DATA_OBJ_PUT_H__
    7 #define BULK_DATA_OBJ_PUT_H__
    8 
    9 /* This is a Object File I/O API call */
   10 
   11 #include "rodsGenQuery.h"
   12 #include "rodsDef.h"
   13 #include "rcConnect.h"
   14 
   15 #define TMP_PHY_BUN_DIR         "tmpPhyBunDir"
   16 
   17 typedef struct {
   18     char objPath[MAX_NAME_LEN];
   19     genQueryOut_t attriArray;   /* arrays of attrib - chksum */
   20     keyValPair_t condInput;   /* include chksum flag and value */
   21 } bulkOprInp_t;
   22 
   23 typedef struct RenamedPhyFiles {
   24     int count;
   25     char objPath[MAX_NUM_BULK_OPR_FILES][MAX_NAME_LEN];
   26     char origFilePath[MAX_NUM_BULK_OPR_FILES][MAX_NAME_LEN];
   27     char newFilePath[MAX_NUM_BULK_OPR_FILES][MAX_NAME_LEN];
   28 } renamedPhyFiles_t;
   29 
   30 #define BulkOprInp_PI "str objPath[MAX_NAME_LEN]; struct GenQueryOut_PI; struct KeyValPair_PI;"
   31 
   32 
   33 /* prototype for the client call */
   34 /* rcBulkDataObjPut - Bulk Put (upload) a number of local files to iRODS.
   35  * bulkOprInpBBuf contains the bundled local files in tar format.
   36  * Input -
   37  *   rcComm_t *conn - The client connection handle.
   38  *   bulkOprInp_t *bulkOprInp - generic dataObj input. Relevant items are:
   39  *      objPath - the collection path under which the files are to be untar.
   40  *      condInput - conditional Input
   41  *          FORCE_FLAG_KW - overwrite an existing data object
   42  *          DATA_TYPE_KW - "value" = the data type of the file.
   43  *          DEST_RESC_NAME_KW - "value" = The destination Resource.
   44  *   return value - The status of the operation.
   45  */
   46 
   47 
   48 #ifdef __cplusplus
   49 extern "C"
   50 #endif
   51 int rcBulkDataObjPut( rcComm_t *conn, bulkOprInp_t *bulkOprInp, bytesBuf_t *bulkOprInpBBuf );
   52 
   53 #endif  // BULK_DATA_OBJ_PUT_H__