Commit Graph

24 Commits

Author SHA1 Message Date
Benjamin Dauvergne ec23b23455 [bindings] add a default parameter to is_transfer_full whose default is False 2012-05-05 22:55:57 +02:00
Benjamin Dauvergne b35fc7fffb [bindings] improve matching for object types 2012-05-05 22:55:20 +02:00
Benjamin Dauvergne f3c56a1039 [Bindings] make is_rc only check for lasso_error_t type 2010-07-12 14:09:10 +00:00
Benjamin Dauvergne 9ba548d6a0 [Bindings] add lasso_error_t to return code types 2010-07-12 14:09:00 +00:00
Benjamin Dauvergne 3aec6e5902 [Core] add lasso_error_t to list of integer types 2010-07-12 14:08:57 +00:00
Benjamin Dauvergne 52372fa437 Bindings: keep retro compatibility for member field names
* Special kludge price go to PHP:
   methods name are insensitive so nothing to do here, BUT, if you use
   getters/setters then your objects fields can be case insensitive too
   ;-) (DNS, dns, DnS, dNs all maps to get_dns ).
2010-06-06 14:03:57 +00:00
Benjamin Dauvergne 692e298597 Bindings: fix camelcasing of id fields 2010-06-06 14:03:54 +00:00
Benjamin Dauvergne 7930eba5a3 Bindings: fix parsing of camelcased ident (Samlp2IDPList -> samlp2,idp,list) 2010-03-27 16:51:30 +00:00
Benjamin Dauvergne 008b815194 Bindings: make is_int more robust, and fix remove_modifiers 2010-02-22 13:30:45 +00:00
Benjamin Dauvergne 009b39dbaf Bindings: in utils.py, make clean_type handle None value 2010-02-22 13:30:35 +00:00
Benjamin Dauvergne 7808c4cffa Bindings: restore ID-WSF constants, improve python getters,
* bindings/bindings.py:
   parse idwsf_strings.h to get ID-WSF constants.
 * bindings/utils.py:
   add an is_rc check function, to check for 'error code' return type.
 * bindings/perl/lang.py:
   only raise errors for 'int' or 'gint' return type
 * bindings/python/lang.py:
   - always create a normal function binding.
   - for functions starting with 'get' try to create a corresponding
     property, but if a corresponding member already exists, fails, and
     print a warning about getter function/member field clash.
   - make type dispatching on return_type more explicite.
2010-02-04 22:24:06 +00:00
Benjamin Dauvergne 431e8088a9 Bindings: re-add binding for lasso_session_get_assertions for perl, special case formatting function for WsAddressing namespace
* bindings/utils.py:
   type have LassoWsAddr prefix but function have the lasso_wsa_ prefix,
   so we have to adjust generated prefix.
2010-02-01 19:50:11 +00:00
Benjamin Dauvergne 4912a56b6a Bindings: add time_t to integer types, add unpointerize method 2010-01-28 15:31:58 +00:00
Benjamin Dauvergne 03400fd8f0 Bindings: in bindings/utils.py, augment robustness of matching functions to work with type alone or triples 2010-01-28 15:31:27 +00:00
Benjamin Dauvergne c3c44c2371 Bindings: in utils.py, fix is_glist and is_hashtable, make arg_type accept simple string as input instead of triples 2010-01-25 23:47:55 +00:00
Benjamin Dauvergne 98a48032cb Bindings: make is_cstring usable with tuple and with direct type 2010-01-14 16:18:31 +00:00
Benjamin Dauvergne b77c9cf2e8 Bindings: add support for time_t to bindings, add support for 'string' type for list in java binding 2010-01-12 15:40:21 +00:00
Benjamin Dauvergne fcd8739f49 Bindings: simplify GList handling 2010-01-04 09:16:00 +00:00
Benjamin Dauvergne f61c178bec Bindings: in bindings.py, parse '(in)' gobject-introspection annotation, in 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
2010-01-04 09:13:43 +00:00
Benjamin Dauvergne 5224c7cf67 Bindings: make the binding infrastructure understand GObject-introspections 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.
2010-01-04 09:13:36 +00:00
Benjamin Dauvergne 9ed0670e48 * Remove ending blanks 2008-09-12 15:06:58 +00:00
Frédéric Péters 3b93e1b952 [project @ fpeters@0d.be-20080217115557-8qtcrc1vzb75f75c]
merged Benjamin branch


Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-02-17 12:55:57.088000+01:00
2008-04-29 12:06:30 +00:00
Frédéric Péters 619dcfa169 [project @ fpeters@0d.be-20071101154602-vtgnze1fteggdkvj]
always convert identifers from ID to Id


Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-11-01 16:46:02.686000+01:00
2008-04-29 12:04:04 +00:00
Frédéric Péters f8233551a1 [project @ fpeters@0d.be-20071031114522-jkrmvbpphcm0rms8]
moved identifier name formatting functions to their own module, so they are not
duplicated everywhere.


Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-10-31 12:45:22.367000+01:00
2008-04-29 12:03:40 +00:00