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_atomic_apply_metadata_operations.cpp
Go to the documentation of this file.
2 
3 #include "api_plugin_number.h"
4 #include "rodsDef.h"
5 #include "rodsErrorTable.h"
6 
8 
9 #include <cstring>
10 
11 extern "C"
12 auto rs_atomic_apply_metadata_operations(rsComm_t* _comm, const char* _json_input, char** _json_output) -> int
13 {
14  if (!_json_input || !_json_output) {
16  }
17 
18  bytesBuf_t input{};
19  input.buf = const_cast<char*>(_json_input);
20  input.len = static_cast<int>(std::strlen(_json_input)) + 1;
21 
22  bytesBuf_t* output{};
23 
24  const auto ec = irods::server_api_call(ATOMIC_APPLY_METADATA_OPERATIONS_APN, _comm, &input, &output);
25 
26  *_json_output = static_cast<char*>(output->buf);
27 
28  return ec;
29 }
rsComm_t
Definition: rcConnect.h:145
BytesBuf::buf
void * buf
Definition: rodsDef.h:199
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
SYS_INVALID_INPUT_PARAM
@ SYS_INVALID_INPUT_PARAM
Definition: rodsErrorTable.h:195
rodsDef.h
api_plugin_number.h
BytesBuf
Definition: rodsDef.h:197
irods_server_api_call.hpp
rodsErrorTable.h
rs_atomic_apply_metadata_operations.hpp
rs_atomic_apply_metadata_operations
auto rs_atomic_apply_metadata_operations(rsComm_t *_comm, const char *_json_input, char **_json_output) -> int
Definition: rs_atomic_apply_metadata_operations.cpp:12