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)  

rs_get_file_descriptor_info.cpp
Go to the documentation of this file.
2 
3 #include "api_plugin_number.h"
4 #include "rodsErrorTable.h"
5 
7 
8 #include <cstring>
9 
10 extern "C"
11 auto rs_get_file_descriptor_info(rsComm_t* _comm, const char* _json_input, char** _json_output) -> int
12 {
13  if (!_json_input || !_json_output) {
15  }
16 
17  bytesBuf_t input{};
18  input.buf = const_cast<char*>(_json_input);
19  input.len = static_cast<int>(std::strlen(_json_input));
20 
21  bytesBuf_t* output{};
22 
23  const auto ec = irods::server_api_call(GET_FILE_DESCRIPTOR_INFO_APN, _comm, &input, &output);
24 
25  if (ec == 0) {
26  *_json_output = static_cast<char*>(output->buf);
27  }
28 
29  return ec;
30 }
31 
rsComm_t
Definition: rcConnect.h:145
BytesBuf::buf
void * buf
Definition: rodsDef.h:199
rs_get_file_descriptor_info.hpp
irods::server_api_call
int server_api_call(int _api_index, rsComm_t *_comm, INP_T *_input, bytesBuf_t *_input_buffer, OUT_T **_output, bytesBuf_t *_output_buffer)
Definition: irods_server_api_call.hpp:11
generate_iadmin_commands_for_41_to_42_upgrade.output
output
Definition: generate_iadmin_commands_for_41_to_42_upgrade.py:21
rs_get_file_descriptor_info
auto rs_get_file_descriptor_info(rsComm_t *_comm, const char *_json_input, char **_json_output) -> int
Definition: rs_get_file_descriptor_info.cpp:11
SYS_INVALID_INPUT_PARAM
@ SYS_INVALID_INPUT_PARAM
Definition: rodsErrorTable.h:195
api_plugin_number.h
BytesBuf
Definition: rodsDef.h:197
irods_server_api_call.hpp
rodsErrorTable.h