當前位置: 首頁>>代碼示例>>C++>>正文


C++ DEBUG_DVC函數代碼示例

本文整理匯總了C++中DEBUG_DVC函數的典型用法代碼示例。如果您正苦於以下問題:C++ DEBUG_DVC函數的具體用法?C++ DEBUG_DVC怎麽用?C++ DEBUG_DVC使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了DEBUG_DVC函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: wts_read_drdynvc_create_response

static void wts_read_drdynvc_create_response(rdpPeerChannel* channel, STREAM* s, uint32 length)
{
	uint32 CreationStatus;

	if (length < 4)
		return;
	stream_read_uint32(s, CreationStatus);
	if ((sint32)CreationStatus < 0)
	{
		DEBUG_DVC("ChannelId %d creation failed (%d)", channel->channel_id, (sint32)CreationStatus);
		channel->dvc_open_state = DVC_OPEN_STATE_FAILED;
	}
	else
	{
		DEBUG_DVC("ChannelId %d creation succeeded", channel->channel_id);
		channel->dvc_open_state = DVC_OPEN_STATE_SUCCEEDED;
	}
	wait_obj_set(channel->receive_event);
}
開發者ID:ArthurGodoy,項目名稱:FreeRDP,代碼行數:19,代碼來源:wtsvc.c

示例2: rdpei_on_close

static int rdpei_on_close(IWTSVirtualChannelCallback* pChannelCallback)
{
	RDPEI_CHANNEL_CALLBACK* callback = (RDPEI_CHANNEL_CALLBACK*) pChannelCallback;

	DEBUG_DVC("");

	free(callback);

	return 0;
}
開發者ID:KimDongChun,項目名稱:FreeRDP,代碼行數:10,代碼來源:rdpei_main.c

示例3: drdynvc_process_connect

static void drdynvc_process_connect(rdpSvcPlugin* plugin)
{
	drdynvcPlugin* drdynvc = (drdynvcPlugin*)plugin;

	DEBUG_DVC("connecting");

	drdynvc->channel_mgr = dvcman_new(drdynvc);
	dvcman_load_plugin(drdynvc->channel_mgr, svc_plugin_get_data(plugin));
	dvcman_init(drdynvc->channel_mgr);
}
開發者ID:bradh,項目名稱:FreeRDP-1.0,代碼行數:10,代碼來源:drdynvc_main.c

示例4: echo_on_close

static int echo_on_close(IWTSVirtualChannelCallback* pChannelCallback)
{
	ECHO_CHANNEL_CALLBACK* callback = (ECHO_CHANNEL_CALLBACK*) pChannelCallback;

	DEBUG_DVC("");

	free(callback);

	return 0;
}
開發者ID:10084462,項目名稱:FreeRDP,代碼行數:10,代碼來源:echo_main.c

示例5: drdynvc_process_data

static int drdynvc_process_data(drdynvcPlugin* drdynvc, int Sp, int cbChId, STREAM* s)
{
	uint32 ChannelId;

	ChannelId = drdynvc_read_variable_uint(s, cbChId);
	DEBUG_DVC("ChannelId=%d", ChannelId);

	return dvcman_receive_channel_data(drdynvc->channel_mgr, ChannelId,
		stream_get_tail(s), stream_get_left(s));
}
開發者ID:awakecoding,項目名稱:WinPR-msasn1,代碼行數:10,代碼來源:drdynvc_main.c

示例6: echo_plugin_terminated

static int echo_plugin_terminated(IWTSPlugin* pPlugin)
{
	ECHO_PLUGIN* echo = (ECHO_PLUGIN*) pPlugin;

	DEBUG_DVC("");

	free(echo);

	return 0;
}
開發者ID:10084462,項目名稱:FreeRDP,代碼行數:10,代碼來源:echo_main.c

示例7: dump_callbacks

static void dump_callbacks(void)
{
	wListDictionaryItem *cur;
	DEBUG_DVC("Dumping all currently registered callbacks");

	if (!cb_dict)
	{
		DEBUG_DVC("cb_dict=NULL");
		return;
	}

	cur = cb_dict->head;

	while (cur)
	{
		DEBUG_DVC("cb_dict %s:%p", cur->key, cur->value);
		cur = cur->next;
	}
}
開發者ID:Auto-Droid,項目名稱:FreeRDP,代碼行數:19,代碼來源:dvcman.c

示例8: drdynvc_process_data

static int drdynvc_process_data(drdynvcPlugin* drdynvc, int Sp, int cbChId, wStream* s)
{
	UINT32 ChannelId;

	ChannelId = drdynvc_read_variable_uint(s, cbChId);
	DEBUG_DVC("ChannelId=%d", ChannelId);

	return dvcman_receive_channel_data(drdynvc->channel_mgr, ChannelId,
		Stream_Pointer(s), Stream_GetRemainingLength(s));
}
開發者ID:jlafontaine-devolutions,項目名稱:FreeRDP,代碼行數:10,代碼來源:drdynvc_main.c

示例9: drdynvc_process_close_request

static int drdynvc_process_close_request(drdynvcPlugin* drdynvc, int Sp, int cbChId, STREAM* data_in)
{
	uint32 ChannelId;

	ChannelId = drdynvc_read_variable_uint(data_in, cbChId);
	DEBUG_DVC("ChannelId=%d", ChannelId);
	dvcman_close_channel(drdynvc->channel_mgr, ChannelId);

	return 0;
}
開發者ID:bradh,項目名稱:FreeRDP-1.0,代碼行數:10,代碼來源:drdynvc_main.c

示例10: rdpei_plugin_terminated

static int rdpei_plugin_terminated(IWTSPlugin* pPlugin)
{
	RDPEI_PLUGIN* echo = (RDPEI_PLUGIN*) pPlugin;

	DEBUG_DVC("");

	free(echo);

	return 0;
}
開發者ID:KimDongChun,項目名稱:FreeRDP,代碼行數:10,代碼來源:rdpei_main.c

示例11: drdynvc_process_terminate

static void drdynvc_process_terminate(rdpSvcPlugin* plugin)
{
	drdynvcPlugin* drdynvc = (drdynvcPlugin*)plugin;

	DEBUG_DVC("terminating");

	if (drdynvc->channel_mgr != NULL)
		dvcman_free(drdynvc->channel_mgr);
	xfree(drdynvc);
}
開發者ID:bradh,項目名稱:FreeRDP-1.0,代碼行數:10,代碼來源:drdynvc_main.c

示例12: tsmf_pulse_play

static boolean tsmf_pulse_play(ITSMFAudioDevice* audio, uint8* data, uint32 data_size)
{
    TSMFPulseAudioDevice* pulse = (TSMFPulseAudioDevice*) audio;
    uint8* src;
    int len;
    int ret;

    DEBUG_DVC("data_size %d", data_size);

    if (pulse->stream)
    {
        pa_threaded_mainloop_lock(pulse->mainloop);

        src = data;
        while (data_size > 0)
        {
            while ((len = pa_stream_writable_size(pulse->stream)) == 0)
            {
                DEBUG_DVC("waiting");
                pa_threaded_mainloop_wait(pulse->mainloop);
            }
            if (len < 0)
                break;
            if (len > data_size)
                len = data_size;
            ret = pa_stream_write(pulse->stream, src, len, NULL, 0LL, PA_SEEK_RELATIVE);
            if (ret < 0)
            {
                DEBUG_DVC("pa_stream_write failed (%d)",
                          pa_context_errno(pulse->context));
                break;
            }
            src += len;
            data_size -= len;
        }

        pa_threaded_mainloop_unlock(pulse->mainloop);
    }
    xfree(data);

    return true;
}
開發者ID:felfert,項目名稱:FreeRDP,代碼行數:42,代碼來源:tsmf_pulse.c

示例13: tsmf_ifman_set_topology_request

int tsmf_ifman_set_topology_request(TSMF_IFMAN* ifman)
{
	DEBUG_DVC("");

	Stream_EnsureRemainingCapacity(ifman->output, 8);
	Stream_Write_UINT32(ifman->output, 1); /* TopologyReady */
	Stream_Write_UINT32(ifman->output, 0); /* Result */
	ifman->output_interface_id = TSMF_INTERFACE_DEFAULT | STREAM_ID_STUB;

	return 0;
}
開發者ID:ADILOFASKI,項目名稱:FreeRDP,代碼行數:11,代碼來源:tsmf_ifman.c

示例14: audin_alsa_close

static void audin_alsa_close(IAudinDevice* device)
{
	AudinALSADevice* alsa = (AudinALSADevice*) device;

	DEBUG_DVC("");

	freerdp_thread_stop(alsa->thread);

	alsa->receive = NULL;
	alsa->user_data = NULL;
}
開發者ID:kidfolk,項目名稱:FreeRDP,代碼行數:11,代碼來源:audin_alsa.c

示例15: audin_alsa_open

static void audin_alsa_open(IAudinDevice* device, AudinReceive receive, void* user_data)
{
	AudinALSADevice* alsa = (AudinALSADevice*) device;

	DEBUG_DVC("");

	alsa->receive = receive;
	alsa->user_data = user_data;

	freerdp_thread_start(alsa->thread, audin_alsa_thread_func, alsa);
}
開發者ID:kidfolk,項目名稱:FreeRDP,代碼行數:11,代碼來源:audin_alsa.c


注:本文中的DEBUG_DVC函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。