From 3568f40256e6b686c06fc655c87f441eeb084d53 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Wed, 2 May 2007 09:28:38 +0000 Subject: binding for LassoMiscTextNode --- swig/Lasso.i | 41 +++++++++++++++++++++++++++++++++++++++++ swig/inheritance.h | 3 +++ 2 files changed, 44 insertions(+) diff --git a/swig/Lasso.i b/swig/Lasso.i index 8d963624..8624ceee 100644 --- a/swig/Lasso.i +++ b/swig/Lasso.i @@ -59,6 +59,7 @@ #include #include #include +#include #ifdef LASSO_WSF_ENABLED #include @@ -1897,6 +1898,46 @@ static GHashTable* lasso_string_dict_new() +/* General utility elements */ + +#ifndef SWIGPHP4 +%rename(MiscTextNode) LassoMiscTextNode; +#endif +typedef struct { + char *content; + + char *name; + char *ns_href; + char *ns_prefix; +} LassoMiscTextNode; +%extend LassoMiscTextNode { + + /* Constructor, Destructor & Static Methods */ + LassoMiscTextNode(); + ~LassoMiscTextNode(); + + /* Method inherited from LassoNode */ + %newobject dump; + char* dump(); +} + +%{ + +/* Constructors, destructors & static methods implementations */ + +#define new_LassoMiscTextNode lasso_misc_text_node_new +#define delete_LassoMiscTextNode(self) lasso_node_destroy(LASSO_NODE(self)) + +/* Implementations of methods inherited from LassoNode */ + +#define LassoMiscTextNode_dump(self) lasso_node_dump(LASSO_NODE(self)) + +%} + + + + + /*********************************************************************** *********************************************************************** diff --git a/swig/inheritance.h b/swig/inheritance.h index 161975a2..8ee6e7be 100644 --- a/swig/inheritance.h +++ b/swig/inheritance.h @@ -31,6 +31,9 @@ /* FIXME: May be this file should be automatically generated by a script? */ +SET_NODE_INFO(MiscTextNode, Node) + + /* saml prefix */ SET_NODE_INFO(SamlAdvice, Node) -- cgit