pty

  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 _pty as _pty
  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
 57RTEMS_PTY_SB_MAX = _pty.RTEMS_PTY_SB_MAX
 58
 59class rtems_pty_context(object):
 60    r"""Proxy of C rtems_pty_context struct."""
 61
 62    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 63    __repr__ = _swig_repr
 64    base = property(_pty.rtems_pty_context_base_get, _pty.rtems_pty_context_base_set, doc=r"""base : rtems_termios_device_context""")
 65    ttyp = property(_pty.rtems_pty_context_ttyp_get, _pty.rtems_pty_context_ttyp_set, doc=r"""ttyp : p.rtems_termios_tty""")
 66    c_cflag = property(_pty.rtems_pty_context_c_cflag_get, _pty.rtems_pty_context_c_cflag_set, doc=r"""c_cflag : tcflag_t""")
 67    socket = property(_pty.rtems_pty_context_socket_get, _pty.rtems_pty_context_socket_set, doc=r"""socket : int""")
 68    last_cr = property(_pty.rtems_pty_context_last_cr_get, _pty.rtems_pty_context_last_cr_set, doc=r"""last_cr : int""")
 69    iac_mode = property(_pty.rtems_pty_context_iac_mode_get, _pty.rtems_pty_context_iac_mode_set, doc=r"""iac_mode : unsigned int""")
 70    sb_buf = property(_pty.rtems_pty_context_sb_buf_get, _pty.rtems_pty_context_sb_buf_set, doc=r"""sb_buf : a(16).unsigned char""")
 71    sb_ind = property(_pty.rtems_pty_context_sb_ind_get, _pty.rtems_pty_context_sb_ind_set, doc=r"""sb_ind : int""")
 72    width = property(_pty.rtems_pty_context_width_get, _pty.rtems_pty_context_width_set, doc=r"""width : int""")
 73    height = property(_pty.rtems_pty_context_height_get, _pty.rtems_pty_context_height_set, doc=r"""height : int""")
 74    name = property(_pty.rtems_pty_context_name_get, _pty.rtems_pty_context_name_set, doc=r"""name : a(sizeof(/dev/pty18446744073709551615)).char""")
 75
 76    def __init__(self):
 77        r"""__init__(rtems_pty_context self) -> rtems_pty_context"""
 78        _pty.rtems_pty_context_swiginit(self, _pty.new_rtems_pty_context())
 79    __swig_destroy__ = _pty.delete_rtems_pty_context
 80
 81# Register rtems_pty_context in _pty:
 82_pty.rtems_pty_context_swigregister(rtems_pty_context)
 83
 84def rtems_pty_initialize(pty, unique):
 85    r"""
 86    rtems_pty_initialize(rtems_pty_context pty, uintptr_t unique) -> char const *
 87
 88    Parameters
 89    ----------
 90    pty: rtems_pty_context *
 91    unique: uintptr_t
 92
 93    """
 94    return _pty.rtems_pty_initialize(pty, unique)
 95
 96def rtems_pty_get_path(pty):
 97    r"""
 98    rtems_pty_get_path(rtems_pty_context pty) -> char const *
 99
100    Parameters
101    ----------
102    pty: rtems_pty_context const *
103
104    """
105    return _pty.rtems_pty_get_path(pty)
106
107def rtems_pty_close_socket(pty):
108    r"""
109    rtems_pty_close_socket(rtems_pty_context pty)
110
111    Parameters
112    ----------
113    pty: rtems_pty_context *
114
115    """
116    return _pty.rtems_pty_close_socket(pty)
117
118def rtems_pty_set_socket(pty, socket):
119    r"""
120    rtems_pty_set_socket(rtems_pty_context pty, int socket)
121
122    Parameters
123    ----------
124    pty: rtems_pty_context *
125    socket: int
126
127    """
128    return _pty.rtems_pty_set_socket(pty, socket)
RTEMS_PTY_SB_MAX = See C documentation
class rtems_pty_context:
60class rtems_pty_context(object):
61    r"""Proxy of C rtems_pty_context struct."""
62
63    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
64    __repr__ = _swig_repr
65    base = property(_pty.rtems_pty_context_base_get, _pty.rtems_pty_context_base_set, doc=r"""base : rtems_termios_device_context""")
66    ttyp = property(_pty.rtems_pty_context_ttyp_get, _pty.rtems_pty_context_ttyp_set, doc=r"""ttyp : p.rtems_termios_tty""")
67    c_cflag = property(_pty.rtems_pty_context_c_cflag_get, _pty.rtems_pty_context_c_cflag_set, doc=r"""c_cflag : tcflag_t""")
68    socket = property(_pty.rtems_pty_context_socket_get, _pty.rtems_pty_context_socket_set, doc=r"""socket : int""")
69    last_cr = property(_pty.rtems_pty_context_last_cr_get, _pty.rtems_pty_context_last_cr_set, doc=r"""last_cr : int""")
70    iac_mode = property(_pty.rtems_pty_context_iac_mode_get, _pty.rtems_pty_context_iac_mode_set, doc=r"""iac_mode : unsigned int""")
71    sb_buf = property(_pty.rtems_pty_context_sb_buf_get, _pty.rtems_pty_context_sb_buf_set, doc=r"""sb_buf : a(16).unsigned char""")
72    sb_ind = property(_pty.rtems_pty_context_sb_ind_get, _pty.rtems_pty_context_sb_ind_set, doc=r"""sb_ind : int""")
73    width = property(_pty.rtems_pty_context_width_get, _pty.rtems_pty_context_width_set, doc=r"""width : int""")
74    height = property(_pty.rtems_pty_context_height_get, _pty.rtems_pty_context_height_set, doc=r"""height : int""")
75    name = property(_pty.rtems_pty_context_name_get, _pty.rtems_pty_context_name_set, doc=r"""name : a(sizeof(/dev/pty18446744073709551615)).char""")
76
77    def __init__(self):
78        r"""__init__(rtems_pty_context self) -> rtems_pty_context"""
79        _pty.rtems_pty_context_swiginit(self, _pty.new_rtems_pty_context())
80    __swig_destroy__ = _pty.delete_rtems_pty_context

Proxy of C rtems_pty_context struct.

rtems_pty_context()
77    def __init__(self):
78        r"""__init__(rtems_pty_context self) -> rtems_pty_context"""
79        _pty.rtems_pty_context_swiginit(self, _pty.new_rtems_pty_context())

__init__(rtems_pty_context self) -> rtems_pty_context

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

The membership flag

base
ttyp
c_cflag
socket
last_cr
iac_mode
sb_buf
sb_ind
width
height
name
def rtems_pty_initialize(pty, unique):
85def rtems_pty_initialize(pty, unique):
86    r"""
87    rtems_pty_initialize(rtems_pty_context pty, uintptr_t unique) -> char const *
88
89    Parameters
90    ----------
91    pty: rtems_pty_context *
92    unique: uintptr_t
93
94    """
95    return _pty.rtems_pty_initialize(pty, unique)

rtems_pty_initialize(rtems_pty_context pty, uintptr_t unique) -> char const *

Parameters

pty: rtems_pty_context * unique: uintptr_t

def rtems_pty_get_path(pty):
 97def rtems_pty_get_path(pty):
 98    r"""
 99    rtems_pty_get_path(rtems_pty_context pty) -> char const *
100
101    Parameters
102    ----------
103    pty: rtems_pty_context const *
104
105    """
106    return _pty.rtems_pty_get_path(pty)

rtems_pty_get_path(rtems_pty_context pty) -> char const *

Parameters

pty: rtems_pty_context const *

def rtems_pty_close_socket(pty):
108def rtems_pty_close_socket(pty):
109    r"""
110    rtems_pty_close_socket(rtems_pty_context pty)
111
112    Parameters
113    ----------
114    pty: rtems_pty_context *
115
116    """
117    return _pty.rtems_pty_close_socket(pty)

rtems_pty_close_socket(rtems_pty_context pty)

Parameters

pty: rtems_pty_context *

def rtems_pty_set_socket(pty, socket):
119def rtems_pty_set_socket(pty, socket):
120    r"""
121    rtems_pty_set_socket(rtems_pty_context pty, int socket)
122
123    Parameters
124    ----------
125    pty: rtems_pty_context *
126    socket: int
127
128    """
129    return _pty.rtems_pty_set_socket(pty, socket)

rtems_pty_set_socket(rtems_pty_context pty, int socket)

Parameters

pty: rtems_pty_context * socket: int