python类c_bool()的实例源码

vlc.py 文件源码 项目:YoutubeMusicBot 作者: Gr3atWh173 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
def libvlc_dialog_post_login(p_id, psz_username, psz_password, b_store):
    '''Post a login answer
    After this call, p_id won't be valid anymore
    See libvlc_dialog_cbs.pf_display_login.
    @param p_id: id of the dialog.
    @param psz_username: valid and non empty string.
    @param psz_password: valid string (can be empty).
    @param b_store: if true, store the credentials.
    @return: 0 on success, or -1 on error.
    @version: LibVLC 3.0.0 and later.
    '''
    f = _Cfunctions.get('libvlc_dialog_post_login', None) or \
        _Cfunction('libvlc_dialog_post_login', ((1,), (1,), (1,), (1,),), None,
                    ctypes.c_int, ctypes.c_void_p, ctypes.c_char_p, ctypes.c_char_p, ctypes.c_bool)
    return f(p_id, psz_username, psz_password, b_store)
vlc.py 文件源码 项目:YoutubeMusicBot 作者: Gr3atWh173 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def libvlc_media_player_add_slave(p_mi, i_type, psz_uri, b_select):
    '''Add a slave to the current media player.
    @note: If the player is playing, the slave will be added directly. This call
    will also update the slave list of the attached L{Media}.
    @param p_mi: the media player.
    @param i_type: subtitle or audio.
    @param psz_uri: Uri of the slave (should contain a valid scheme).
    @param b_select: True if this slave should be selected when it's loaded.
    @return: 0 on success, -1 on error.
    @version: LibVLC 3.0.0 and later. See L{libvlc_media_slaves_add}.
    '''
    f = _Cfunctions.get('libvlc_media_player_add_slave', None) or \
        _Cfunction('libvlc_media_player_add_slave', ((1,), (1,), (1,), (1,),), None,
                    ctypes.c_int, MediaPlayer, MediaSlaveType, ctypes.c_char_p, ctypes.c_bool)
    return f(p_mi, i_type, psz_uri, b_select)
vlc.py 文件源码 项目:YoutubeMusicBot 作者: Gr3atWh173 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def libvlc_video_update_viewpoint(p_mi, p_viewpoint, b_absolute):
    '''Update the video viewpoint information.
    @note: It is safe to call this function before the media player is started.
    @param p_mi: the media player.
    @param p_viewpoint: video viewpoint allocated via L{libvlc_video_new_viewpoint}().
    @param b_absolute: if true replace the old viewpoint with the new one. If false, increase/decrease it.
    @return: -1 in case of error, 0 otherwise @note the values are set asynchronously, it will be used by the next frame displayed.
    @version: LibVLC 3.0.0 and later.
    '''
    f = _Cfunctions.get('libvlc_video_update_viewpoint', None) or \
        _Cfunction('libvlc_video_update_viewpoint', ((1,), (1,), (1,),), None,
                    ctypes.c_int, MediaPlayer, VideoViewpoint, ctypes.c_bool)
    return f(p_mi, p_viewpoint, b_absolute)
vlc.py 文件源码 项目:OnCue 作者: featherbear 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def libvlc_dialog_post_login(p_id, psz_username, psz_password, b_store):
    '''Post a login answer
    After this call, p_id won't be valid anymore
    See libvlc_dialog_cbs.pf_display_login.
    @param p_id: id of the dialog.
    @param psz_username: valid and non empty string.
    @param psz_password: valid string (can be empty).
    @param b_store: if true, store the credentials.
    @return: 0 on success, or -1 on error.
    @version: LibVLC 3.0.0 and later.
    '''
    f = _Cfunctions.get('libvlc_dialog_post_login', None) or \
        _Cfunction('libvlc_dialog_post_login', ((1,), (1,), (1,), (1,),), None,
                    ctypes.c_int, ctypes.c_void_p, ctypes.c_char_p, ctypes.c_char_p, ctypes.c_bool)
    return f(p_id, psz_username, psz_password, b_store)
vlc.py 文件源码 项目:OnCue 作者: featherbear 项目源码 文件源码 阅读 25 收藏 0 点赞 0 评论 0
def libvlc_media_player_add_slave(p_mi, i_type, psz_uri, b_select):
    '''Add a slave to the current media player.
    @note: If the player is playing, the slave will be added directly. This call
    will also update the slave list of the attached L{Media}.
    @param p_mi: the media player.
    @param i_type: subtitle or audio.
    @param psz_uri: Uri of the slave (should contain a valid scheme).
    @param b_select: True if this slave should be selected when it's loaded.
    @return: 0 on success, -1 on error.
    @version: LibVLC 3.0.0 and later. See L{libvlc_media_slaves_add}.
    '''
    f = _Cfunctions.get('libvlc_media_player_add_slave', None) or \
        _Cfunction('libvlc_media_player_add_slave', ((1,), (1,), (1,), (1,),), None,
                    ctypes.c_int, MediaPlayer, MediaSlaveType, ctypes.c_char_p, ctypes.c_bool)
    return f(p_mi, i_type, psz_uri, b_select)
vlc.py 文件源码 项目:OnCue 作者: featherbear 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def libvlc_video_update_viewpoint(p_mi, p_viewpoint, b_absolute):
    '''Update the video viewpoint information.
    @note: It is safe to call this function before the media player is started.
    @param p_mi: the media player.
    @param p_viewpoint: video viewpoint allocated via L{libvlc_video_new_viewpoint}().
    @param b_absolute: if true replace the old viewpoint with the new one. If false, increase/decrease it.
    @return: -1 in case of error, 0 otherwise @note the values are set asynchronously, it will be used by the next frame displayed.
    @version: LibVLC 3.0.0 and later.
    '''
    f = _Cfunctions.get('libvlc_video_update_viewpoint', None) or \
        _Cfunction('libvlc_video_update_viewpoint', ((1,), (1,), (1,),), None,
                    ctypes.c_int, MediaPlayer, VideoViewpoint, ctypes.c_bool)
    return f(p_mi, p_viewpoint, b_absolute)
awa_gateway_client_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def AwaClientSession_IsObjectDefined(self, session, objectID):
        self._lib.AwaClientSession_IsObjectDefined.restype = c_bool
        self._lib.AwaClientSession_IsObjectDefined.argtypes = [c_void_p, c_int]
        return self._lib.AwaClientSession_IsObjectDefined(session, objectID)
awa_gateway_client_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def AwaClientGetResponse_ContainsPath(self, response, path):
        self._lib.AwaClientGetResponse_ContainsPath.restype = c_bool
        self._lib.AwaClientGetResponse_ContainsPath.argtypes = [c_void_p, c_char_p]
        return self._lib.AwaClientGetResponse_ContainsPath(response, path)
awa_gateway_client_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def AwaClientGetResponse_HasValue(self, response, path):
        self._lib.AwaClientGetResponse_HasValue.restype = c_bool
        self._lib.AwaClientGetResponse_HasValue.argtypes = [c_void_p, c_char_p]
        return self._lib.AwaClientGetResponse_HasValue(response, path)
awa_gateway_client_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
def AwaClientGetResponse_GetValueAsBooleanPointer(self, response, path, value):
        self._lib.AwaClientGetResponse_GetValueAsBooleanPointer.restype = c_int
        mem = cast(value, POINTER(c_bool))
        ret = self._lib.AwaClientGetResponse_GetValueAsBooleanPointer(response, path, byref(mem))
        result = None
        if ret == 0:
            result = cast(mem, POINTER(c_bool)).contents.value

        return result, ret
awa_gateway_client_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 30 收藏 0 点赞 0 评论 0
def AwaClientSetOperation_AddValueAsBoolean(self, operation, path, value):
        self._lib.AwaClientSetOperation_AddValueAsBoolean.restype = c_int
        self._lib.AwaClientSetOperation_AddValueAsBoolean.argtypes = [c_void_p, c_char_p, c_bool]
        return self._lib.AwaClientSetOperation_AddValueAsBoolean(operation, path, value)
awa_common_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def AwaBooleanArray_SetValue(self, array, index, value):
        self._lib.AwaBooleanArray_SetValue.restype = c_void_p
        self._lib.AwaBooleanArray_SetValue.argtypes = [c_void_p, c_ulong, c_bool]
        return self._lib.AwaBooleanArray_SetValue(array, index, value)
awa_common_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 30 收藏 0 点赞 0 评论 0
def AwaBooleanArray_GetValue(self, array, index):
        self._lib.AwaBooleanArray_GetValue.restype = c_bool
        self._lib.AwaBooleanArray_GetValue.argtypes = [c_void_p, c_ulong]
        return self._lib.AwaBooleanArray_GetValue(array, index)
awa_common_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 33 收藏 0 点赞 0 评论 0
def AwaStringArray_IsValid(self, array, index):
        self._lib.AwaStringArray_IsValid.restype = c_bool
        self._lib.AwaStringArray_IsValid.argtypes = [c_void_p, c_ulong]
        return self._lib.AwaStringArray_IsValid(array, index)
awa_common_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 32 收藏 0 点赞 0 评论 0
def AwaIntegerArray_IsValid(self, array, index):
        self._lib.AwaIntegerArray_IsValid.restype = c_bool
        self._lib.AwaIntegerArray_IsValid.argtypes = [c_void_p, c_ulong]
        return self._lib.AwaIntegerArray_IsValid(array, index)
awa_common_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 31 收藏 0 点赞 0 评论 0
def AwaFloatArray_IsValid(self, array, index):
        self._lib.AwaFloatArray_IsValid.restype = c_bool
        self._lib.AwaFloatArray_IsValid.argtypes = [c_void_p, c_ulong]
        return self._lib.AwaFloatArray_IsValid(array, index)
awa_common_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 33 收藏 0 点赞 0 评论 0
def AwaObjectDefinition_AddResourceDefinitionAsString(self, objectDefinition, resourceID, resourceName, isMandatory, operations, defaultValue):
        self._lib.AwaObjectDefinition_AddResourceDefinitionAsString.restype = c_int
        self._lib.AwaObjectDefinition_AddResourceDefinitionAsString.argtypes = [c_void_p, c_int, c_char_p, c_bool, c_void_p, c_char_p]
        return self._lib.AwaObjectDefinition_AddResourceDefinitionAsString(objectDefinition, resourceID, resourceName, isMandatory, operations, defaultValue)
awa_common_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 34 收藏 0 点赞 0 评论 0
def AwaObjectDefinition_AddResourceDefinitionAsInteger(self, objectDefinition, resourceID, resourceName, isMandatory, operations, defaultValue):
        self._lib.AwaObjectDefinition_AddResourceDefinitionAsInteger.restype = c_int
        self._lib.AwaObjectDefinition_AddResourceDefinitionAsInteger.argtypes = [c_void_p, c_int, c_char_p, c_bool, c_void_p, c_longlong]
        return self._lib.AwaObjectDefinition_AddResourceDefinitionAsInteger(objectDefinition, resourceID, resourceName, isMandatory, operations, defaultValue)
awa_common_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 28 收藏 0 点赞 0 评论 0
def AwaObjectDefinition_AddResourceDefinitionAsFloat(self, objectDefinition, resourceID, resourceName, isMandatory, operations, defaultValue):
        self._lib.AwaObjectDefinition_AddResourceDefinitionAsFloat.restype = c_int
        self._lib.AwaObjectDefinition_AddResourceDefinitionAsFloat.argtypes = [c_void_p, c_int, c_char_p, c_bool, c_void_p, c_double]
        return self._lib.AwaObjectDefinition_AddResourceDefinitionAsFloat(objectDefinition, resourceID, resourceName, isMandatory, operations, defaultValue)
awa_common_api_wrapper.py 文件源码 项目:creator-system-test-framework 作者: CreatorDev 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def AwaObjectDefinition_AddResourceDefinitionAsBoolean(self, objectDefinition, resourceID, resourceName, isMandatory, operations, defaultValue):
        self._lib.AwaObjectDefinition_AddResourceDefinitionAsBoolean.restype = c_int
        self._lib.AwaObjectDefinition_AddResourceDefinitionAsBoolean.argtypes = [c_void_p, c_int, c_char_p, c_bool, c_void_p, c_bool]
        return self._lib.AwaObjectDefinition_AddResourceDefinitionAsBoolean(objectDefinition, resourceID, resourceName, isMandatory, operations, defaultValue)


问题


面经


文章

微信
公众号

扫码关注公众号