当前位置: 首页>>代码示例>>C++>>正文


C++ TRACE_CALL函数代码示例

本文整理汇总了C++中TRACE_CALL函数的典型用法代码示例。如果您正苦于以下问题:C++ TRACE_CALL函数的具体用法?C++ TRACE_CALL怎么用?C++ TRACE_CALL使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了TRACE_CALL函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: TRACE_CALL

ConditionVariable::ConditionVariable()
{
	TRACE_CALL(lib_com.cnd, ("ConditionVariable{0x%x}::ConditionVariable", _T_PTR(this)));

	pthread_cond_init(&cid_, 0);
	atomicIncrement(num_);
}
开发者ID:fullstackenviormentss,项目名称:sbmt,代码行数:7,代码来源:ConditionVariable.cpp

示例2: ASSERT

void
CopyPasteDnDX11::SetDnDAllowed(bool allowed)
{
   ASSERT(m_dndUI);
   TRACE_CALL();
   m_dndUI->SetDnDAllowed(allowed);
}
开发者ID:bzed,项目名称:pkg-open-vm-tools,代码行数:7,代码来源:copyPasteDnDX11.cpp

示例3: TRACE_CALL

size_t IOSocketSSL::write(const struct io_buf &buffer) {

	size_t			written = 0;
	size_t			offset = 0;
	size_t			to_write = buffer.length;
	struct io_buf 	buf;
	
	TRACE_CALL();

	if (to_write > IOSOCKET_NET_BUF_SIZE)
		to_write = IOSOCKET_NET_BUF_SIZE;

	do {

		::memcpy(buf.content, buffer.content + offset, to_write);
		buf.length = to_write;

		try {
			written = writeSSL(buf);
		} catch (const char *e) {
			stringstream ss;
			ss << new_SSL_error("writeSSL error") << "(" << e << ")";
			throw(ss.str().c_str());
		}

		offset += written;
		stats.client.bytesSent += written; /* Update stats */

		if (buffer.length - offset < IOSOCKET_NET_BUF_SIZE)
			to_write = buffer.length - offset;

	} while (offset != buffer.length);

	return offset;
}
开发者ID:giapdangle,项目名称:SSL-Proxy,代码行数:35,代码来源:IOSocketSSL.cpp

示例4: ASSERT

//--------------------------------------------------------------------
// @mfunc	Convert string user passed in to initilaize the col class
//			
//			
//
// @rdesc ParseFlags
//      
//      @void |
//
void CParseInitFile::ParseFlags(LPSTR pszColumnFlags, CCol &NewCol)
{
	ASSERT(pszColumnFlags);

	TRACE_CALL(L"PRIVLIB: CParseInitFile::ParseFlags.\n");
	
	//TODO - all of these flags are not needed - just here for the time being until 
	if(strstr(pszColumnFlags,"DBCOLUMNFLAGS_MAYBENULL"))
		NewCol.SetNullable(FALSE);
	if(strstr(pszColumnFlags,"DBCOLUMNFLAGS_ISNULLABLE"))
		NewCol.SetNullable(TRUE);
	if(strstr(pszColumnFlags,"DBCOLUMNFLAGS_ISLONG"))
		NewCol.SetIsLong(TRUE);
	if(strstr(pszColumnFlags,"IS_AUTOINC"))
		NewCol.SetAutoInc(TRUE);
	if(strstr(pszColumnFlags,"IS_UNSIGNED"))
		NewCol.SetUnsigned(TRUE);
	if(strstr(pszColumnFlags,"IS_SIGNED"))
		NewCol.SetUnsigned(FALSE);
	if(strstr(pszColumnFlags,"DBCOLUMNFLAGS_WRITE"))
		NewCol.SetUpdateable(TRUE);
	if(strstr(pszColumnFlags,"DBCOLUMNFLAGS_WRITEUNKNOWN"))
		NewCol.SetUpdateable(TRUE);
	if(strstr(pszColumnFlags,"IS_CASESENSITIVE"))
		NewCol.SetCaseSensitive(TRUE);
	if(strstr(pszColumnFlags,"IS_NOTCASESENSITIVE"))
		NewCol.SetCaseSensitive(FALSE);
	if(strstr(pszColumnFlags,"DBCOLUMNFLAGS_ISFIXEDLENGTH"))
		NewCol.SetIsFixedLength(TRUE);
	if(strstr(pszColumnFlags,"DBCOLUMNFLAGS_ISCHAPTER"))
		NewCol.SetIsChapter(TRUE);
}
开发者ID:AbdoSalem95,项目名称:WindowsSDK7-Samples,代码行数:41,代码来源:cparsestrm.cpp

示例5: remmina_plugin_dummy_close_connection

static gboolean remmina_plugin_dummy_close_connection(RemminaProtocolWidget *gp)
{
  TRACE_CALL("remmina_plugin_dummy_close_connection");
  remmina_plugin_service->log_printf("[%s] Plugin close connection\n", PLUGIN_NAME);
  remmina_plugin_service->protocol_plugin_emit_signal(gp, "disconnect");
  return FALSE;
}
开发者ID:muflone,项目名称:remmina-plugin-builder,代码行数:7,代码来源:remmina_plugin.c

示例6: rf_Bitmap_New

BOOL rf_Bitmap_New(rdpContext* context, rdpBitmap* bitmap)
{
	TRACE_CALL("rf_Bitmap_New");
#ifdef RF_BITMAP
	UINT8* data;
	Pixmap pixmap;
	XImage* image;
	rfContext* rfi = (rfContext*) context;

	XSetFunction(rfi->display, rfi->gc, GXcopy);
	pixmap = XCreatePixmap(rfi->display, rfi->drawable, bitmap->width, bitmap->height, rfi->depth);

	if (bitmap->data != NULL)
	{
		data = freerdp_image_convert(bitmap->data, NULL,
				bitmap->width, bitmap->height, rfi->srcBpp, rfi->bpp, rfi->clrconv);

		if (bitmap->ephemeral != TRUE)
		{
			image = XCreateImage(rfi->display, rfi->visual, rfi->depth,
				ZPixmap, 0, (char*) data, bitmap->width, bitmap->height, rfi->scanline_pad, 0);

			XPutImage(rfi->display, pixmap, rfi->gc, image, 0, 0, 0, 0, bitmap->width, bitmap->height);
			XFree(image);

			if (data != bitmap->data) && (data != NULL)
				free(data);
		}
开发者ID:flaviommedeiros,项目名称:cprojects,代码行数:28,代码来源:rdp_graphics-2.c

示例7: TRACE_CALL

void IOSocket::write(const struct io_buf &buffer) {

	int		written = 0;
	size_t	offset = 0;
	size_t	to_write = buffer.length;
	
	TRACE_CALL();

	if (to_write > IOSOCKET_NET_BUF_SIZE)
		to_write = IOSOCKET_NET_BUF_SIZE;

	do {
		written = ::write((int) sock, ((char *) buffer.content) + offset, to_write);
		if (written < 0) {
			if (errno != EINTR)
				throw("Write error");
			continue;
		}

		offset += written;
		stats.client.bytesSent += written; /* Update stats */

		if (buffer.length - offset < IOSOCKET_NET_BUF_SIZE)
			to_write = buffer.length - offset;

	} while (offset != buffer.length);
}
开发者ID:faxm0dem,项目名称:SSL-Proxy,代码行数:27,代码来源:IOSocket.cpp

示例8: remmina_rdp_cliprdr_send_client_format_list

void remmina_rdp_cliprdr_send_client_format_list(RemminaProtocolWidget *gp)
{
	TRACE_CALL(__func__);
	RemminaPluginRdpUiObject* ui;
	rfContext* rfi = GET_PLUGIN_DATA(gp);
	rfClipboard* clipboard;
	CLIPRDR_FORMAT_LIST *pFormatList;
	RemminaPluginRdpEvent rdp_event = { 0 };

	if (!rfi || !rfi->connected || rfi->is_reconnecting)
		return;

	clipboard = &(rfi->clipboard);

	ui = g_new0(RemminaPluginRdpUiObject, 1);
	ui->type = REMMINA_RDP_UI_CLIPBOARD;
	ui->clipboard.clipboard = clipboard;
	ui->clipboard.type = REMMINA_RDP_UI_CLIPBOARD_FORMATLIST;
	pFormatList = remmina_rdp_event_queue_ui_sync_retptr(gp, ui);

	rdp_event.type = REMMINA_RDP_EVENT_TYPE_CLIPBOARD_SEND_CLIENT_FORMAT_LIST;
	rdp_event.clipboard_formatlist.pFormatList = pFormatList;
	remmina_rdp_event_event_push(gp, &rdp_event);

}
开发者ID:FreeRDP,项目名称:Remmina,代码行数:25,代码来源:rdp_cliprdr.c

示例9: remmina_rdp_settings_grid_load_quality

static void remmina_rdp_settings_grid_load_quality(RemminaPluginRdpsetGrid* grid)
{
	TRACE_CALL(__func__);
	gchar* value;
	GtkTreeIter iter;

	gtk_list_store_append(grid->quality_store, &iter);
	gtk_list_store_set(grid->quality_store, &iter, 0, -1, 1, _("<Choose a quality level to edit…>"), -1);
	gtk_list_store_append(grid->quality_store, &iter);
	gtk_list_store_set(grid->quality_store, &iter, 0, 0, 1, _("Poor (fastest)"), -1);
	gtk_list_store_append(grid->quality_store, &iter);
	gtk_list_store_set(grid->quality_store, &iter, 0, 1, 1, _("Medium"), -1);
	gtk_list_store_append(grid->quality_store, &iter);
	gtk_list_store_set(grid->quality_store, &iter, 0, 2, 1, _("Good"), -1);
	gtk_list_store_append(grid->quality_store, &iter);
	gtk_list_store_set(grid->quality_store, &iter, 0, 9, 1, _("Best (slowest)"), -1);

	memset(grid->quality_values, 0, sizeof(grid->quality_values));

	value = remmina_plugin_service->pref_get_value("rdp_quality_0");
	grid->quality_values[0] = (value && value[0] ? strtoul(value, NULL, 16) : DEFAULT_QUALITY_0);
	g_free(value);

	value = remmina_plugin_service->pref_get_value("rdp_quality_1");
	grid->quality_values[1] = (value && value[0] ? strtoul(value, NULL, 16) : DEFAULT_QUALITY_1);
	g_free(value);

	value = remmina_plugin_service->pref_get_value("rdp_quality_2");
	grid->quality_values[2] = (value && value[0] ? strtoul(value, NULL, 16) : DEFAULT_QUALITY_2);
	g_free(value);

	value = remmina_plugin_service->pref_get_value("rdp_quality_9");
	grid->quality_values[9] = (value && value[0] ? strtoul(value, NULL, 16) : DEFAULT_QUALITY_9);
	g_free(value);
}
开发者ID:FreeRDP,项目名称:Remmina,代码行数:35,代码来源:rdp_settings.c

示例10: remmina_rdp_cliprdr_get_format_from_gdkatom

UINT32 remmina_rdp_cliprdr_get_format_from_gdkatom(GdkAtom atom)
{
	TRACE_CALL(__func__);
	UINT32 rc;
	gchar* name = gdk_atom_name(atom);
	rc = 0;
	if (g_strcmp0("UTF8_STRING", name) == 0 || g_strcmp0("text/plain;charset=utf-8", name) == 0) {
		rc = CF_UNICODETEXT;
	}
	if (g_strcmp0("TEXT", name) == 0 || g_strcmp0("text/plain", name) == 0) {
		rc =  CF_TEXT;
	}
	if (g_strcmp0("text/html", name) == 0) {
		rc =  CB_FORMAT_HTML;
	}
	if (g_strcmp0("image/png", name) == 0) {
		rc =  CB_FORMAT_PNG;
	}
	if (g_strcmp0("image/jpeg", name) == 0) {
		rc =  CB_FORMAT_JPEG;
	}
	if (g_strcmp0("image/bmp", name) == 0) {
		rc =  CF_DIB;
	}
	g_free(name);
	return rc;
}
开发者ID:FreeRDP,项目名称:Remmina,代码行数:27,代码来源:rdp_cliprdr.c

示例11: remmina_rdp_settings_get_orientation_scale_prefs

void remmina_rdp_settings_get_orientation_scale_prefs(int *desktopOrientation, int *desktopScaleFactor, int *deviceScaleFactor)
{
	TRACE_CALL(__func__);

	/* See https://msdn.microsoft.com/en-us/library/cc240510.aspx */

	int orientation, dpsf, desf;
	gchar* s;

	*desktopOrientation = *desktopScaleFactor = *deviceScaleFactor = 0;

	s = remmina_plugin_service->pref_get_value("rdp_desktopOrientation");
	orientation = s ? atoi(s) : 0;
	g_free(s);
	if (orientation != 90 && orientation != 180 && orientation != 270)
		orientation = 0;
	*desktopOrientation = orientation;

	s = remmina_plugin_service->pref_get_value("rdp_desktopScaleFactor");
	dpsf = s ? atoi(s) : 0;
	g_free(s);
	if (dpsf < 100 || dpsf > 500)
		return;

	s = remmina_plugin_service->pref_get_value("rdp_deviceScaleFactor");
	desf = s ? atoi(s) : 0;
	g_free(s);
	if (desf != 100 && desf != 140 && desf != 180)
		return;

	*desktopScaleFactor = dpsf;
	*deviceScaleFactor = desf;

}
开发者ID:FreeRDP,项目名称:Remmina,代码行数:34,代码来源:rdp_settings.c

示例12: TRACE_CALL

CLIPRDR_FORMAT_LIST *remmina_rdp_cliprdr_get_client_format_list(RemminaProtocolWidget* gp)
{
	TRACE_CALL(__func__);

	GtkClipboard* gtkClipboard;
	rfContext* rfi = GET_PLUGIN_DATA(gp);
	GdkAtom* targets;
	gboolean result = 0;
	gint loccount, srvcount;
	gint formatId, i;
	CLIPRDR_FORMAT *formats;
	struct retp_t {
		CLIPRDR_FORMAT_LIST pFormatList;
		CLIPRDR_FORMAT formats[];
	} *retp;

	formats = NULL;

	retp = NULL;

	gtkClipboard = gtk_widget_get_clipboard(rfi->drawing_area, GDK_SELECTION_CLIPBOARD);
	if (gtkClipboard) {
		result = gtk_clipboard_wait_for_targets(gtkClipboard, &targets, &loccount);
	}

	if (result && loccount > 0) {
		formats = (CLIPRDR_FORMAT*)malloc(loccount * sizeof(CLIPRDR_FORMAT));
		srvcount = 0;
		for (i = 0; i < loccount; i++) {
			formatId = remmina_rdp_cliprdr_get_format_from_gdkatom(targets[i]);
			if ( formatId != 0 ) {
				formats[srvcount].formatId = formatId;
				formats[srvcount].formatName = NULL;
				srvcount++;
			}
		}
		if (srvcount > 0) {
			retp = (struct retp_t *)malloc(sizeof(struct retp_t) + sizeof(CLIPRDR_FORMAT) * srvcount);
			retp->pFormatList.formats = retp->formats;
			retp->pFormatList.numFormats = srvcount;
			memcpy(retp->formats, formats, sizeof(CLIPRDR_FORMAT) * srvcount);
		} else {
			retp = (struct retp_t *)malloc(sizeof(struct retp_t));
			retp->pFormatList.formats = NULL;
			retp->pFormatList.numFormats = 0;
		}
		free(formats);
	} else {
		retp = (struct retp_t *)malloc(sizeof(struct retp_t) + sizeof(CLIPRDR_FORMAT));
		retp->pFormatList.formats = NULL;
		retp->pFormatList.numFormats = 0;
	}

	if (result)
		g_free(targets);

	retp->pFormatList.msgFlags = CB_RESPONSE_OK;

	return (CLIPRDR_FORMAT_LIST*)retp;
}
开发者ID:FreeRDP,项目名称:Remmina,代码行数:60,代码来源:rdp_cliprdr.c

示例13: remmina_rdp_cliprdr_init

void remmina_rdp_cliprdr_init(rfContext* rfi, CliprdrClientContext* cliprdr)
{
	TRACE_CALL(__func__);

	rfClipboard* clipboard;
	clipboard = &(rfi->clipboard);

	rfi->clipboard.rfi = rfi;
	cliprdr->custom = (void*)clipboard;

	clipboard->context = cliprdr;
	pthread_mutex_init(&clipboard->transfer_clip_mutex, NULL);
	pthread_cond_init(&clipboard->transfer_clip_cond, NULL);
	clipboard->srv_clip_data_wait = SCDW_NONE;

	cliprdr->MonitorReady = remmina_rdp_cliprdr_monitor_ready;
	cliprdr->ServerCapabilities = remmina_rdp_cliprdr_server_capabilities;
	cliprdr->ServerFormatList = remmina_rdp_cliprdr_server_format_list;
	cliprdr->ServerFormatListResponse = remmina_rdp_cliprdr_server_format_list_response;
	cliprdr->ServerFormatDataRequest = remmina_rdp_cliprdr_server_format_data_request;
	cliprdr->ServerFormatDataResponse = remmina_rdp_cliprdr_server_format_data_response;

//	cliprdr->ServerFileContentsRequest = remmina_rdp_cliprdr_server_file_contents_request;
//	cliprdr->ServerFileContentsResponse = remmina_rdp_cliprdr_server_file_contents_response;

}
开发者ID:FreeRDP,项目名称:Remmina,代码行数:26,代码来源:rdp_cliprdr.c

示例14: lf2crlf

static UINT8* lf2crlf(UINT8* data, int* size)
{
	TRACE_CALL(__func__);
	UINT8 c;
	UINT8* outbuf;
	UINT8* out;
	UINT8* in_end;
	UINT8* in;
	int out_size;

	out_size = (*size) * 2 + 1;
	outbuf = (UINT8*)malloc(out_size);
	out = outbuf;
	in = data;
	in_end = data + (*size);

	while (in < in_end) {
		c = *in++;
		if (c == '\n') {
			*out++ = '\r';
			*out++ = '\n';
		}else  {
			*out++ = c;
		}
	}

	*out++ = 0;
	*size = out - outbuf;

	return outbuf;
}
开发者ID:FreeRDP,项目名称:Remmina,代码行数:31,代码来源:rdp_cliprdr.c

示例15: TRACE_CALL

//--------------------------------------------------------------------
// @mfunc	Obtain the column metadata from the file
//			Obtain the offsets into the file that each row exists at.
//			
//
// @rdesc BOOL
//      @flag TRUE | Got the offsets, Column Names and Data Types
//      @flag FALSE | Could not obtain all the necessary info
//
BOOL CParseInitFile::GenerateFileInfo()
{
	TRACE_CALL(L"PRIVLIB: CParseInitFile::GenerateFileInfo.\n");

	//Obtain ProviderInfo, including TableName of generated Data...
	if(!ParseProviderInfo())
		return FALSE;

	//Obtain URLInfo
	if(!ParseURLInfo())
		return FALSE;

	//Obtain QueryInfo, (all SQL Statements)
	if(!ParseQueryInfo())
		return FALSE;

    // Generate Column Info, if FALSE is returned, a problem
    // was encountered while reading the Column Names.
    if(!ParseColumnInfo())
        return FALSE;

    // Get the Data in the file
    // FALSE is returned if error was encountered while reading the Data
    if(!ParseDataInfo())
        return FALSE;
 
    return TRUE;
}
开发者ID:AbdoSalem95,项目名称:WindowsSDK7-Samples,代码行数:37,代码来源:cparsestrm.cpp


注:本文中的TRACE_CALL函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。