diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2007-05-02 09:28:38 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2007-05-02 09:28:38 +0000 |
| commit | 3568f40256e6b686c06fc655c87f441eeb084d53 (patch) | |
| tree | 7acdc03ce4c7f9a6190f43e0562a982dcf4bfe83 | |
| parent | f905d8ed8fbcf6218277ab98c13806d7b8d4c768 (diff) | |
| download | lasso-3568f40256e6b686c06fc655c87f441eeb084d53.tar.gz lasso-3568f40256e6b686c06fc655c87f441eeb084d53.tar.xz lasso-3568f40256e6b686c06fc655c87f441eeb084d53.zip | |
binding for LassoMiscTextNode
| -rw-r--r-- | swig/Lasso.i | 41 | ||||
| -rw-r--r-- | swig/inheritance.h | 3 |
2 files changed, 44 insertions, 0 deletions
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 <lasso/lasso.h> #include <lasso/xml/lib_assertion.h> #include <lasso/xml/saml_attribute_value.h> +#include <lasso/xml/misc_text_node.h> #ifdef LASSO_WSF_ENABLED #include <lasso/xml/disco_resource_id.h> @@ -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) |
