Lines Matching defs:hint
21 static cnid_t set_max_cnid(CNID_private *db, cnid_t hint)
57 id1 = ntohl(hint);
60 memcpy(buf + CNID_TYPE_OFS, &hint, sizeof(hint));
70 return hint;
79 cnid_t hint)
85 if (!cdb || !(db = cdb->_private) || !st || !name || hint == CNID_INVALID || hint < CNID_START) {
114 memcpy(data.data, &hint, sizeof(hint));
116 key.data = &hint;
117 key.size = sizeof(hint);
122 , "cnid_add: Failed to add CNID for %s to database using hint %u: %s",
123 name, ntohl(hint), db_strerror(rc));
128 if (set_max_cnid(db, hint) == CNID_INVALID) {
134 LOG(log_debug9, logtype_default, "cnid_add: Returned CNID for did %u, name %s as %u", ntohl(did), name, ntohl(hint));
137 return hint;