forked from irods/irods
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
329c4e3
commit 80a0825
Showing
33 changed files
with
2,675 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifndef IRODS_GENQUERY2_H | ||
#define IRODS_GENQUERY2_H | ||
|
||
/// \file | ||
|
||
struct RcComm; | ||
|
||
/// The input data type used to invoke #rc_genquery2. | ||
/// | ||
/// \since 4.3.2 | ||
typedef struct GenQuery2Input // NOLINT(modernize-use-using) | ||
{ | ||
/// TODO | ||
/// | ||
/// \since 4.3.2 | ||
char* query_string; | ||
|
||
/// TODO | ||
/// | ||
/// \since 4.3.2 | ||
char* zone; | ||
|
||
/// TODO | ||
/// | ||
/// \since 4.3.2 | ||
int sql_only; | ||
} genQuery2Inp_t; | ||
|
||
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage) | ||
#define GenQuery2Input_PI "str *query_string; str *zone; int sql_only;" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/// TODO | ||
/// | ||
/// \since 4.3.2 | ||
int rc_genquery2(struct RcComm* _comm, struct GenQuery2Input* _input, char** _output); | ||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif | ||
|
||
#endif // IRODS_GENQUERY2_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "irods/genquery2.h" | ||
|
||
#include "irods/apiNumber.h" | ||
#include "irods/procApiRequest.h" | ||
#include "irods/rodsErrorTable.h" | ||
|
||
auto rc_genquery2(RcComm* _comm, GenQuery2Input* _input, char** _output) -> int | ||
{ | ||
if (!_input || !_output) { | ||
return SYS_INVALID_INPUT_PARAM; | ||
} | ||
|
||
return procApiRequest(_comm, | ||
GENQUERY2_AN, | ||
_input, | ||
nullptr, | ||
reinterpret_cast<void**>(_output), // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast) | ||
nullptr); | ||
} // rc_genquery2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef IRODS_RS_GENQUERY2_HPP | ||
#define IRODS_RS_GENQUERY2_HPP | ||
|
||
/// \file | ||
|
||
#include "irods/genquery2.h" | ||
|
||
struct RsComm; | ||
|
||
/// TODO | ||
/// | ||
/// \since 4.3.2 | ||
int rs_genquery2(RsComm* _comm, GenQuery2Input* _input, char** _output); | ||
|
||
#endif // IRODS_RS_GENQUERY2_HPP |
Oops, something went wrong.