Ejemplo n.º 1
0
    def xBooleanSetValue(self, value):

        value = bool8_t(value)
        # AC_ERROR acBooleanSetValue(
        #   acNode hNode,
        #   bool8_t value)
        harenac.acBooleanSetValue(self.hxnode, value)
Ejemplo n.º 2
0
    def xEnumEntryIsSelfClearing(self):

        is_selfclearing = bool8_t(False)
        # AC_ERROR acEnumEntryIsSelfClearing(
        #   acNode hNode,
        #   bool8_t* pIsSelfClearing)
        harenac.acEnumEntryIsSelfClearing(self.hxnode, byref(is_selfclearing))

        return is_selfclearing.value
Ejemplo n.º 3
0
    def xBooleanGetValue(self):

        value = bool8_t(False)
        # AC_ERROR acBooleanGetValue(
        #   acNode hNode,
        #   bool8_t* pValue)
        harenac.acBooleanGetValue(self.hxnode, byref(value))

        return value.value
Ejemplo n.º 4
0
    def xFloatHasInc(self):

        has_inc = bool8_t(False)
        # AC_ERROR acFloatHasInc(
        #   acNode hNode,
        #   bool8_t* pHasInc)
        harenac.acFloatHasInc(self.hxnode, byref(has_inc))

        return has_inc.value
Ejemplo n.º 5
0
    def xSelectorIsSelector(self):

        is_selector = bool8_t(False)
        # AC_ERROR acSelectorIsSelector(
        #   acNode hNode,
        #   bool8_t* pIsSelector)
        harenac.acSelectorIsSelector(self.hxnode, byref(is_selector))

        return is_selector.value
Ejemplo n.º 6
0
    def xNodeIsDeprecated(self):

        is_deprecated = bool8_t(False)
        # AC_ERROR acNodeIsDeprecated(
        #   acNode hNode,
        #   bool8_t* pIsDeprecated)
        harenac.acNodeIsDeprecated(self.hxnode, byref(is_deprecated))

        return is_deprecated.value
Ejemplo n.º 7
0
    def xNodeIsCachable(self):

        is_cachable = bool8_t(False)
        # AC_ERROR acNodeIsCachable(
        #   acNode hNode,
        #   bool8_t* pIsCachable)
        harenac.acNodeIsCachable(self.hxnode, byref(is_cachable))

        return is_cachable.value
Ejemplo n.º 8
0
    def xValueIsValueCacheValid(self):

        is_valid = bool8_t(False)
        # AC_ERROR acValueIsValueCacheValid(
        #   acNode hNode,
        #   bool8_t* pIsValid)
        harenac.acValueIsValueCacheValid(self.hxnode, byref(is_valid))

        return is_valid.value
Ejemplo n.º 9
0
    def xCommandIsDone(self):

        is_done = bool8_t(False)
        # AC_ERROR acCommandIsDone(
        #   acNode hNode,
        #   bool8_t* pIsDone)
        harenac.acCommandIsDone(self.hxnode, byref(is_done))

        return is_done.value
Ejemplo n.º 10
0
    def xNodeIsFeature(self):

        is_feature = bool8_t(False)
        # AC_ERROR acNodeIsFeature(
        #   acNode hNode,
        #   bool8_t* pIsFeature)

        harenac.acNodeIsFeature(self.hxnode, byref(is_feature))

        return is_feature.value
Ejemplo n.º 11
0
    def xBufferVerifyCRC(self):

        is_correct_crc = bool8_t(False)
        # AC_ERROR acBufferVerifyCRC(
        #   acBuffer hBuffer,
        #   bool8_t * pVerifyCRC)
        harenac.acBufferVerifyCRC(
            self.hxbuffer,
            byref(is_correct_crc))

        return is_correct_crc.value
Ejemplo n.º 12
0
    def xBufferDataLargerThanBuffer(self):

        is_data_larger_than_buffer = bool8_t(False)
        # AC_ERROR acBufferDataLargerThanBuffer(
        #   acBuffer hBuffer,
        #   bool8_t * pDataLargerThanBuffer)
        harenac.acBufferDataLargerThanBuffer(
            self.hxbuffer,
            byref(is_data_larger_than_buffer))

        return is_data_larger_than_buffer.value
Ejemplo n.º 13
0
    def xBufferIsIncomplete(self):

        is_incomplete = bool8_t(False)
        # AC_ERROR acBufferIsIncomplete(
        #   acBuffer hBuffer,
        #   bool8_t * pIsIncomplete)
        harenac.acBufferIsIncomplete(
            self.hxbuffer,
            byref(is_incomplete))

        return is_incomplete.value
Ejemplo n.º 14
0
    def xBufferHasChunkData(self):

        has_chunk_data = bool8_t(False)
        # AC_ERROR acBufferHasChunkData(
        #   acBuffer hBuffer,
        #   bool8_t * pHasChunkData)
        harenac.acBufferHasChunkData(
            self.hxbuffer,
            byref(has_chunk_data))

        return has_chunk_data.value
Ejemplo n.º 15
0
    def xIsReadable(h_node):
        node = acNode(h_node)
        is_readable = bool8_t(False)
        # AC_ERROR acIsReadable(
        #   acNode hNode,
        #   bool8_t* pIsReadable)
        harenac.acIsReadable(
            node,
            byref(is_readable))

        return is_readable.value
Ejemplo n.º 16
0
    def xSystemIsDeviceLLAConfigurationEnabled(self, index):

        index = size_t(index)
        lla_config_enabled = bool8_t(False)
        # AC_ERROR acSystemIsDeviceLLAConfigurationEnabled(
        #   acSystem hSystem,
        #   size_t index,
        #   bool8_t * pIsLLAIpConfigurationEnabled)
        harenac.acSystemIsDeviceLLAConfigurationEnabled(
            self.__acsystem,
            index,
            byref(lla_config_enabled))

        return lla_config_enabled.value
Ejemplo n.º 17
0
    def xSystemIsDevicePersistentIpConfigurationEnabled(self, index):

        index = size_t(index)
        persistent_ip_config_enabled = bool8_t(False)
        # AC_ERROR acSystemIsDevicePersistentIpConfigurationEnabled(
        #   acSystem hSystem,
        #   size_t index,
        #   bool8_t * pIsPersistentIpConfigurationEnabled)
        harenac.acSystemIsDevicePersistentIpConfigurationEnabled(
            self.__acsystem,
            index,
            byref(persistent_ip_config_enabled))

        return persistent_ip_config_enabled.value
Ejemplo n.º 18
0
    def xSystemIsDeviceDHCPConfigurationEnabled(self, index):

        index = size_t(index)
        dhcp_config_enabled = bool8_t(False)
        # AC_ERROR acSystemIsDeviceDHCPConfigurationEnabled
        #   (acSystem hSystem,
        #   size_t index,
        #   bool8_t * pIsDHCPConfigurationEnabled)
        harenac.acSystemIsDeviceDHCPConfigurationEnabled(
            self.__acsystem,
            index,
            byref(dhcp_config_enabled))

        return dhcp_config_enabled.value
Ejemplo n.º 19
0
    def xSystemUpdateDevicesHasChanged(self, timout_milisec):

        timout_milisec = uint64_t(timout_milisec)
        has_changed = bool8_t(False)
        # AC_ERROR acSystemUpdateDevicesHasChanged(
        #   acSystem hSystem,
        #   uint64_t timeout,
        #   bool8_t* pHasChanged)
        harenac.acSystemUpdateDevicesHasChanged(
            self.__acsystem,
            timout_milisec,
            byref(has_changed))

        return has_changed.value
Ejemplo n.º 20
0
    def xSystemUpdateDevicesOnInterface(self, interface_index, timout_milisec):

        index = size_t(interface_index)
        timout_milisec = uint64_t(timout_milisec)
        has_changed = bool8_t(False)
        # AC_ERROR acSystemUpdateDevicesOnInterface(
        #   acSystem hSystem,
        #   size_t interfaceIndex,
        #   uint64_t timeout,
        #   bool8_t * pHasChanged)
        harenac.acSystemUpdateDevicesOnInterface(
            self.__acsystem,
            index,
            timout_milisec,
            byref(has_changed))

        return has_changed.value