Lines Matching defs:db
53 DBusUserDatabase *db;
108 db = _dbus_user_database_get_system ();
109 if (db == NULL)
118 info = _dbus_user_database_lookup (db, uid, NULL, error);
158 DBusUserDatabase *db;
162 db = _dbus_user_database_get_system ();
163 if (db == NULL)
169 if (!_dbus_user_database_get_groupname (db, groupname,
195 DBusUserDatabase *db;
199 db = _dbus_user_database_get_system ();
200 if (db == NULL)
206 if (!_dbus_user_database_get_username (db, username,
228 * @param db the database
235 _dbus_user_database_lookup_group (DBusUserDatabase *db,
255 info = _dbus_hash_table_lookup_uintptr (db->groups, gid);
257 info = _dbus_hash_table_lookup_string (db->groups_by_name,
307 if (!_dbus_hash_table_insert_uintptr (db->groups, info->gid, info))
315 if (!_dbus_hash_table_insert_string (db->groups_by_name,
319 _dbus_hash_table_remove_uintptr (db->groups, info->gid);
333 * @param db user database
340 _dbus_user_database_get_groupname (DBusUserDatabase *db,
345 *info = _dbus_user_database_lookup_group (db, DBUS_GID_UNSET, groupname, error);
353 * @param db user database
360 _dbus_user_database_get_gid (DBusUserDatabase *db,
365 *info = _dbus_user_database_lookup_group (db, gid, NULL, error);
385 DBusUserDatabase *db;
392 db = _dbus_user_database_get_system ();
393 if (db == NULL)
399 if (!_dbus_user_database_get_uid (db, uid,