slidge_whatsapp.generated.build#

Attributes#

mod

Classes#

CheckedFunction

Class that generates a wrapper to a C function.

Functions#

add_checked_function(mod, name, retval, params[, ...])

add_checked_string_function(mod, name, retval, params)

Module Contents#

class slidge_whatsapp.generated.build.CheckedFunction(*a, **kw)[source]#

Bases: pybindgen.Function

Class that generates a wrapper to a C function.

Parameters:
  • function_name – name of the C function

  • return_value (L{ReturnValue}) – the function return value

  • parameters (list of L{Parameter}) – the function parameters

  • custom_name – an alternative name to give to this function at python-side; if omitted, the name of the function in the python module will be the same name as the function in C++ (minus namespace).

  • deprecated – deprecation state for this API: - False: Not deprecated - True: Deprecated - “message”: Deprecated, and deprecation warning contains the given message

  • foreign_cpp_namespace – if set, the function is assumed to belong to the given C++ namespace, regardless of the C++ namespace of the python module it will be added to.

  • throw (list of L{CppException}) – list of C++ exceptions that the function may throw

_failure_expression[source]#
_failure_cleanup[source]#
set_failure_expression(expr)[source]#
set_failure_cleanup(expr)[source]#
generate_call()[source]#

virtual method implementation; do not call

slidge_whatsapp.generated.build.add_checked_function(mod, name, retval, params, failure_expression='', *a, **kw)[source]#
slidge_whatsapp.generated.build.add_checked_string_function(mod, name, retval, params, failure_expression='', *a, **kw)[source]#
slidge_whatsapp.generated.build.mod[source]#