这篇教程C++ DNS_DB_VALID函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中DNS_DB_VALID函数的典型用法代码示例。如果您正苦于以下问题:C++ DNS_DB_VALID函数的具体用法?C++ DNS_DB_VALID怎么用?C++ DNS_DB_VALID使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了DNS_DB_VALID函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: dns_db_ispersistentisc_boolean_tdns_db_ispersistent(dns_db_t *db) { /* * Is 'db' persistent? */ REQUIRE(DNS_DB_VALID(db)); return ((db->methods->ispersistent)(db));}
开发者ID:GabrielCastro,项目名称:bind,代码行数:11,
示例2: dns_db_endloadisc_result_tdns_db_endload(dns_db_t *db, dns_dbload_t **dbloadp) { /* * Finish loading 'db'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(dbloadp != NULL && *dbloadp != NULL); return ((db->methods->endload)(db, dbloadp));}
开发者ID:AlexZhao,项目名称:freebsd,代码行数:11,
示例3: dns_db_getoriginnodeisc_result_tdns_db_getoriginnode(dns_db_t *db, dns_dbnode_t **nodep) { REQUIRE(DNS_DB_VALID(db)); REQUIRE(dns_db_iszone(db) == ISC_TRUE); REQUIRE(nodep != NULL && *nodep == NULL); if (db->methods->getoriginnode != NULL) return ((db->methods->getoriginnode)(db, nodep)); return (ISC_R_NOTFOUND);}
开发者ID:AlexZhao,项目名称:freebsd,代码行数:11,
示例4: dns_db_beginloadisc_result_tdns_db_beginload(dns_db_t *db, dns_rdatacallbacks_t *callbacks) { /* * Begin loading 'db'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(DNS_CALLBACK_VALID(callbacks)); return ((db->methods->beginload)(db, callbacks));}
开发者ID:Stichting-MINIX-Research-Foundation,项目名称:minix,代码行数:11,
示例5: dns_db_printnodevoiddns_db_printnode(dns_db_t *db, dns_dbnode_t *node, FILE *out) { /* * Print a textual representation of the contents of the node to * 'out'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(node != NULL); (db->methods->printnode)(db, node, out);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:12,
示例6: dns_db_endloadisc_result_tdns_db_endload(dns_db_t *db, dns_rdatacallbacks_t *callbacks) { /* * Finish loading 'db'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(DNS_CALLBACK_VALID(callbacks)); REQUIRE(callbacks->add_private != NULL); return ((db->methods->endload)(db, callbacks));}
开发者ID:fatman2021,项目名称:netbsd-src,代码行数:12,
示例7: dns_db_getsizeisc_result_tdns_db_getsize(dns_db_t *db, dns_dbversion_t *version, isc_uint64_t *records, isc_uint64_t *bytes){ REQUIRE(DNS_DB_VALID(db)); REQUIRE(dns_db_iszone(db) == ISC_TRUE); if (db->methods->getsize != NULL) return ((db->methods->getsize)(db, version, records, bytes)); return (ISC_R_NOTFOUND);}
开发者ID:rockhunters08,项目名称:bind9,代码行数:12,
示例8: dns_db_issecureisc_boolean_tdns_db_issecure(dns_db_t *db) { /* * Is 'db' secure? */ REQUIRE(DNS_DB_VALID(db)); REQUIRE((db->attributes & DNS_DBATTR_CACHE) == 0); return ((db->methods->issecure)(db));}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:12,
示例9: dns_db_createiteratorisc_result_tdns_db_createiterator(dns_db_t *db, isc_boolean_t relative_names, dns_dbiterator_t **iteratorp){ /* * Create an iterator for version 'version' of 'db'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(iteratorp != NULL && *iteratorp == NULL); return (db->methods->createiterator(db, relative_names, iteratorp));}
开发者ID:miettal,项目名称:armadillo420_standard,代码行数:13,
示例10: dns_db_dump2isc_result_tdns_db_dump2(dns_db_t *db, dns_dbversion_t *version, const char *filename, dns_masterformat_t masterformat) { /* * Dump 'db' into master file 'filename' in the 'masterformat' format. * XXXJT: is it okay to modify the interface to the existing "dump" * method? */ REQUIRE(DNS_DB_VALID(db)); return ((db->methods->dump)(db, version, filename, masterformat));}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:13,
示例11: dns_db_createiteratorisc_result_tdns_db_createiterator(dns_db_t *db, unsigned int flags, dns_dbiterator_t **iteratorp){ /* * Create an iterator for version 'version' of 'db'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(iteratorp != NULL && *iteratorp == NULL); return (db->methods->createiterator(db, flags, iteratorp));}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:13,
示例12: dns_db_expirenodeisc_result_tdns_db_expirenode(dns_db_t *db, dns_dbnode_t *node, isc_stdtime_t now) { /* * Mark as stale all records at 'node' which expire at or before 'now'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE((db->attributes & DNS_DBATTR_CACHE) != 0); REQUIRE(node != NULL); return ((db->methods->expirenode)(db, node, now));}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:13,
示例13: dns_db_attachnodevoiddns_db_attachnode(dns_db_t *db, dns_dbnode_t *source, dns_dbnode_t **targetp) { /* * Attach *targetp to source. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(source != NULL); REQUIRE(targetp != NULL && *targetp == NULL); (db->methods->attachnode)(db, source, targetp);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:13,
示例14: dns_db_newversionisc_result_tdns_db_newversion(dns_db_t *db, dns_dbversion_t **versionp) { /* * Open a new version for reading and writing. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE((db->attributes & DNS_DBATTR_CACHE) == 0); REQUIRE(versionp != NULL && *versionp == NULL); return ((db->methods->newversion)(db, versionp));}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:13,
示例15: dns_db_beginloadisc_result_tdns_db_beginload(dns_db_t *db, dns_addrdatasetfunc_t *addp, dns_dbload_t **dbloadp) { /* * Begin loading 'db'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(addp != NULL && *addp == NULL); REQUIRE(dbloadp != NULL && *dbloadp == NULL); return ((db->methods->beginload)(db, addp, dbloadp));}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:13,
示例16: dns_db_currentversionvoiddns_db_currentversion(dns_db_t *db, dns_dbversion_t **versionp) { /* * Open the current version for reading. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE((db->attributes & DNS_DBATTR_CACHE) == 0); REQUIRE(versionp != NULL && *versionp == NULL); (db->methods->currentversion)(db, versionp);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:13,
示例17: dns_db_detachnodevoiddns_db_detachnode(dns_db_t *db, dns_dbnode_t **nodep) { /* * Detach *nodep from its node. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(nodep != NULL && *nodep != NULL); (db->methods->detachnode)(db, nodep); ENSURE(*nodep == NULL);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:14,
示例18: dns_db_findnsec3nodeisc_result_tdns_db_findnsec3node(dns_db_t *db, dns_name_t *name, isc_boolean_t create, dns_dbnode_t **nodep){ /* * Find the node with name 'name'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(nodep != NULL && *nodep == NULL); return ((db->methods->findnsec3node)(db, name, create, nodep));}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:14,
示例19: dns_db_isstubisc_boolean_tdns_db_isstub(dns_db_t *db) { /* * Does 'db' have stub semantics? */ REQUIRE(DNS_DB_VALID(db)); if ((db->attributes & DNS_DBATTR_STUB) != 0) return (ISC_TRUE); return (ISC_FALSE);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:14,
示例20: dns_db_detachvoiddns_db_detach(dns_db_t **dbp) { /* * Detach *dbp from its database. */ REQUIRE(dbp != NULL); REQUIRE(DNS_DB_VALID(*dbp)); ((*dbp)->methods->detach)(dbp); ENSURE(*dbp == NULL);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:14,
示例21: dns_db_iscacheisc_boolean_tdns_db_iscache(dns_db_t *db) { /* * Does 'db' have cache semantics? */ REQUIRE(DNS_DB_VALID(db)); if ((db->attributes & DNS_DBATTR_CACHE) != 0) return (ISC_TRUE); return (ISC_FALSE);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:14,
示例22: dns_db_isdnssecisc_boolean_tdns_db_isdnssec(dns_db_t *db) { /* * Is 'db' secure or partially secure? */ REQUIRE(DNS_DB_VALID(db)); REQUIRE((db->attributes & DNS_DBATTR_CACHE) == 0); if (db->methods->isdnssec != NULL) return ((db->methods->isdnssec)(db)); return ((db->methods->issecure)(db));}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:14,
示例23: dns_db_attachvoiddns_db_attach(dns_db_t *source, dns_db_t **targetp) { /* * Attach *targetp to source. */ REQUIRE(DNS_DB_VALID(source)); REQUIRE(targetp != NULL && *targetp == NULL); (source->methods->attach)(source, targetp); ENSURE(*targetp == source);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:14,
示例24: dns_db_iszoneisc_boolean_tdns_db_iszone(dns_db_t *db) { /* * Does 'db' have zone semantics? */ REQUIRE(DNS_DB_VALID(db)); if ((db->attributes & (DNS_DBATTR_CACHE|DNS_DBATTR_STUB)) == 0) return (ISC_TRUE); return (ISC_FALSE);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:14,
示例25: dns_db_allrdatasetsisc_result_tdns_db_allrdatasets(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version, isc_stdtime_t now, dns_rdatasetiter_t **iteratorp){ /* * Make '*iteratorp' an rdataset iteratator for all rdatasets at * 'node' in version 'version' of 'db'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(iteratorp != NULL && *iteratorp == NULL); return ((db->methods->allrdatasets)(db, node, version, now, iteratorp));}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:15,
示例26: dns_db_getnsec3parametersisc_result_tdns_db_getnsec3parameters(dns_db_t *db, dns_dbversion_t *version, dns_hash_t *hash, isc_uint8_t *flags, isc_uint16_t *iterations, unsigned char *salt, size_t *salt_length){ REQUIRE(DNS_DB_VALID(db)); REQUIRE(dns_db_iszone(db) == ISC_TRUE); if (db->methods->getnsec3parameters != NULL) return ((db->methods->getnsec3parameters)(db, version, hash, flags, iterations, salt, salt_length)); return (ISC_R_NOTFOUND);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:16,
示例27: dns_db_attachversionvoiddns_db_attachversion(dns_db_t *db, dns_dbversion_t *source, dns_dbversion_t **targetp){ /* * Attach '*targetp' to 'source'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE((db->attributes & DNS_DBATTR_CACHE) == 0); REQUIRE(source != NULL); REQUIRE(targetp != NULL && *targetp == NULL); (db->methods->attachversion)(db, source, targetp); ENSURE(*targetp != NULL);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:17,
示例28: dns_db_closeversionvoiddns_db_closeversion(dns_db_t *db, dns_dbversion_t **versionp, isc_boolean_t commit){ /* * Close version '*versionp'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE((db->attributes & DNS_DBATTR_CACHE) == 0); REQUIRE(versionp != NULL && *versionp != NULL); (db->methods->closeversion)(db, versionp, commit); ENSURE(*versionp == NULL);}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:17,
示例29: dns_db_deleterdatasetisc_result_tdns_db_deleterdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version, dns_rdatatype_t type, dns_rdatatype_t covers){ /* * Make it so that no rdataset of type 'type' exists at 'node' in * version version 'version' of 'db'. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(node != NULL); REQUIRE(((db->attributes & DNS_DBATTR_CACHE) == 0 && version != NULL)|| ((db->attributes & DNS_DBATTR_CACHE) != 0 && version == NULL)); return ((db->methods->deleterdataset)(db, node, version, type, covers));}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:18,
示例30: dns_db_findnodeextisc_result_tdns_db_findnodeext(dns_db_t *db, dns_name_t *name, isc_boolean_t create, dns_clientinfomethods_t *methods, dns_clientinfo_t *clientinfo, dns_dbnode_t **nodep){ /* * Find the node with name 'name', passing 'arg' to the database * implementation. */ REQUIRE(DNS_DB_VALID(db)); REQUIRE(nodep != NULL && *nodep == NULL); if (db->methods->findnodeext != NULL) return ((db->methods->findnodeext)(db, name, create, methods, clientinfo, nodep)); else return ((db->methods->findnode)(db, name, create, nodep));}
开发者ID:VargMon,项目名称:netbsd-cvs-mirror,代码行数:19,
注:本文中的DNS_DB_VALID函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ DNS_PEER_VALID函数代码示例 C++ DNS_BIT_CHECK函数代码示例 |