summaryrefslogtreecommitdiffstats
path: root/swig
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2005-01-21 23:54:02 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2005-01-21 23:54:02 +0000
commitbdaa2659df4dae82e1b314905f49ffc6370ed61d (patch)
tree9c08927fbfcda9fe3f0e0e285a3c456f1f5216da /swig
parent8ee6da02dd68911ba397c39f8c97db9b6b0baece (diff)
downloadlasso-bdaa2659df4dae82e1b314905f49ffc6370ed61d.tar.gz
lasso-bdaa2659df4dae82e1b314905f49ffc6370ed61d.tar.xz
lasso-bdaa2659df4dae82e1b314905f49ffc6370ed61d.zip
SWIG: Added binding for new_full constructors.
Diffstat (limited to 'swig')
-rw-r--r--swig/Lasso.i94
1 files changed, 71 insertions, 23 deletions
diff --git a/swig/Lasso.i b/swig/Lasso.i
index 5f1d1209..b5fbcf61 100644
--- a/swig/Lasso.i
+++ b/swig/Lasso.i
@@ -3196,11 +3196,14 @@ typedef struct {
/* Constructor, Destructor & Static Methods */
- LassoLibAssertion(char *issuer, char *requestId, char *audience,
- char *notBefore, char *notOnOrAfter);
+ LassoLibAssertion();
~LassoLibAssertion();
+ %newobject newFull;
+ static LassoLibAssertion *newFull(char *issuer, char *requestId, char *audience,
+ char *notBefore, char *notOnOrAfter);
+
/* Methods inherited from LassoNode */
%newobject dump;
@@ -3299,8 +3302,13 @@ typedef struct {
/* Constructors, destructors & static methods implementations */
-#define new_LassoLibAssertion lasso_lib_assertion_new_full
+#define new_LassoLibAssertion lasso_lib_assertion_new
#define delete_LassoLibAssertion(self) lasso_node_destroy(LASSO_NODE(self))
+#ifdef PHP_VERSION
+#define LassoLibAssertion_newFull lasso_lib_assertion_new_full
+#else
+#define LibAssertion_newFull lasso_lib_assertion_new_full
+#endif
/* Implementations of methods inherited from LassoNode */
@@ -3683,12 +3691,15 @@ typedef struct {
/* Constructor, Destructor & Static Methods */
- LassoLibFederationTerminationNotification(
- char *providerID, LassoSamlNameIdentifier *nameIdentifier,
- LassoSignatureType sign_type, LassoSignatureMethod sign_method);
+ LassoLibFederationTerminationNotification();
~LassoLibFederationTerminationNotification();
+ %newobject newFull;
+ static LassoLibFederationTerminationNotification *newFull(
+ char *providerID, LassoSamlNameIdentifier *nameIdentifier,
+ LassoSignatureType sign_type, LassoSignatureMethod sign_method);
+
/* Methods inherited from LassoNode */
%newobject dump;
@@ -3769,8 +3780,13 @@ typedef struct {
/* Constructors, destructors & static methods implementations */
-#define new_LassoLibFederationTerminationNotification lasso_lib_federation_termination_notification_new_full
+#define new_LassoLibFederationTerminationNotification lasso_lib_federation_termination_notification_new
#define delete_LassoLibFederationTerminationNotification(self) lasso_node_destroy(LASSO_NODE(self))
+#ifdef PHP_VERSION
+#define LassoLibFederationTerminationNotification_newFull lasso_lib_federation_termination_notification_new_full
+#else
+#define LibFederationTerminationNotification_newFull lasso_lib_federation_termination_notification_new_full
+#endif
/* Implementations of methods inherited from LassoNode */
@@ -3874,12 +3890,15 @@ typedef struct {
/* Constructor, Destructor & Static Methods */
- LassoLibLogoutRequest(
- char *providerID, LassoSamlNameIdentifier *nameIdentifier,
- LassoSignatureType sign_type, LassoSignatureMethod sign_method);
+ LassoLibLogoutRequest();
~LassoLibLogoutRequest();
+ %newobject newFull;
+ static LassoLibLogoutRequest *newFull(
+ char *providerID, LassoSamlNameIdentifier *nameIdentifier,
+ LassoSignatureType sign_type, LassoSignatureMethod sign_method);
+
/* Methods inherited from LassoNode */
%newobject dump;
@@ -3960,8 +3979,13 @@ typedef struct {
/* Constructors, destructors & static methods implementations */
-#define new_LassoLibLogoutRequest lasso_lib_logout_request_new_full
+#define new_LassoLibLogoutRequest lasso_lib_logout_request_new
#define delete_LassoLibLogoutRequest(self) lasso_node_destroy(LASSO_NODE(self))
+#ifdef PHP_VERSION
+#define LassoLibLogoutRequest_newFull lasso_lib_logout_request_new_full
+#else
+#define LibLogoutRequest_newFull lasso_lib_logout_request_new_full
+#endif
/* Implementations of methods inherited from LassoNode */
@@ -4004,13 +4028,16 @@ typedef struct {
/* Constructor, Destructor & Static Methods */
- LassoLibLogoutResponse(
+ LassoLibLogoutResponse();
+
+ ~LassoLibLogoutResponse();
+
+ %newobject newFull;
+ static LassoLibLogoutResponse *newFull(
char *providerID, const char *statusCodeValue,
LassoLibLogoutRequest *request,
LassoSignatureType sign_type, LassoSignatureMethod sign_method);
- ~LassoLibLogoutResponse();
-
/* Methods inherited from LassoNode */
%newobject dump;
@@ -4047,8 +4074,13 @@ typedef struct {
/* Constructors, destructors & static methods implementations */
-#define new_LassoLibLogoutResponse lasso_lib_logout_response_new_full
+#define new_LassoLibLogoutResponse lasso_lib_logout_response_new
#define delete_LassoLibLogoutResponse(self) lasso_node_destroy(LASSO_NODE(self))
+#ifdef PHP_VERSION
+#define LassoLibLogoutResponse_newFull lasso_lib_logout_response_new_full
+#else
+#define LibLogoutResponse_newFull lasso_lib_logout_response_new_full
+#endif
/* Implementations of methods inherited from LassoNode */
@@ -4152,15 +4184,18 @@ typedef struct {
/* Constructor, Destructor & Static Methods */
- LassoLibRegisterNameIdentifierRequest(
+ LassoLibRegisterNameIdentifierRequest();
+
+ ~LassoLibRegisterNameIdentifierRequest();
+
+ %newobject newFull;
+ static LassoLibRegisterNameIdentifierRequest *newFull(
char *providerID,
LassoSamlNameIdentifier *idpNameIdentifier,
LassoSamlNameIdentifier *spNameIdentifier,
LassoSamlNameIdentifier *oldNameIdentifier,
LassoSignatureType sign_type, LassoSignatureMethod sign_method);
- ~LassoLibRegisterNameIdentifierRequest();
-
/* Methods inherited from LassoNode */
%newobject dump;
@@ -4253,8 +4288,13 @@ typedef struct {
/* Constructors, destructors & static methods implementations */
-#define new_LassoLibRegisterNameIdentifierRequest lasso_lib_register_name_identifier_request_new_full
+#define new_LassoLibRegisterNameIdentifierRequest lasso_lib_register_name_identifier_request_new
#define delete_LassoLibRegisterNameIdentifierRequest(self) lasso_node_destroy(LASSO_NODE(self))
+#ifdef PHP_VERSION
+#define LassoLibRegisterNameIdentifierRequest_newFull lasso_lib_register_name_identifier_request_new_full
+#else
+#define LibRegisterNameIdentifierRequest_newFull lasso_lib_register_name_identifier_request_new_full
+#endif
/* Implementations of methods inherited from LassoNode */
@@ -4297,13 +4337,16 @@ typedef struct {
/* Constructor, Destructor & Static Methods */
- LassoLibRegisterNameIdentifierResponse(
+ LassoLibRegisterNameIdentifierResponse();
+
+ ~LassoLibRegisterNameIdentifierResponse();
+
+ %newobject newFull;
+ static LassoLibRegisterNameIdentifierResponse *newFull(
char *providerID, char *statusCodeValue,
LassoLibRegisterNameIdentifierRequest *request,
LassoSignatureType sign_type, LassoSignatureMethod sign_method);
- ~LassoLibRegisterNameIdentifierResponse();
-
/* Methods inherited from LassoNode */
%newobject dump;
@@ -4340,8 +4383,13 @@ typedef struct {
/* Constructors, destructors & static methods implementations */
-#define new_LassoLibRegisterNameIdentifierResponse lasso_lib_register_name_identifier_response_new_full
+#define new_LassoLibRegisterNameIdentifierResponse lasso_lib_register_name_identifier_response_new
#define delete_LassoLibRegisterNameIdentifierResponse(self) lasso_node_destroy(LASSO_NODE(self))
+#ifdef PHP_VERSION
+#define LassoLibRegisterNameIdentifierResponse_newFull lasso_lib_register_name_identifier_response_new_full
+#else
+#define LibRegisterNameIdentifierResponse_newFull lasso_lib_register_name_identifier_response_new_full
+#endif
/* Implementations of methods inherited from LassoNode */