version
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 _version as _version 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 57 58def rtems_version(): 59 r"""Returns the version string.""" 60 return _version.rtems_version() 61 62def rtems_version_major(): 63 r"""Returns the version's major number.""" 64 return _version.rtems_version_major() 65 66def rtems_version_minor(): 67 r"""Returns the version's minor number.""" 68 return _version.rtems_version_minor() 69 70def rtems_version_revision(): 71 r"""Returns the version's revision number.""" 72 return _version.rtems_version_revision() 73 74def rtems_version_control_key(): 75 r""" 76 Deprecated: 77 78 Returns the version control key for the current version of code that 79 has been built. 80 81 The key is specific to the version control system being used and allows the 82 built version to be identified. 83 84 Use rtems_version_control_key_is_valid() to check if the version control key 85 is valid. 86 87 :rtype: string 88 :return: The version control key. 89 """ 90 return _version.rtems_version_control_key() 91 92def rtems_version_control_key_is_valid(key): 93 r""" 94 Deprecated: 95 96 Returns true, if the version control key is valid, otherwise false. 97 """ 98 return _version.rtems_version_control_key_is_valid(key) 99 100def rtems_version_release_label(): 101 r""" 102 Returns the revision label for the current version of code 103 that has been built. 104 105 The release label is a string of characters. Only the RTEMS project 106 released sources can have an empty release label. 107 108 Use rtems_version_release_label_is_valid() to check if the release label 109 is valid. 110 111 :rtype: string 112 :return: The release label. 113 """ 114 return _version.rtems_version_release_label() 115 116def rtems_version_release_label_is_valid(): 117 r"""Returns true, if the release label is valid, otherwise false.""" 118 return _version.rtems_version_release_label_is_valid() 119 120def rtems_board_support_package(): 121 r""" 122 Returns the board support package name. 123 124 :rtype: string 125 :return: The board support package name. 126 """ 127 return _version.rtems_board_support_package()
Returns the version string.
63def rtems_version_major(): 64 r"""Returns the version's major number.""" 65 return _version.rtems_version_major()
Returns the version's major number.
67def rtems_version_minor(): 68 r"""Returns the version's minor number.""" 69 return _version.rtems_version_minor()
Returns the version's minor number.
71def rtems_version_revision(): 72 r"""Returns the version's revision number.""" 73 return _version.rtems_version_revision()
Returns the version's revision number.
75def rtems_version_control_key(): 76 r""" 77 Deprecated: 78 79 Returns the version control key for the current version of code that 80 has been built. 81 82 The key is specific to the version control system being used and allows the 83 built version to be identified. 84 85 Use rtems_version_control_key_is_valid() to check if the version control key 86 is valid. 87 88 :rtype: string 89 :return: The version control key. 90 """ 91 return _version.rtems_version_control_key()
Deprecated:
Returns the version control key for the current version of code that has been built.
The key is specific to the version control system being used and allows the built version to be identified.
Use rtems_version_control_key_is_valid() to check if the version control key is valid.
Returns
The version control key.
93def rtems_version_control_key_is_valid(key): 94 r""" 95 Deprecated: 96 97 Returns true, if the version control key is valid, otherwise false. 98 """ 99 return _version.rtems_version_control_key_is_valid(key)
Deprecated:
Returns true, if the version control key is valid, otherwise false.
101def rtems_version_release_label(): 102 r""" 103 Returns the revision label for the current version of code 104 that has been built. 105 106 The release label is a string of characters. Only the RTEMS project 107 released sources can have an empty release label. 108 109 Use rtems_version_release_label_is_valid() to check if the release label 110 is valid. 111 112 :rtype: string 113 :return: The release label. 114 """ 115 return _version.rtems_version_release_label()
Returns the revision label for the current version of code that has been built.
The release label is a string of characters. Only the RTEMS project released sources can have an empty release label.
Use rtems_version_release_label_is_valid() to check if the release label is valid.
Returns
The release label.
117def rtems_version_release_label_is_valid(): 118 r"""Returns true, if the release label is valid, otherwise false.""" 119 return _version.rtems_version_release_label_is_valid()
Returns true, if the release label is valid, otherwise false.
121def rtems_board_support_package(): 122 r""" 123 Returns the board support package name. 124 125 :rtype: string 126 :return: The board support package name. 127 """ 128 return _version.rtems_board_support_package()
Returns the board support package name.
Returns
The board support package name.