Skip to content

Commit

Permalink
[7554] Deprecate rxGeneralUpdate API endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Mar 14, 2024
1 parent 084e1da commit 39f7f7f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
15 changes: 11 additions & 4 deletions lib/api/include/irods/generalUpdate.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
#ifndef GENERAL_UPDATE_H__
#define GENERAL_UPDATE_H__
#ifndef IRODS_GENERAL_UPDATE_H
#define IRODS_GENERAL_UPDATE_H

#include "irods/rcConnect.h"
#include "irods/rodsGeneralUpdate.h"

#ifdef __cplusplus
extern "C"
extern "C" {
#endif
int rcGeneralUpdate( rcComm_t *conn, generalUpdateInp_t *generalUpdateInp );

int rcGeneralUpdate(rcComm_t* conn, generalUpdateInp_t* generalUpdateInp)
__attribute__((deprecated("rcGeneralUpdate is deprecated and will be removed in a later release. If you are "
"reaching for this, consider revising your approach.")));

#ifdef __cplusplus
} // extern "C"
#endif

#endif // IRODS_GENERAL_UPDATE_H
12 changes: 8 additions & 4 deletions server/api/include/irods/rsGeneralUpdate.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#ifndef RS_GENERAL_UPDATE_HPP
#define RS_GENERAL_UPDATE_HPP
#ifndef IRODS_RS_GENERAL_UPDATE_HPP
#define IRODS_RS_GENERAL_UPDATE_HPP

#include "irods/rcConnect.h"
#include "irods/rodsGeneralUpdate.h"

int rsGeneralUpdate( rsComm_t *rsComm, generalUpdateInp_t *generalUpdateInp );
int rsGeneralUpdate(rsComm_t* rsComm, generalUpdateInp_t* generalUpdateInp)
__attribute__((deprecated("rsGeneralUpdate is deprecated and will be removed in a later release. If you are "
"reaching for this, consider revising your approach.")));

// TODO Leading underscores are not allowed in the global namespace.
int _rsGeneralUpdate( generalUpdateInp_t *generalUpdateInp );

#endif
#endif // IRODS_RS_GENERAL_UPDATE_HPP
4 changes: 3 additions & 1 deletion server/icat/include/irods/icatHighLevelRoutines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ int chlGenQueryTicketSetup( const char *ticket, const char *clientAddr );
int chlSpecificQuery( specificQueryInp_t specificQueryInp,
genQueryOut_t *genQueryOut );

int chlGeneralUpdate( generalUpdateInp_t generalUpdateInp );
int chlGeneralUpdate(generalUpdateInp_t generalUpdateInp)
__attribute__((deprecated("chlGeneralUpdate is deprecated and will be removed in a later release. If you are "
"reaching for this, consider revising your approach.")));

int chlDelCollByAdmin( rsComm_t *rsComm, collInfo_t *collInfo );
int chlDelColl( rsComm_t *rsComm, collInfo_t *collInfo );
Expand Down

0 comments on commit 39f7f7f

Please sign in to comment.