Commit Graph

17 Commits

Author SHA1 Message Date
Benjamin Dauvergne a8e571b4dd [bindings/php5] remove redundant check to is_transfer_full 2012-05-05 23:22:34 +02:00
Benjamin Dauvergne b7958a2e31 [bindings/php5] add missing release for xmlnodes in return value wrapper 2012-05-05 23:21:56 +02:00
Frédéric Péters 33bff4308f php5: use zend_function_entry, for compatibility with PHP 5.4 2012-03-05 14:02:17 +01:00
Benjamin Dauvergne 35ff3d6950 [Strings] add string constant for the internal XML attributes used in dumps
Add string constants for signature method, signature type, private key
(file path or content), private key password and certificate (file path
or content).

Add cast for xmlChar constant strings definition in python bindings, it
assumed all constant strings were char*.
2010-09-03 19:02:37 +02:00
Benjamin Dauvergne ad2a507468 Bindings php5: use accessort from bindings/utils.py
* bindings/php5/wrapper_source.py:
   do not handle 'type/variable' tuple directly, use accessors.
2010-02-22 13:30:43 +00:00
Benjamin Dauvergne 9e683496c6 Binding php5: fix generation of list freeing
* bindings/php5/wrapper_source.py:
   free_glist wants a GList** as first argument.
2010-02-17 10:15:26 +00:00
Benjamin Dauvergne 1dab7b59e5 Bindings: java, php5, python simplify logic in binding generator
* use utils.h macros to manipulate fields.
 * use utils.py function to filter variables, argument and return types.
 * finish support of hashtables of strings for php5 and python.
2010-01-28 15:31:49 +00:00
Benjamin Dauvergne bd2f8ade01 Bindings PHP5: use is_cstring to match string types 2010-01-25 23:47:51 +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 3705a0f86d Bindings php5: add support for xmlNode arguments
* 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).
2009-03-27 15:04:48 +00:00
Benjamin Dauvergne 33bbf7a7de All: Fix missing field initializer problems
* lots of files: Explicitely set all field of initialized structures,
  in order to remove -Wno-missing-field-initilizers from needed
  compiler options when using -Wall -Wextra.
2009-01-24 09:33:40 +00:00
Benjamin Dauvergne 9ed0670e48 * Remove ending blanks 2008-09-12 15:06:58 +00:00
Benjamin Dauvergne 207891ff29 * Fix blanks mismatch (space in *.c and *h files or tabs in *.py files) and formatting 2008-08-05 14:53:29 +00:00
Benjamin Dauvergne 115b18fc6f Move all files related to the php5 binding inside
the php5 subdirectory.
2008-08-05 14:52:56 +00:00