-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#168] Add missing iRODS types and members
This change adds missing check_auth_credentials type. Adds tcp_keepalive members to rodsEnv as well as connection pool timeout member which was not added before. Also added session_signature member of RcComm and session_props member of RsComm. -Wmissing-field-initializers is raised by a missing member of sockaddr_in called sin_zero. This member has been removed in bwg2001-004. For more information, see http://www.opengroup.org/platform/resolutions/bwg2001-many.html Even though sin_zero must be included in the member list for sockaddr_in for a complete member initialization list, we do not expose it as a property for this type in the rule engine because sin_zero is not part of the standard and may not be available in the future. The missing member is included to silence the warning.
- Loading branch information
Showing
7 changed files
with
77 additions
and
4 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
9 changes: 9 additions & 0 deletions
9
include/irods/private/re/python/types/irods/check_auth_credentials.hpp
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,9 @@ | ||
#ifndef RE_PYTHON_TYPES_IRODS_CHECK_AUTH_CREDENTIALS_HPP | ||
#define RE_PYTHON_TYPES_IRODS_CHECK_AUTH_CREDENTIALS_HPP | ||
|
||
namespace irods::re::python::types | ||
{ | ||
void export_CheckAuthCredentialsInput(); | ||
} //namespace irods::re::python::types | ||
|
||
#endif // RE_PYTHON_TYPES_IRODS_CHECK_AUTH_CREDENTIALS_HPP |
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,41 @@ | ||
// include this first for defines and pyconfig | ||
#include "irods/private/re/python/types/config.hpp" | ||
|
||
#include "irods/private/re/python/types/irods/check_auth_credentials.hpp" | ||
|
||
#include <irods/check_auth_credentials.h> | ||
|
||
#include "irods/private/re/python/types/array_ref.hpp" | ||
#include "irods/private/re/python/types/init_struct.hpp" | ||
|
||
#include <patchlevel.h> | ||
#include <boost/version.hpp> | ||
#pragma GCC diagnostic push | ||
#if PY_VERSION_HEX < 0x030400A2 | ||
# pragma GCC diagnostic ignored "-Wregister" | ||
#endif | ||
#if PY_VERSION_HEX >= 0x03090000 && BOOST_VERSION < 107500 | ||
# pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||
#endif | ||
#include <boost/python/class.hpp> | ||
#pragma GCC diagnostic pop | ||
|
||
namespace bp = boost::python; | ||
|
||
namespace irods::re::python::types | ||
{ | ||
__attribute__((visibility("hidden"))) void export_CheckAuthCredentialsInput() | ||
{ | ||
// clang-format off | ||
bp::class_<CheckAuthCredentialsInput>("CheckAuthCredentialsInput", bp::no_init) | ||
.def("__init__", make_init_function<CheckAuthCredentialsInput>( | ||
&CheckAuthCredentialsInput::username, | ||
&CheckAuthCredentialsInput::zone, | ||
&CheckAuthCredentialsInput::password)) | ||
.add_property("username", +[](CheckAuthCredentialsInput *s) { return array_ref<char>{s->username}; }) | ||
.add_property("zone", +[](CheckAuthCredentialsInput *s) { return array_ref<char>{s->zone}; }) | ||
.add_property("password", +[](CheckAuthCredentialsInput *s) { return array_ref<char>{s->password}; }) | ||
; | ||
// clang-format on | ||
} | ||
} //namespace irods::re::python::types |
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