本文整理汇总了C++中VoidResult函数的典型用法代码示例。如果您正苦于以下问题:C++ VoidResult函数的具体用法?C++ VoidResult怎么用?C++ VoidResult使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了VoidResult函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: call
VoidResult Playlist::load( const std::string& playlist ) const
{
xmmsc_result_t* res =
call( connected_,
boost::bind( xmmsc_playlist_load, conn_, playlist.c_str() ) );
return VoidResult( res, ml_ );
}
示例2: call
VoidResult Playback::seekMs(unsigned int milliseconds) const
{
xmmsc_result_t* res =
call( connected_,
boost::bind( xmmsc_playback_seek_ms, conn_, milliseconds ) );
return VoidResult( res, ml_ );
}
示例3: call
VoidResult Bindata::remove( const std::string& hash ) const
{
xmmsc_result_t* res =
call( connected_,
boost::bind( xmmsc_bindata_remove, conn_, hash.c_str() ) );
return VoidResult( res, ml_ );
}
示例4: call
VoidResult Playback::seekSamplesRel(int samples) const
{
xmmsc_result_t* res =
call( connected_,
boost::bind( xmmsc_playback_seek_samples, conn_,
samples, XMMS_PLAYBACK_SEEK_CUR ) );
return VoidResult( res, ml_ );
}
示例5: call
VoidResult
Collection::remove( const std::string& name, Namespace nsname ) const
{
xmmsc_result_t* res =
call( connected_,
boost::bind( xmmsc_coll_remove, conn_, name.c_str(), nsname ) );
return VoidResult( res, ml_ );
}
示例6: call
VoidResult
Config::valueRegister( const std::string& name,
const std::string& defval ) const
{
xmmsc_result_t* res =
call( connected_,
boost::bind( xmmsc_configval_register, conn_,
name.c_str(), defval.c_str() ) );
return VoidResult( res, ml_ );
}
示例7: fillCharArray
VoidResult Playlist::addUrl( const std::string& url,
const std::list< std::string >& args,
const std::string& playlist ) const
{
std::vector< const char* > cargs;
fillCharArray( args, cargs );
xmmsc_result_t* res =
call( connected_,
boost::bind( xmmsc_playlist_add_args, conn_,
playlist.c_str(), url.c_str(),
args.size(), &cargs[0] ) );
return VoidResult( res, ml_ );
}
示例8: makeStringList
VoidResult Playlist::sort( const std::list<std::string>& properties,
const std::string& playlist ) const
{
xmmsv_t *xprops = makeStringList( properties );
xmmsc_result_t* res =
call( connected_,
boost::bind( xmmsc_playlist_sort, conn_,
playlist.c_str(), xprops ) );
xmmsv_unref( xprops );
return VoidResult( res, ml_ );
}