ftpd

  1# This file was automatically generated by SWIG (https://www.swig.org).
  2# Version 4.2.1
  3#
  4# Do not make changes to this file unless you know what you are doing - modify
  5# the SWIG interface file instead.
  6
  7from sys import version_info as _swig_python_version_info
  8from mock_rtems import _ftpd as _ftpd
  9
 10try:
 11    import builtins as __builtin__
 12except ImportError:
 13    import __builtin__
 14
 15def _swig_repr(self):
 16    try:
 17        strthis = "proxy of " + self.this.__repr__()
 18    except __builtin__.Exception:
 19        strthis = ""
 20    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 21
 22
 23def _swig_setattr_nondynamic_instance_variable(set):
 24    def set_instance_attr(self, name, value):
 25        if name == "this":
 26            set(self, name, value)
 27        elif name == "thisown":
 28            self.this.own(value)
 29        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
 30            set(self, name, value)
 31        else:
 32            raise AttributeError("You cannot add instance attributes to %s" % self)
 33    return set_instance_attr
 34
 35
 36def _swig_setattr_nondynamic_class_variable(set):
 37    def set_class_attr(cls, name, value):
 38        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
 39            set(cls, name, value)
 40        else:
 41            raise AttributeError("You cannot add class attributes to %s" % cls)
 42    return set_class_attr
 43
 44
 45def _swig_add_metaclass(metaclass):
 46    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
 47    def wrapper(cls):
 48        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
 49    return wrapper
 50
 51
 52class _SwigNonDynamicMeta(type):
 53    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
 54    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
 55
 56
 57FTPD_CONTROL_PORT = _ftpd.FTPD_CONTROL_PORT
 58
 59FTPD_BUFSIZE = _ftpd.FTPD_BUFSIZE
 60
 61FTPD_DATASIZE = _ftpd.FTPD_DATASIZE
 62
 63FTPD_STACKSIZE = _ftpd.FTPD_STACKSIZE
 64
 65FTPD_NO_WRITE = _ftpd.FTPD_NO_WRITE
 66
 67FTPD_NO_READ = _ftpd.FTPD_NO_READ
 68
 69FTPD_NO_RW = _ftpd.FTPD_NO_RW
 70
 71class rtems_ftpd_hook(object):
 72    r"""Proxy of C rtems_ftpd_hook struct."""
 73
 74    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 75    __repr__ = _swig_repr
 76    filename = property(_ftpd.rtems_ftpd_hook_filename_get, _ftpd.rtems_ftpd_hook_filename_set, doc=r"""filename : p.char""")
 77    hook_function = property(_ftpd.rtems_ftpd_hook_hook_function_get, _ftpd.rtems_ftpd_hook_hook_function_set, doc=r"""hook_function : rtems_ftpd_hookfunction""")
 78
 79    def __init__(self):
 80        r"""__init__(rtems_ftpd_hook self) -> rtems_ftpd_hook"""
 81        _ftpd.rtems_ftpd_hook_swiginit(self, _ftpd.new_rtems_ftpd_hook())
 82    __swig_destroy__ = _ftpd.delete_rtems_ftpd_hook
 83
 84# Register rtems_ftpd_hook in _ftpd:
 85_ftpd.rtems_ftpd_hook_swigregister(rtems_ftpd_hook)
 86class rtems_ftpd_configuration(object):
 87    r"""Proxy of C rtems_ftpd_configuration struct."""
 88
 89    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 90    __repr__ = _swig_repr
 91    priority = property(_ftpd.rtems_ftpd_configuration_priority_get, _ftpd.rtems_ftpd_configuration_priority_set, doc=r"""priority : rtems_task_priority""")
 92    max_hook_filesize = property(_ftpd.rtems_ftpd_configuration_max_hook_filesize_get, _ftpd.rtems_ftpd_configuration_max_hook_filesize_set, doc=r"""max_hook_filesize : unsigned long""")
 93    port = property(_ftpd.rtems_ftpd_configuration_port_get, _ftpd.rtems_ftpd_configuration_port_set, doc=r"""port : int""")
 94    hooks = property(_ftpd.rtems_ftpd_configuration_hooks_get, _ftpd.rtems_ftpd_configuration_hooks_set, doc=r"""hooks : p.struct rtems_ftpd_hook""")
 95    root = property(_ftpd.rtems_ftpd_configuration_root_get, _ftpd.rtems_ftpd_configuration_root_set, doc=r"""root : p.q(const).char""")
 96    tasks_count = property(_ftpd.rtems_ftpd_configuration_tasks_count_get, _ftpd.rtems_ftpd_configuration_tasks_count_set, doc=r"""tasks_count : int""")
 97    idle = property(_ftpd.rtems_ftpd_configuration_idle_get, _ftpd.rtems_ftpd_configuration_idle_set, doc=r"""idle : int""")
 98    access = property(_ftpd.rtems_ftpd_configuration_access_get, _ftpd.rtems_ftpd_configuration_access_set, doc=r"""access : int""")
 99    login = property(_ftpd.rtems_ftpd_configuration_login_get, _ftpd.rtems_ftpd_configuration_login_set, doc=r"""login : rtems_shell_login_check_t""")
100    verbose = property(_ftpd.rtems_ftpd_configuration_verbose_get, _ftpd.rtems_ftpd_configuration_verbose_set, doc=r"""verbose : bool""")
101
102    def __init__(self):
103        r"""__init__(rtems_ftpd_configuration self) -> rtems_ftpd_configuration"""
104        _ftpd.rtems_ftpd_configuration_swiginit(self, _ftpd.new_rtems_ftpd_configuration())
105    __swig_destroy__ = _ftpd.delete_rtems_ftpd_configuration
106
107# Register rtems_ftpd_configuration in _ftpd:
108_ftpd.rtems_ftpd_configuration_swigregister(rtems_ftpd_configuration)
109
110def rtems_ftpd_start(config):
111    r"""
112    rtems_ftpd_start(rtems_ftpd_configuration config) -> rtems_status_code
113
114    Parameters
115    ----------
116    config: struct rtems_ftpd_configuration const *
117
118    """
119    return _ftpd.rtems_ftpd_start(config)
120
121def rtems_initialize_ftpd():
122    r"""rtems_initialize_ftpd() -> rtems_status_code"""
123    return _ftpd.rtems_initialize_ftpd()
FTPD_CONTROL_PORT = See C documentation
FTPD_BUFSIZE = See C documentation
FTPD_DATASIZE = See C documentation
FTPD_STACKSIZE = See C documentation
FTPD_NO_WRITE = See C documentation
FTPD_NO_READ = See C documentation
FTPD_NO_RW = See C documentation
class rtems_ftpd_hook:
72class rtems_ftpd_hook(object):
73    r"""Proxy of C rtems_ftpd_hook struct."""
74
75    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
76    __repr__ = _swig_repr
77    filename = property(_ftpd.rtems_ftpd_hook_filename_get, _ftpd.rtems_ftpd_hook_filename_set, doc=r"""filename : p.char""")
78    hook_function = property(_ftpd.rtems_ftpd_hook_hook_function_get, _ftpd.rtems_ftpd_hook_hook_function_set, doc=r"""hook_function : rtems_ftpd_hookfunction""")
79
80    def __init__(self):
81        r"""__init__(rtems_ftpd_hook self) -> rtems_ftpd_hook"""
82        _ftpd.rtems_ftpd_hook_swiginit(self, _ftpd.new_rtems_ftpd_hook())
83    __swig_destroy__ = _ftpd.delete_rtems_ftpd_hook

Proxy of C rtems_ftpd_hook struct.

rtems_ftpd_hook()
80    def __init__(self):
81        r"""__init__(rtems_ftpd_hook self) -> rtems_ftpd_hook"""
82        _ftpd.rtems_ftpd_hook_swiginit(self, _ftpd.new_rtems_ftpd_hook())

__init__(rtems_ftpd_hook self) -> rtems_ftpd_hook

thisown
75    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

The membership flag

filename
hook_function
class rtems_ftpd_configuration:
 87class rtems_ftpd_configuration(object):
 88    r"""Proxy of C rtems_ftpd_configuration struct."""
 89
 90    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 91    __repr__ = _swig_repr
 92    priority = property(_ftpd.rtems_ftpd_configuration_priority_get, _ftpd.rtems_ftpd_configuration_priority_set, doc=r"""priority : rtems_task_priority""")
 93    max_hook_filesize = property(_ftpd.rtems_ftpd_configuration_max_hook_filesize_get, _ftpd.rtems_ftpd_configuration_max_hook_filesize_set, doc=r"""max_hook_filesize : unsigned long""")
 94    port = property(_ftpd.rtems_ftpd_configuration_port_get, _ftpd.rtems_ftpd_configuration_port_set, doc=r"""port : int""")
 95    hooks = property(_ftpd.rtems_ftpd_configuration_hooks_get, _ftpd.rtems_ftpd_configuration_hooks_set, doc=r"""hooks : p.struct rtems_ftpd_hook""")
 96    root = property(_ftpd.rtems_ftpd_configuration_root_get, _ftpd.rtems_ftpd_configuration_root_set, doc=r"""root : p.q(const).char""")
 97    tasks_count = property(_ftpd.rtems_ftpd_configuration_tasks_count_get, _ftpd.rtems_ftpd_configuration_tasks_count_set, doc=r"""tasks_count : int""")
 98    idle = property(_ftpd.rtems_ftpd_configuration_idle_get, _ftpd.rtems_ftpd_configuration_idle_set, doc=r"""idle : int""")
 99    access = property(_ftpd.rtems_ftpd_configuration_access_get, _ftpd.rtems_ftpd_configuration_access_set, doc=r"""access : int""")
100    login = property(_ftpd.rtems_ftpd_configuration_login_get, _ftpd.rtems_ftpd_configuration_login_set, doc=r"""login : rtems_shell_login_check_t""")
101    verbose = property(_ftpd.rtems_ftpd_configuration_verbose_get, _ftpd.rtems_ftpd_configuration_verbose_set, doc=r"""verbose : bool""")
102
103    def __init__(self):
104        r"""__init__(rtems_ftpd_configuration self) -> rtems_ftpd_configuration"""
105        _ftpd.rtems_ftpd_configuration_swiginit(self, _ftpd.new_rtems_ftpd_configuration())
106    __swig_destroy__ = _ftpd.delete_rtems_ftpd_configuration

Proxy of C rtems_ftpd_configuration struct.

rtems_ftpd_configuration()
103    def __init__(self):
104        r"""__init__(rtems_ftpd_configuration self) -> rtems_ftpd_configuration"""
105        _ftpd.rtems_ftpd_configuration_swiginit(self, _ftpd.new_rtems_ftpd_configuration())

__init__(rtems_ftpd_configuration self) -> rtems_ftpd_configuration

thisown
90    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

The membership flag

priority
max_hook_filesize
port
hooks
root
tasks_count
idle
access
login
verbose
def rtems_ftpd_start(config):
111def rtems_ftpd_start(config):
112    r"""
113    rtems_ftpd_start(rtems_ftpd_configuration config) -> rtems_status_code
114
115    Parameters
116    ----------
117    config: struct rtems_ftpd_configuration const *
118
119    """
120    return _ftpd.rtems_ftpd_start(config)

rtems_ftpd_start(rtems_ftpd_configuration config) -> rtems_status_code

Parameters

config: struct rtems_ftpd_configuration const *

def rtems_initialize_ftpd():
122def rtems_initialize_ftpd():
123    r"""rtems_initialize_ftpd() -> rtems_status_code"""
124    return _ftpd.rtems_initialize_ftpd()

rtems_initialize_ftpd() -> rtems_status_code