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)  

rc_get_file_descriptor_info.cpp
Go to the documentation of this file.
2 
3 #include "api_plugin_number.h"
4 #include "rodsDef.h"
5 #include "rcConnect.h"
6 #include "procApiRequest.h"
7 #include "rodsErrorTable.h"
8 
9 #include <cstring>
10 
11 extern "C"
12 auto rc_get_file_descriptor_info(rcComm_t* _comm, const char* _json_input, char** _json_output) -> int
13 {
14  if (!_json_input || !_json_output) {
16  }
17 
18  bytesBuf_t input_buf{};
19  input_buf.buf = const_cast<char*>(_json_input);
20  input_buf.len = static_cast<int>(std::strlen(_json_input));
21 
22  bytesBuf_t* output_buf{};
23 
24  const int ec = procApiRequest(_comm, GET_FILE_DESCRIPTOR_INFO_APN,
25  &input_buf, nullptr,
26  reinterpret_cast<void**>(&output_buf), nullptr);
27 
28  if (ec == 0) {
29  *_json_output = static_cast<char*>(output_buf->buf);
30  }
31 
32  return ec;
33 }
rcComm_t
Definition: rcConnect.h:95
BytesBuf::buf
void * buf
Definition: rodsDef.h:199
rcConnect.h
SYS_INVALID_INPUT_PARAM
@ SYS_INVALID_INPUT_PARAM
Definition: rodsErrorTable.h:195
procApiRequest.h
rodsDef.h
rc_get_file_descriptor_info
auto rc_get_file_descriptor_info(rcComm_t *_comm, const char *_json_input, char **_json_output) -> int
Definition: rc_get_file_descriptor_info.cpp:12
api_plugin_number.h
BytesBuf
Definition: rodsDef.h:197
procApiRequest
int procApiRequest(rcComm_t *conn, int apiNumber, void *inputStruct, bytesBuf_t *inputBsBBuf, void **outStruct, bytesBuf_t *outBsBBuf)
Definition: procApiRequest.cpp:55
get_file_descriptor_info.h
rodsErrorTable.h