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


C++ INF函数代码示例

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


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

示例1: _ecore_win32_event_handle_delete_request

void
_ecore_win32_event_handle_delete_request(Ecore_Win32_Callback_Data *msg)
{
   Ecore_Win32_Event_Window_Delete_Request *e;

   INF("window delete request");

   e = calloc(1, sizeof(Ecore_Win32_Event_Window_Delete_Request));
   if (!e) return;

   e->window = (void *)GetWindowLongPtr(msg->window, GWLP_USERDATA);
   e->timestamp = _ecore_win32_event_last_time;

   ecore_event_add(ECORE_WIN32_EVENT_WINDOW_DELETE_REQUEST, e, NULL, NULL);
}
开发者ID:TetragrammatonHermit,项目名称:enlightenment,代码行数:15,代码来源:ecore_win32_event.c

示例2: _camera_supported_preview_resolution_callback

bool _camera_supported_preview_resolution_callback(int preview_width, int preview_height, void *user_data)
{
	int result;
	main_view *main_view_data = user_data;
	INF("Preview resolution %d x %d", preview_width, preview_height);
	if(width == preview_width && height == preview_height)
	{
		INF("Supported preview resolution and screen resolution match");
        /*
         * Set Camera Preview Resolution
         * Surprisingly while setting and resolution width and height
         * parameters are swapped.
         */
		result = camera_set_preview_resolution(main_view_data->camera, preview_width , preview_height);
		if(result != CAMERA_ERROR_NONE)
		{
			INF("camera_set_preview_resolution result FAIL");
			if(result == CAMERA_ERROR_INVALID_PARAMETER)
				INF("camera_set_preview_resolution result CAMERA_ERROR_INVALID_PARAMETER");
		}
		return false;
	}
	return true;
}
开发者ID:bdatanu,项目名称:Self_Camera,代码行数:24,代码来源:main-view.c

示例3: _basic_create

static Evas_Object *
_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata) 
{
   Evas_Object *otb;

   INF("PROD_LOG_CONFIG:%d\n", _productivity_log);
   otb = e_widget_toolbook_add(evas, 24, 24);

   e_mod_config_schedule_new_v2(otb, evas, cfdata);
   e_mod_config_worktools_new(otb, evas, cfdata);

   e_widget_toolbook_page_show(otb, 0);

   return otb;
}
开发者ID:GArik,项目名称:emodule-productivity,代码行数:15,代码来源:e_mod_config.c

示例4: ephysics_constraint_del

EAPI void
ephysics_constraint_del(EPhysics_Constraint *constraint)
{
   if (!constraint)
     {
        ERR("Can't delete constraint, it wasn't provided.");
        return;
     }

   // technically at this point locking and unlocking is pointless because
   // if another thread is accessing this constraint, after this point it
   // will be broken locks or not. this removes a segv in locking something
   // we freed in _ephysics_constraint_del() by not locking.
   _ephysics_constraint_del(constraint);
   INF("Constraint deleted.");
}
开发者ID:RomainNaour,项目名称:efl,代码行数:16,代码来源:ephysics_constraints.cpp

示例5: _efl_egueb_document_go_to_completion_cb

/*----------------------------------------------------------------------------*
 *                         Document go to request                             *
 *----------------------------------------------------------------------------*/
static void _efl_egueb_document_go_to_completion_cb(Efl_Egueb_IO_Request *r,
		Enesim_Stream *s)
{
	Efl_Egueb_Document *thiz = r->data;
	Egueb_Dom_Node *doc = NULL;

	egueb_dom_parser_parse(enesim_stream_ref(s), &doc);
	if (doc)
	{
		INF("Swapping documents");
		efl_egueb_document_cleanup(thiz);
		efl_egueb_document_setup(thiz, doc);
	}
	/* swap the current doc with the new doc */
	efl_egueb_io_request_free(r);
}
开发者ID:turran,项目名称:efl-egueb,代码行数:19,代码来源:efl_egueb_document.c

示例6: processJsonString

// ------------------------------------------------------------------------------------------------
void processJsonString(const std::string& json, std::vector<Post>* posts) {
  rapidjson::Document document;
  document.Parse(json.c_str());

  if (document.IsArray()) {  // json could also be an Object
    int size = document.Size();
    INF("Found an Array of size: %i", size);
    for (int i = 0; i < size; ++i) {
      const rapidjson::Value& raw_post = document[i];
      Post post = processRawPost(raw_post);
      posts->push_back(post);
    }
  } else {
    ERR("Invalid json: not an array");
  }
}
开发者ID:duplyakin,项目名称:CppCourse,代码行数:17,代码来源:http_2_2.cpp

示例7: _ecore_win32_event_handle_unmap_notify

void
_ecore_win32_event_handle_unmap_notify(Ecore_Win32_Callback_Data *msg)
{
   Ecore_Win32_Event_Window_Hide *e;

   INF("window unmap notify");

   e = calloc(1, sizeof(Ecore_Win32_Event_Window_Hide));
   if (!e) return;

   e->window = (void *)GetWindowLongPtr(msg->window, GWLP_USERDATA);

   e->timestamp = _ecore_win32_event_last_time;

   ecore_event_add(ECORE_WIN32_EVENT_WINDOW_HIDE, e, NULL, NULL);
}
开发者ID:Limsik,项目名称:e17,代码行数:16,代码来源:ecore_win32_event.c

示例8: ecore_wince_window_focus_get

/**
 * @brief Get the current focused window.
 *
 * @return The window that has focus.
 *
 * This function returns the window that has focus. If the calling
 * thread's message queue does not have an associated window with the
 * keyboard focus, the return value is @c NULL.
 *
 * @note Even if the returned value is @c NULL, another thread's queue
 * may be associated with a window that has the keyboard focus.
 *
 * @note The returned value is of type HWND.
 */
EAPI void *
ecore_wince_window_focus_get(void)
{
    HWND focused;

    INF("getting focused window");

    focused = GetFocus();
    if (!focused)
    {
        ERR("GetFocus() failed");
        return NULL;
    }

    return focused;
}
开发者ID:amitesh-singh,项目名称:Enlightenment,代码行数:30,代码来源:ecore_wince_window.c

示例9: decode_ipopts

void decode_ipopts(const uint8_t *data, size_t len) {
/*
(last updated 2001-06-29)

The Internet Protocol (IP) has provision for optional header fields
identified by an option type field.  Options 0 and 1 are exactly one
octet which is their type field.  All other options have their one
octet type field, followed by a one octet length field, followed by
length-2 octets of option data.  The option type field is sub-divided
into a one bit copied flag, a two bit class field, and a five bit
option number.  These taken together form an eight bit value for the
option type field.  IP options are commonly refered to by this value.


Copy Class Number Value Name				Reference
---- ----- ------ ----- ------------------------------- ---------
   0     0      0     0 EOOL   - End of Options List    [RFC791,JBP]
   0     0      1     1 NOP    - No Operation           [RFC791,JBP]
   1     0      2   130 SEC    - Security                  [RFC1108]
   1     0      3   131 LSR    - Loose Source Route     [RFC791,JBP]
   0     2      4    68 TS     - Time Stamp             [RFC791,JBP]
   1     0      5   133 E-SEC  - Extended Security         [RFC1108]
   1     0      6   134 CIPSO  - Commercial Security           [???]
   0     0      7     7 RR     - Record Route           [RFC791,JBP]
   1     0      8   136 SID    - Stream ID              [RFC791,JBP]
   1     0      9   137 SSR    - Strict Source Route    [RFC791,JBP]
   0     0     10    10 ZSU    - Experimental Measurement      [ZSu]
   0     0     11    11 MTUP   - MTU Probe                 [RFC1191]*
   0     0     12    12 MTUR   - MTU Reply                 [RFC1191]*
   1     2     13   205 FINN   - Experimental Flow Control    [Finn]
   1     0     14   142 VISA   - Expermental Access Control [Estrin]
   0     0     15    15 ENCODE - ???                      [VerSteeg]
   1     0     16   144 IMITD  - IMI Traffic Descriptor        [Lee]
   1     0     17   145 EIP    - Extended Internet Protocol[RFC1385]
   0     2     18    82 TR     - Traceroute		   [RFC1393]
   1     0     19   147 ADDEXT - Address Extension    [Ullmann IPv7]	
   1     0     20   148 RTRALT - Router Alert              [RFC2113]
   1     0     21   149 SDB    - Selective Directed Broadcast[Graff]
   1     0     22   150 NSAPA  - NSAP Addresses          [Carpenter]
   1	 0     23   151 DPS    - Dynamic Packet State        [Malis]
   1	 0     24   152 UMP    - Upstream Multicast Pkt. [Farinacci]
*/
	if (ISDBG(M_PKT) || GET_SNIFF()) {
		INF("IPOP: dumping ipoptions");
		hexdump(data, len);
	}
}
开发者ID:IFGHou,项目名称:Unicornscan,代码行数:47,代码来源:packet_parse.c

示例10: ready

void LibFritzInit::run() {

	emit ready(false);

	bool locationSettingsDetected;
	std::string countryCode = KSettings::countryCode().toStdString();
	std::string areaCode = KSettings::areaCode().toStdString();
	KCmdLineArgs *args = KCmdLineArgs::parsedArgs();

	if (args->isSet("log-personal-info")) {
		INF("Warning: Logging personal information requested!")
	}
	// start libfritz++
    fritz::Config::Setup(KSettings::hostname().toStdString(), username.toStdString(), password.toStdString(), args->isSet("log-personal-info"));

	fritz::Config::SetupConfigDir(KStandardDirs::locateLocal("data", KGlobal::mainComponent().aboutData()->appName()+'/').toStdString());

	std::vector<std::string> vFonbook;
	QStringList phonebookList = KSettings::phonebookList();
	while (phonebookList.count())
		vFonbook.push_back(phonebookList.takeFirst().toStdString());
	fritz::FonbookManager::CreateFonbookManager(vFonbook, "", false);

	bool validPassword = fritz::Config::Init(&locationSettingsDetected, &countryCode, &areaCode);
	if (!validPassword) {
		emit invalidPassword();
		return;
	}

	if (locationSettingsDetected) {
		KSettings::setCountryCode(QString(countryCode.c_str()));
		KSettings::setAreaCode(QString(areaCode.c_str()));
		KSettings::self()->writeConfig();
	}

	std::vector<std::string> vMsn;
	QStringList msnList = KSettings::mSNFilter();
	while (msnList.count())
		vMsn.push_back(msnList.takeFirst().toStdString());
	fritz::Config::SetupMsnFilter(vMsn);

	fritz::Listener::CreateListener(eventHandler);

	fritz::CallList::CreateCallList();

	emit ready(true);
}
开发者ID:KDE,项目名称:kfritz,代码行数:47,代码来源:LibFritzInit.cpp

示例11: INF

void Checkbox::pressed()
{
    INF ( "Widget <" << getName() << "> has been pressed." );
    if(selected) {
        selected = false;
        checked->setVisibility(selected);
        if(callbackDeselected)
            callCallBack ( getName(), callbackDeselected->c_str() );
    } else {
        selected = true;
        checked->setVisibility(selected);
        if(callbackSelected)
            callCallBack ( getName(), callbackSelected->c_str() );
    }
    if(animationName)
        callAnimate ( this, animationName->c_str() );
}
开发者ID:flair2005,项目名称:inVRs,代码行数:17,代码来源:Checkbox.cpp

示例12: main

int main(int argc, char** argv) {
  DBG("[Lesson 1]: Sortings: Insertion sort bug");
  //printf("sizeof(int)=%d\n", sizeof(int) );
  //printf("sizeof(long)=%d\n", sizeof(long) );

  int array[10] = {5, 8, 1, 12, -4, -7, 3, 5, 9, 0};
  print(array, 10);
  INF("After sorting");
  sort::insertion(array, 10);
  print(array, 10);




  DBG("[Lesson 1]: Sortings: Insertion sort bug [END]");
  return 0;
}
开发者ID:duplyakin,项目名称:CppCourse_Lesson_1,代码行数:17,代码来源:insertion_sort_bug.cpp

示例13: _eeze_mount_lock_mtab

static Eina_Bool
_eeze_mount_lock_mtab(void)
{
//    DBG("Locking mlock: %s", mnt_lock_get_linkfile(_eeze_mtab_lock));
    if (EINA_LIKELY(access("/etc/mtab", W_OK)))
    {
        INF("Insufficient privs for mtab lock, continuing without lock");
        return EINA_TRUE;
    }
    if (mnt_lock_file(_eeze_mtab_lock))
    {
        ERR("Couldn't lock mtab!");
        return EINA_FALSE;
    }
    _mtab_locked = EINA_TRUE;
    return EINA_TRUE;
}
开发者ID:amitesh-singh,项目名称:Enlightenment,代码行数:17,代码来源:eeze_disk_libmount.c

示例14: _ecore_win32_event_handle_focus_out

void
_ecore_win32_event_handle_focus_out(Ecore_Win32_Callback_Data *msg)
{
   Ecore_Win32_Event_Window_Focus_Out *e;

   INF("focus out");

   e = (Ecore_Win32_Event_Window_Focus_Out *)calloc(1, sizeof(Ecore_Win32_Event_Window_Focus_Out));
   if (!e) return;

   e->window = (void *)GetWindowLongPtr(msg->window, GWLP_USERDATA);

   e->timestamp = _ecore_win32_event_last_time;
   _ecore_win32_event_last_time = e->timestamp;

   ecore_event_add(ECORE_WIN32_EVENT_WINDOW_FOCUS_OUT, e, NULL, NULL);
}
开发者ID:Limsik,项目名称:e17,代码行数:17,代码来源:ecore_win32_event.c

示例15: _ecore_win32_event_handle_destroy_notify

void
_ecore_win32_event_handle_destroy_notify(Ecore_Win32_Callback_Data *msg)
{
   Ecore_Win32_Event_Window_Destroy *e;

   INF("window destroy notify");

   e = calloc(1, sizeof(Ecore_Win32_Event_Window_Destroy));
   if (!e) return;

   e->window = (void *)GetWindowLongPtr(msg->window, GWLP_USERDATA);

   e->timestamp = _ecore_win32_event_last_time;
   if (e->window == _ecore_win32_event_last_window) _ecore_win32_event_last_window = NULL;

   ecore_event_add(ECORE_WIN32_EVENT_WINDOW_DESTROY, e, NULL, NULL);
}
开发者ID:Limsik,项目名称:e17,代码行数:17,代码来源:ecore_win32_event.c


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