• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ Callback函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: LOGSTRING

// --------------------------------------------------------------------------
//  CNSmlDmAOAdapter::FetchLeafObjectSizeL
//  Fetches leaf object size.
// -------------------------------------------------------------------------
void CNSmlDmAOAdapter::FetchLeafObjectSizeL( const TDesC8& aURI, 
                                             const TDesC8& aLUID,
									         const TDesC8& /* aType */, 
									         TInt aResultsRef,
									         TInt aStatusRef )
    {
    LOGSTRING( "CNSmlDmAOAdapter::FetchLeafObjectSizeL: Start" );
    LOGSTRING3( "\tFetchLeafObjectSizeL  \tURI: %S, \tLUID: %S,", 
                         &aURI, &aLUID );
   
    CSmlDmAOCommandElement* cmd = 
    CSmlDmAOCommandElement::NewLC( ETrue, 
                                   aStatusRef, 
                                   aResultsRef, 
                                   CNSmlDmAOAdapter::EGetSizeCmd,
                                   LastURISeg( aURI ), 
                                   KNullDesC8);
                                   
    TInt luid( KDefaultLuid );
    
    if ( aLUID.Length() > 0 )
        {
        luid = DesToIntL( aLUID );    
        }
                                       
    iSettingStore->ExecuteCmdL( *cmd, luid );
    
    LOGSTRING2( "\tCmd executed with status: %d ", 
                          cmd->Status() );
    // if executed get status
    if ( cmd->Executed() ) 
        {
        Callback().SetStatusL( aStatusRef, cmd->Status() );            
        // if successful get results
        if ( cmd->Status() == CSmlDmAdapter::EOk )
            {
            LOGSTRING2( "\tCmd executed with result: %S ", 
                                  cmd->Data() );
            CBufBase* result = CBufFlat::NewL( cmd->Data()->Size() );
            CleanupStack::PushL( result );
            result->InsertL( 0, *cmd->Data() );
            Callback().SetResultsL( aResultsRef, *result, KNullDesC8 );
            CleanupStack::PopAndDestroy( result );
            }
        }
    else
        {
        // failed to execute command
        Callback().SetStatusL( aStatusRef, CSmlDmAdapter::EError );
        }
    
    CleanupStack::PopAndDestroy( cmd );
        
    LOGSTRING( "CNSmlDmAOAdapter::FetchLeafObjectSizeL: End" );
    }
开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:59,代码来源:nsmldmalwaysonadapter.cpp


示例2: CVkDlgBase

CVkOptionFeedsForm::CVkOptionFeedsForm(CVkProto *proto):
	CVkDlgBase(proto, IDD_OPT_FEEDS, false),
	m_cbNewsEnabled(this, IDC_NEWS_ENBL),
	m_edtNewsInterval(this, IDC_ED_INT_NEWS),
	m_spNewsInterval(this, IDC_SPIN_INT_NEWS),
	m_cbNotificationsEnabled(this, IDC_NOTIF_ENBL),
	m_edtNotificationsInterval(this, IDC_ED_INT_NOTIF),
	m_spNotificationsInterval(this, IDC_SPIN_INT_NOTIF),
	m_cbNotificationsMarkAsViewed(this, IDC_NOTIF_MARK_VIEWED),
	m_cbSpecialContactAlwaysEnabled(this, IDC_SPEC_CONT_ENBL),
	m_cbNewsAutoClearHistory(this, IDC_NEWSAUTOCLEAR),
	m_cbNewsFilterPosts(this, IDC_F_POSTS),
	m_cbNewsFilterPhotos(this, IDC_F_PHOTOS),
	m_cbNewsFilterTags(this, IDC_F_TAGS),
	m_cbNewsFilterWallPhotos(this, IDC_F_WALLPHOTOS),
	m_cbNewsSourceFriends(this, IDC_S_FRIENDS),
	m_cbNewsSourceGroups(this, IDC_S_GROUPS),
	m_cbNewsSourcePages(this, IDC_S_PAGES),
	m_cbNewsSourceFollowing(this, IDC_S_FOLLOWING),
	m_cbNewsSourceIncludeBanned(this, IDC_S_BANNED),
	m_cbNewsSourceNoReposts(this, IDC_S_NOREPOSTES),
	m_cbNotificationFilterComments(this, IDC_N_COMMENTS),
	m_cbNotificationFilterLikes(this, IDC_N_LIKES),
	m_cbNotificationFilterReposts(this, IDC_N_REPOSTS),
	m_cbNotificationFilterMentions(this, IDC_N_MENTIONS),
	m_cbNotificationFilterInvites(this, IDC_N_INVITES)
{
	CreateLink(m_cbNewsEnabled, m_proto->m_vkOptions.bNewsEnabled);
	CreateLink(m_edtNewsInterval, m_proto->m_vkOptions.iNewsInterval);
	CreateLink(m_cbNotificationsEnabled, m_proto->m_vkOptions.bNotificationsEnabled);
	CreateLink(m_edtNotificationsInterval, m_proto->m_vkOptions.iNotificationsInterval);
	CreateLink(m_cbNotificationsMarkAsViewed, m_proto->m_vkOptions.bNotificationsMarkAsViewed);
	CreateLink(m_cbSpecialContactAlwaysEnabled, m_proto->m_vkOptions.bSpecialContactAlwaysEnabled);
	CreateLink(m_cbNewsAutoClearHistory, m_proto->m_vkOptions.bNewsAutoClearHistory);
	CreateLink(m_cbNewsFilterPosts, m_proto->m_vkOptions.bNewsFilterPosts);
	CreateLink(m_cbNewsFilterPhotos, m_proto->m_vkOptions.bNewsFilterPhotos);
	CreateLink(m_cbNewsFilterTags, m_proto->m_vkOptions.bNewsFilterTags);
	CreateLink(m_cbNewsFilterWallPhotos, m_proto->m_vkOptions.bNewsFilterWallPhotos);
	CreateLink(m_cbNewsSourceFriends, m_proto->m_vkOptions.bNewsSourceFriends);
	CreateLink(m_cbNewsSourceGroups, m_proto->m_vkOptions.bNewsSourceGroups);
	CreateLink(m_cbNewsSourcePages, m_proto->m_vkOptions.bNewsSourcePages);
	CreateLink(m_cbNewsSourceFollowing, m_proto->m_vkOptions.bNewsSourceFollowing);
	CreateLink(m_cbNewsSourceIncludeBanned, m_proto->m_vkOptions.bNewsSourceIncludeBanned);
	CreateLink(m_cbNewsSourceNoReposts, m_proto->m_vkOptions.bNewsSourceNoReposts);
	CreateLink(m_cbNotificationFilterComments, m_proto->m_vkOptions.bNotificationFilterComments);
	CreateLink(m_cbNotificationFilterLikes, m_proto->m_vkOptions.bNotificationFilterLikes);
	CreateLink(m_cbNotificationFilterReposts, m_proto->m_vkOptions.bNotificationFilterReposts);
	CreateLink(m_cbNotificationFilterMentions, m_proto->m_vkOptions.bNotificationFilterMentions);
	CreateLink(m_cbNotificationFilterInvites, m_proto->m_vkOptions.bNotificationFilterInvites);

	m_cbNewsEnabled.OnChange = Callback(this, &CVkOptionFeedsForm::On_cbNewsEnabledChange);
	m_cbNotificationsEnabled.OnChange = Callback(this, &CVkOptionFeedsForm::On_cbNotificationsEnabledChange);

}
开发者ID:wyrover,项目名称:miranda-ng,代码行数:54,代码来源:vk_options.cpp


示例3: CFacebookDlgBase

CFacebookGuardDialog::CFacebookGuardDialog(FacebookProto *proto, const char *fb_dtsg)
	: CFacebookDlgBase(proto, IDD_GUARD, false),
	m_ok(this, IDOK),
	m_sms(this, IDC_SEND_SMS),
	m_text(this, IDC_TEXT),
	m_fb_dtsg(fb_dtsg)
{
	memset(m_code, 0, sizeof(m_code));
	m_ok.OnClick = Callback(this, &CFacebookGuardDialog::OnOk);
	m_sms.OnClick = Callback(this, &CFacebookGuardDialog::OnSms);
}
开发者ID:ybznek,项目名称:miranda-ng,代码行数:11,代码来源:dialogs.cpp


示例4: CSuper

CJabberDlgBookmarks::CJabberDlgBookmarks(CJabberProto *proto) :
	CSuper(proto, IDD_BOOKMARKS, NULL),
	m_btnAdd(this,      IDC_ADD,    SKINICON_OTHER_ADDCONTACT, LPGEN("Add")),
	m_btnEdit(this,     IDC_EDIT,   SKINICON_OTHER_RENAME,     LPGEN("Edit")),
	m_btnRemove(this,   IDC_REMOVE, SKINICON_OTHER_DELETE,     LPGEN("Remove")),
	m_lvBookmarks(this, IDC_BM_LIST, true, true)
{
	m_lvBookmarks.OnItemActivate = Callback(this, &CJabberDlgBookmarks::lvBookmarks_OnDoubleClick);
	m_btnAdd.OnClick = Callback(this, &CJabberDlgBookmarks::btnAdd_OnClick);
	m_btnEdit.OnClick = Callback(this, &CJabberDlgBookmarks::btnEdit_OnClick);
	m_btnRemove.OnClick = Callback(this, &CJabberDlgBookmarks::btnRemove_OnClick);
}
开发者ID:Seldom,项目名称:miranda-ng,代码行数:12,代码来源:jabber_bookmarks.cpp


示例5: CVkDlgBase

CVkCaptchaForm::CVkCaptchaForm(CVkProto *proto, CAPTCHA_FORM_PARAMS *param) :
	CVkDlgBase(proto, IDD_CAPTCHAFORM, false),
	m_instruction(this, IDC_INSTRUCTION),
	m_edtValue(this, IDC_VALUE),
	m_btnOpenInBrowser(this, IDOPENBROWSER),
	m_btnOk(this, IDOK),
	m_param(param)
{
	m_btnOpenInBrowser.OnClick = Callback(this, &CVkCaptchaForm::On_btnOpenInBrowser_Click);
	m_btnOk.OnClick = Callback(this, &CVkCaptchaForm::On_btnOk_Click);
	m_edtValue.OnChange = Callback(this, &CVkCaptchaForm::On_edtValue_Change);
}
开发者ID:ybznek,项目名称:miranda-ng,代码行数:12,代码来源:vk_dialogs.cpp


示例6: Replace

 void Replace(uint32_t index, T entry)
 {
    if (index < Size())
    {
       Callback(Buffer_Remove, BufferImpl<T>::at(index));
       BufferImpl<T>::at(index) = entry;
       Callback(Buffer_Add, entry);
    }
    else
    {
       Add(entry);
    }
 }
开发者ID:GermainZ,项目名称:vimpc,代码行数:13,代码来源:buffer.hpp


示例7: CDlgBase

CLuaOptions::CLuaOptions(int idDialog)
	: CDlgBase(g_hInstance, idDialog),
	m_popupOnError(this, IDC_POPUPONERROR),
	m_popupOnObsolete(this, IDC_POPUPONOBSOLETE),
	isScriptListInit(false), m_scripts(this, IDC_SCRIPTS),
	m_reload(this, IDC_RELOAD)
{
	CreateLink(m_popupOnError, "PopupOnError", DBVT_BYTE, 1);
	CreateLink(m_popupOnObsolete, "PopupOnObsolete", DBVT_BYTE, 1);

	m_scripts.OnClick = Callback(this, &CLuaOptions::OnScriptListClick);
	m_reload.OnClick = Callback(this, &CLuaOptions::OnReload);
}
开发者ID:kxepal,项目名称:miranda-ng,代码行数:13,代码来源:mlua_options.cpp


示例8: Accept

    auto Accept(ConnectionWrapper *Connection, CallbackFunctor &&Callback)
    {
        // Accept on streamed socket.
        if (Connection->Type == eConnection::STREAMED)
        {
            sockaddr ClientInfo;
            int ClientLength = 0;
            void *Socket = (void *)accept((SOCKET)Connection->Handle.Streamed.Socket, &ClientInfo, &ClientLength);

            return Callback(Socket, &ClientInfo, ClientLength);
        }

        return Callback(nullptr, nullptr, 0);
    }
开发者ID:Convery,项目名称:npRouter,代码行数:14,代码来源:NetworkManager.cpp


示例9: LOG

bool
CamerasChild::RecvFrameSizeChange(const CaptureEngine& capEngine,
                                  const int& capId,
                                  const int& w, const int& h)
{
  LOG((__PRETTY_FUNCTION__));
  MutexAutoLock lock(mCallbackMutex);
  if (Callback(capEngine, capId)) {
    Callback(capEngine, capId)->FrameSizeChange(w, h, 0);
  } else {
    LOG(("Frame size change with dead callback"));
  }
  return true;
}
开发者ID:philbooth,项目名称:gecko-dev,代码行数:14,代码来源:CamerasChild.cpp


示例10: if

void InputManager::HandleEvent(sf::Event e) {
	// check for resize event and recreate view
	if(e.Type == sf::Event::Resized) {
		Root::get_mutable_instance().ResetView();
	}

    // check for keyboard event
	if(e.Type == sf::Event::KeyPressed or e.Type == sf::Event::KeyReleased) {
		for(auto i = mKeyBindings.begin(); i != mKeyBindings.end(); ++i) {
			if(i->Key == e.Key.Code or i->UseAnyKey) {
				if((i->EventType == KEY_PRESSED and e.Type == sf::Event::KeyPressed) or
						(i->EventType == KEY_RELEASED and e.Type == sf::Event::KeyReleased))
					i->Callback();
			}
		}
	}

    // check for mouse event
    if(e.Type == sf::Event::MouseButtonPressed or
			e.Type == sf::Event::MouseButtonReleased or
			e.Type == sf::Event::MouseMoved or
			e.Type == sf::Event::MouseWheelMoved) {

        for(auto i = mMouseBindings.begin(); i != mMouseBindings.end(); ++i) {
            if((i->EventType == BUTTON_PRESSED and
					e.Type == sf::Event::MouseButtonPressed)
					and i->Button == e.MouseButton.Button) {
                MouseEventArgs a;
				a.SetScreenPixel(Vector2D(e.MouseButton.X, e.MouseButton.Y));
                i->Callback(a);
            } else if((i->EventType == BUTTON_RELEASED and
					e.Type == sf::Event::MouseButtonReleased) and 
					i->Button == e.MouseButton.Button) {
                MouseEventArgs a;
				a.SetScreenPixel(Vector2D(e.MouseButton.X, e.MouseButton.Y));
                i->Callback(a);
			} else if(i->EventType == MOUSE_MOVED and
					e.Type == sf::Event::MouseMoved) {
                MouseEventArgs a;
				a.SetScreenPixel(Vector2D(e.MouseMove.X, e.MouseMove.Y));
                i->Callback(a);
            } else if(i->EventType == WHEEL_MOVED and
					e.Type == sf::Event::MouseWheelMoved) {
                MouseEventArgs a;
                a.WheelDelta = e.MouseWheel.Delta;
				i->Callback(a);
            }
        }
    }
}
开发者ID:svenstaro,项目名称:NoisyHunter,代码行数:50,代码来源:InputManager.cpp


示例11: ec

void CUICustomEdit::Register_callbacks()
{
	ec().assign_callback( DIK_ESCAPE,      text_editor::ks_free, Callback( this, &CUICustomEdit::press_escape ) );
	ec().assign_callback( DIK_RETURN,      text_editor::ks_free, Callback( this, &CUICustomEdit::press_commit ) );
	ec().assign_callback( DIK_NUMPADENTER, text_editor::ks_free, Callback( this, &CUICustomEdit::press_commit ) );
	ec().assign_callback( DIK_GRAVE,       text_editor::ks_free, Callback( this, &CUICustomEdit::nothing ) );

//	ec().assign_callback( DIK_TAB,   text_editor::ks_free,  Callback( this, &CConsole::Find_cmd      ) );
//	ec().assign_callback( DIK_TAB,   text_editor::ks_Shift, Callback( this, &CConsole::Find_cmd_back ) );
//	ec().assign_callback( DIK_UP,    text_editor::ks_free,  Callback( this, &CConsole::Prev_cmd      ) );
//	ec().assign_callback( DIK_DOWN,  text_editor::ks_free,  Callback( this, &CConsole::Next_cmd      ) );
//	ec().assign_callback( DIK_TAB,   text_editor::ks_Alt,   Callback( this, &CConsole::GamePause ) );

}
开发者ID:2asoft,项目名称:xray,代码行数:14,代码来源:UICustomEdit.cpp


示例12: EntityNode

LightNode::LightNode(const IEntityClassPtr& eclass) :
	EntityNode(eclass),
	_light(_entity,
		   *this,
		   Callback(boost::bind(&scene::Node::transformChanged, this)),
		   Callback(boost::bind(&scene::Node::boundsChanged, this)),
		   Callback(boost::bind(&LightNode::lightChanged, this))),
	_lightCenterInstance(_light.getDoom3Radius().m_centerTransformed, boost::bind(&LightNode::selectedChangedComponent, this, _1)),
	_lightTargetInstance(_light.targetTransformed(), boost::bind(&LightNode::selectedChangedComponent, this, _1)),
	_lightRightInstance(_light.rightTransformed(), _light.targetTransformed(), boost::bind(&LightNode::selectedChangedComponent, this, _1)),
	_lightUpInstance(_light.upTransformed(), _light.targetTransformed(), boost::bind(&LightNode::selectedChangedComponent, this, _1)),
	_lightStartInstance(_light.startTransformed(), boost::bind(&LightNode::selectedChangedComponent, this, _1)),
	_lightEndInstance(_light.endTransformed(), boost::bind(&LightNode::selectedChangedComponent, this, _1)),
	m_dragPlanes(boost::bind(&LightNode::selectedChangedComponent, this, _1))
{}
开发者ID:OpenTechEngine,项目名称:DarkRadiant,代码行数:15,代码来源:LightNode.cpp


示例13: PyThreadState_Get

void ForwardType::Fire(py::list argumentsList) {
	for(std::list<ForwardFunction>::iterator it = Functions.begin();
		it != Functions.end(); it++) {
		ForwardFunction fwdFunction = *it;

		PyThreadState *oldThreadState = PyThreadState_Get();

		PyThreadState_Swap(fwdFunction.ThreadState);

		py::object returnValue = py::object(true);

		try {
			py::object returnValue = fwdFunction.PythonFunction(*py::tuple(argumentsList));
		}
		catch(const py::error_already_set &) {
			PyErr_Print();
		}

		PyThreadState_Swap(oldThreadState);

		if(!Callback(returnValue)) {
			PyThreadState_Swap(oldThreadState);
			return;
		}
	}
}
开发者ID:KissLick,项目名称:viper,代码行数:26,代码来源:ForwardType.cpp


示例14: CAddContactDlg

	CAddContactDlg(ADDCONTACTSTRUCT *acs) :
		CDlgBase(g_hInst, IDD_ADDCONTACT),
		m_chkAdded(this, IDC_ADDED),
		m_chkAuth(this, IDC_AUTH),
		m_chkOpen(this, IDC_OPEN_WINDOW),
		m_btnOk(this, IDOK),
		m_group(this, IDC_GROUP),
		m_authReq(this, IDC_AUTHREQ),
		m_myHandle(this, IDC_MYHANDLE)
	{
		m_chkAuth.OnChange = Callback(this, &CAddContactDlg::OnAuthClicked);
		m_chkOpen.OnChange = Callback(this, &CAddContactDlg::OnOpenClicked);
		m_btnOk.OnClick = Callback(this, &CAddContactDlg::OnOk);

		m_acs = *acs;
	}
开发者ID:ybznek,项目名称:miranda-ng,代码行数:16,代码来源:addcontact.cpp


示例15: sizeof

bool cConnection::Read(void)
{
	char	temp[8193];
	int		size;

	size = Socket->recv(temp, sizeof(temp)-1);
	if (size >= 0)
	{
		Buffer.Add(temp, size);

		temp[size] = 0;
	}
	if (Buffer.Get() && strstr(Buffer.Get(), "\r\n\r\n"))
	{	// found the blank line
		temp[0] = 0;
		Buffer.Add(temp, 1);

		Reading = false;
		Buffer.FreeBeforeNextAdd();

		if (Callback)
		{
			Callback(this);
		}
		return ReadCallback();
	}

	return false;
}
开发者ID:3ddy,项目名称:Jedi-Academy,代码行数:29,代码来源:sockets.cpp


示例16: atof

void cvar_t::ForceSet (const char *val)
{
	if (m_Flags & CVAR_LATCH &&
		 !(m_Flags & CVAR_SERVERINFO && baseapp != server) &&
		 !(m_Flags & CVAR_CLIENTINFO && baseapp != client))
	{
		m_Flags |= CVAR_MODIFIED;
		if(val)
			m_LatchedString = val;
		else
			m_LatchedString = "";
	}
	else
	{
		m_Flags |= CVAR_MODIFIED;
		if(val)
			m_String = val;
		else
			m_String = "";
		m_Value = atof (val);

		if (m_Flags & CVAR_USERINFO)
			D_UserInfoChanged (this);
		if (m_Flags & CVAR_SERVERINFO)
			D_SendServerInfoChange (this, val);

		if (m_UseCallback)
			Callback ();
	}
	m_Flags &= ~CVAR_ISDEFAULT;
}
开发者ID:JohnnyonFlame,项目名称:odamex,代码行数:31,代码来源:c_cvars.cpp


示例17: from_function_e

 static Callback from_function_e(UserData userdata) {
     return Callback(
         [=](Args && ... args) -> R {
             return function_caller_e<UserData, Function>(std::forward<Args>(args)..., userdata);
         }
     );
 }
开发者ID:CCJY,项目名称:coliru,代码行数:7,代码来源:main.cpp


示例18: Callback

SoundHandle::~SoundHandle()
{
    if(hasCallback == true)
    {
        Callback();
    }
    /*
     * i was running into a bug because i didnt do the isvalid / NULL
     * checks ..
     * sources get removed even if you dont do RemoveSource
     * but it will not dereference them! ..
     */
    if(sndstream != NULL)
    {
        SoundSystemManager::GetSingleton().GetSoundSystem()->RemoveStream(sndstream);
    }

    if(sndsource != NULL)
    {
        SoundSystemManager::GetSingleton().GetSoundSystem()->RemoveSource(sndsource);
    }

    if(delayActive)
    {
        SoundSystemManager::GetSingleton().eventTimer->RemoveTimerEvent(this);
    }
}
开发者ID:randomcoding,项目名称:PlaneShift-PSAI,代码行数:27,代码来源:handle.cpp


示例19: CSuper

CJabberDlgGcJoin::CJabberDlgGcJoin(CJabberProto *proto, TCHAR *jid) :
	CSuper(proto, IDD_GROUPCHAT_JOIN, NULL),
	btnOk(this, IDOK),
	m_jid(mir_tstrdup(jid))
{
	btnOk.OnClick = Callback(this, &CJabberDlgGcJoin::OnBtnOk);
}
开发者ID:ybznek,项目名称:miranda-ng,代码行数:7,代码来源:jabber_groupchat.cpp


示例20: Endpoint_Read_Stream_BE

uint8_t Endpoint_Read_Stream_BE(void* Buffer, uint16_t Length
#if !defined(NO_STREAM_CALLBACKS)
                                 , uint8_t (* const Callback)(void)
#endif
								 )
{
	uint8_t* DataStream = (uint8_t*)(Buffer + Length - 1);
	uint8_t  ErrorCode;
	
	if ((ErrorCode = Endpoint_WaitUntilReady()))
	  return ErrorCode;

	while (Length--)
	{
		if (!(Endpoint_ReadWriteAllowed()))
		{
			Endpoint_ClearCurrentBank();

			#if !defined(NO_STREAM_CALLBACKS)
			if ((Callback != NULL) && (Callback() == STREAMCALLBACK_Abort))
			  return ENDPOINT_RWSTREAM_ERROR_CallbackAborted;
			#endif

			if ((ErrorCode = Endpoint_WaitUntilReady()))
			  return ErrorCode;
		}
		
		*(DataStream--) = Endpoint_Read_Byte();
	}
	
	return ENDPOINT_RWSTREAM_ERROR_NoError;
}
开发者ID:Limpinho0,项目名称:motmot-camtrig,代码行数:32,代码来源:Endpoint.c



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ Calloc函数代码示例发布时间:2022-05-30
下一篇:
C++ CallWorker函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap