summaryrefslogtreecommitdiffstats
path: root/bindings
Commit message (Collapse)AuthorAgeFilesLines
...
* Bindings: better parse oftype annotation for hashtable, allow to skip structuresBenjamin Dauvergne2010-01-282-24/+50
| | | | | | | | | | | | * bindings/bindings.py: add possibility to skip generating bindings for structures to overrides.xml. parse element-type annotation /* of XXX */ for hashtable objects. output to stderr warning about skipped objects. parse idwsf_strings.h * bindings/overrides.xml: skip more ID-WSF 1.0 functions in java and perl. skip structure LassoAuthentication.
* Bindings: in bindings/utils.py, augment robustness of matching functions to ↵Benjamin Dauvergne2010-01-281-15/+22
| | | | work with type alone or triples
* Binding perl: update to bindingBenjamin Dauvergne2010-01-284-10/+40
| | | | | | | * change extension of typemap files because if conflicts with existing * support constant list of strings and gobjects, add input rule for list of gobjects * fix setter for GList fields
* Binding perl: fix include paths in the makefile, againBenjamin Dauvergne2010-01-262-2/+2
|
* in bindings/perl/Makefile.PL, add include path for normal buildsBenjamin Dauvergne2010-01-261-1/+1
|
* in bindings/perl/Makefile.am, change permission to make distcheck worksBenjamin Dauvergne2010-01-261-4/+11
|
* in bindings/perl/Makefile.am, add files to EXTRA_DISTBenjamin Dauvergne2010-01-261-1/+1
|
* Bindings: add a new perl binding using the new binding infrastructureBenjamin Dauvergne2010-01-2515-3/+1116
| | | | | | | | | | | | | | | | * XS files is autogenerated using bindings/binding.py model of the Lasso API. All constants are in the Lasso::Constants package, the LASSO_ prefix is removed. All classes are now Lasso::ClassName, field accessor also serves as setters, i.e you can do this: $name_id = Lasso::Saml2NameID::new(); $name_id->content('coin'); print $name_id->content; Is still missing: - a lot of test files, - support for hashtables, - and throwing exceptions when return code is non-zero.
* Bindings: in utils.py, fix is_glist and is_hashtable, make arg_type accept ↵Benjamin Dauvergne2010-01-251-5/+7
| | | | simple string as input instead of triples
* Bindings PHP5: use is_cstring to match string typesBenjamin Dauvergne2010-01-251-1/+1
|
* in bindings/ghashtable.h, Add missing unused argument hintsBenjamin Dauvergne2010-01-251-1/+2
|
* Bindings java: cast return value of special constructorsBenjamin Dauvergne2010-01-251-1/+1
| | | | | | | * bindings/java/lang.py: in the JAVA API special constructors are made to return their real type, but usual GObject constructors return their base type (here LassoNode) so we have to cast it.
* Bindings: remove useless overridesBenjamin Dauvergne2010-01-211-11/+0
| | | | | | * bindings/overrides.xml: It is no more needed to force return type of constructors to their real types, the bindings check the type dynamically anyway.
* Fix GHashTable backward compatibility headerBenjamin Dauvergne2010-01-211-2/+6
| | | | | | * lasso/ghashtable.h: g_hash_table_remove_all_nodes is not a public function, use g_hash_table_foreach_remove instead.
* Bindings PHP5: rewire php5 tests to the makefiles, make them pass distcheckBenjamin Dauvergne2010-01-186-5/+6
|
* Add bindings/python/examples to dist fileBenjamin Dauvergne2010-01-161-1/+1
|
* Tools: add script to generate a listing of Lasso ABIBenjamin Dauvergne2010-01-141-5/+6
| | | | | | | | * tools/api.py: use parser from the binding generator to output a list of symbols * bindings/bindings.py; add private flags to not clobber 'private' fields of structures or methods not exported in bindings like _get_type.
* Bindings python: use is_cstring for matching GList element typeBenjamin Dauvergne2010-01-141-1/+1
|
* Bindings: make is_cstring usable with tuple and with direct typeBenjamin Dauvergne2010-01-141-1/+3
|
* Bindings: add support for time_t to bindings, add support for 'string' type ↵Benjamin Dauvergne2010-01-124-5/+5
| | | | for list in java binding
* Binding python: provide old binding name for set_encryptionModeBenjamin Dauvergne2010-01-121-0/+1
|
* Bindings: simplify GList handlingBenjamin Dauvergne2010-01-046-96/+120
|
* Bindings: in bindings/python/Makefile.am, precise generated files dependenciesBenjamin Dauvergne2010-01-041-0/+2
|
* Bindings: in overrides.xml, remove noew useless directivesBenjamin Dauvergne2010-01-041-47/+0
|
* Python binding: update test scripts to new ID-WSF APIBenjamin Dauvergne2010-01-042-34/+61
|
* Binding ID-WSF 2.0: do not bind lasso_wsa_endpoint_reference_get_*_token methodsBenjamin Dauvergne2010-01-041-0/+2
|
* Bindings: in bindings.py, parse '(in)' gobject-introspection annotation, in ↵Benjamin Dauvergne2010-01-044-43/+54
| | | | | | | | | | utils.py, use it to reverse default annotation for pointer of pointers Bindings: in bindings.py, improve regular expression for declarations Bindings: parse gobject-introspection annotation in return value documentation, add cast to C calls when parameter type is const in java binding, problem arise with const char ** arrays
* Bindings: do not stop on failing to parse a declaration, but skip the ↵Benjamin Dauvergne2010-01-041-2/+3
| | | | function and print a warning
* Python binding: add a pyobject->time_t conversion functionBenjamin Dauvergne2010-01-041-2/+20
|
* Bindings python: in wrapper_top.c, mark internal function as potentially unusedBenjamin Dauvergne2010-01-041-13/+14
|
* Bindings: make the binding infrastructure understand GObject-introspections ↵Benjamin Dauvergne2010-01-0410-158/+481
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | annotations * bindings/bindings.py * bindings/utils.py: add convenience function to treat arguments tuple: (type,name,{annotations}). introduce new argument options, fix that arguments are 3-tuple of the form (type,name,annotations), where annotations is a dictionary. Key of this dictionnary can be: - optional, wheter the argument is necessary, it means it has a default value. - out, means that the pointer is a pointer of pointer, for bindings that can return exceptions, it will be returned instead of the integer error code, the only way to access error codes will be exceptions. - element-type, contained type of a list or an array, - key-type, value-type, type of respectively the key and value of a GHashTable. - transfer, wheter a the callee(for arguments)/caller(for return values) owns the values passed, it can be none,container(if the callee/caller only owns the container not the contained value) or full. doc.parameters is now a 3-tuple of (attribute-name, attribute-description, attribute-annotations) where attribute-annotations is a string of the form '(option1)(option2 option-arguments) etc.'. - add predicates for xml, list and time_t values. improve predicates for cstring and const modifier. * bindings/overrides.xml: 'out' arguments are not well supported for java, so skip functions using them. * bindings/java/lang.py bindings/php5/php_code.py bindings/php5/wrapper_source.py bindings/python/lang.py: - update language specifig binding generators for handling new annotations. - improve python method declaration, handle optional arguments with default values, factorize this chode in two methods, get_python_arg_decl and defval_to_python_value. * bindings/python/tests/Makefile.am bindings/python/tests/idwsf1_tests.py bindings/python/tests/idwsf2_tests.py: make test work with out of source build dir.
* Remove beginning of a PHP4 bindingBenjamin Dauvergne2009-12-086-2711/+0
|
* Bindings: add support for gucharBenjamin Dauvergne2009-09-112-7/+7
| | | | | | * bindings/java/lang.py: * bindings/python/lang.py: add guchar to list of C types everywhere.
* Binding: skip lasso_data_service_get_query_itemBenjamin Dauvergne2009-08-281-0/+1
| | | | | | * bindings/overrides.xml: bindings do not support out arguments, so skip generating bindings for lasso_data_service_get_query_item for the moment.
* Bindings: Skip lasso_data_service_get_answersBenjamin Dauvergne2009-08-271-0/+1
| | | | * bindings/overrides.xml: skip unsupported function.
* XML: Add all including header fil for saml2, id-ff and id-wsfBenjamin Dauvergne2009-08-261-0/+2
| | | | | | | | | * lasso/xml/xml_idff.h: this header file reference all id-ff 1.2 elements * lasso/xml/xml_idwsf.h: this header file reference all id-wsf 1.0 elements * lasso/xml/saml-2.0/xml_saml2.h: this header file reference all saml-2.0 elements
* Bindings: for functions that must be totally skiped do it during parsingBenjamin Dauvergne2009-08-261-27/+35
| | | | | | | * bindings/bindings.py: parsing of argument type is still not advanced enough, so in order to remove spurious warnings, skip function directly during parsing just before the treatment of function signature.
* Bindings: skip ID-WSF methods with unsupported signaturesBenjamin Dauvergne2009-08-261-3/+6
| | | | | | * bindings/overrides.xml: some functions have output parameters (pointer on pointers) that are currently not supported by our binding generator, so we skip them.
* Python Binding: fix bug of uninitialized ppos argument to PyDict_NextBenjamin Dauvergne2009-06-151-2/+3
| | | | | | | | | | * bindings/pyhton/wrapper_top.c (set_hashtable_of_pygobject): second argument (int*ppos) of PyDict_Next must be reinitialized to zero before each traversal (see Python C API http://docs.python.org/c-api/dict.html). Patch from Iban Rodríguez of the Desarrollo de Producto Electrónico, Spain.
* Fix leak in python bindingBenjamin Dauvergne2009-04-301-3/+3
| | | | | * bindings/python/wrapper_top.c: keep a pointer on beginning of list to free it.
* new function lasso_profile_get_server()Benjamin Dauvergne2009-04-271-0/+1
| | | | | | | | | | * lasso/id-ff/profile.c: * lasso/id-ff/profile.h: in a move to try to remove direct access to object content, add a function to retrieve the LassoServer object of a LassoProfile. * bindings/overrides.xml: it conflicts with direct access to the public field server, so we do not export it in the binding for now.
* Fix python 2.4 binding buildJerome Schneider2009-04-171-0/+6
|
* Fix build issues on amd64 / gcc 4.3Jerome Schneider2009-04-092-2/+2
| | | | | | | | | * bindings/java/lang.py: fix cast issue * bindings/python/wrapper_top.c fix type issue * lasso/registry.c fix cast issue
* Bindings: skip DEPRECATED variablesBenjamin Dauvergne2009-03-271-0/+2
| | | | | * bindings/bindings.py: when parsing headers, skipped deprecated struct fields.
* ID-WSF 2.0: make it work with --enabe-debuggingBenjamin Dauvergne2009-03-271-6/+0
| | | | | | | | | | | | | * lasso/id-wsf-2.0/data_service.c: * lasso/id-wsf-2.0/discovery.c: * lasso/id-wsf-2.0/profile.c: * lasso/id-wsf/data_service.c: * lasso/id-wsf/discovery.c: * lasso/id-wsf/wsf_profile.c: when --enable-debugging is activated much more type checking is done by internal macros, and code do not pass compile anymore. * bindings/python/tests/idwsf2_tests.py: nameIdentifier packing in SOAP ID-WSF calls headers is no longer supported, do not test it.
* SAML 2.0: API for Saml2EncryptedElement decryptBenjamin Dauvergne2009-03-271-0/+1
| | | | | | | | | | | | | | | | * lasso/xml/xml_enc.h: remove old functions * lasso/xml/private.h: remove lasso_node_(de/en)crypt from public headers API, they were not exported anyway. move them to internal header. * lasso/xml/saml-2.0/saml2_encrypted_element.{c,h}: add a new decrypt function to convert a EncryptedElement to the contained encrypted node objects. * bindings/overrrides.xml: do not export the new method, wait for implementation of output arguments. * lasso/id-ff/server.c: remove lasso_decrypt_nameid from lasso/id-ff/server.c
* Bindings php5: add support for xmlNode argumentsBenjamin Dauvergne2009-03-272-3/+15
| | | | | | | | * bindings/php5/php_code.py: * bindings/php5/wrapper_source.py: complete error reporting about on documentation treatment. treat xmlNode* arguments (convert string to xmlNode, give as argument, then frees it).
* Bindings: fix documentation parsingBenjamin Dauvergne2009-03-272-5/+2
| | | | | | | | * bindings/bindings.py: fix regex to match documentation (remove condition terminating on '**/') print error messages to stderr. * bindings/java/lang.py: remove commented debugging code
* fixed parsing of OFTYPEDamien Laniel2009-02-051-1/+1
|
* Java: add assertionsBenjamin Dauvergne2009-01-241-1/+2
| | | | | * bindings/java/tests/LoginTest.java: add assertion for the return code of lasso_logout_process_request_msg.