Lines Matching refs:profile

4  *      inserting, updating and deleting items from the profile.
7 * profile. It's not clear how to handle multiple files, actually.
24 static errcode_t rw_setup(profile_t profile)
29 if (!profile)
32 if (profile->magic != PROF_MAGIC_PROFILE)
35 file = profile->first_file;
84 profile_update_relation(profile_t profile, const char **names,
92 retval = rw_setup(profile);
102 retval = k5_mutex_lock(&profile->first_file->data->lock);
105 section = profile->first_file->data->root;
111 k5_mutex_unlock(&profile->first_file->data->lock);
125 profile->first_file->data->flags |= PROFILE_FILE_DIRTY;
126 k5_mutex_unlock(&profile->first_file->data->lock);
137 profile_clear_relation(profile_t profile, const char **names)
144 retval = rw_setup(profile);
151 section = profile->first_file->data->root;
170 profile->first_file->data->flags |= PROFILE_FILE_DIRTY;
182 profile_rename_section(profile_t profile, const char **names,
190 retval = rw_setup(profile);
197 retval = k5_mutex_lock(&profile->first_file->data->lock);
200 section = profile->first_file->data->root;
206 k5_mutex_unlock(&profile->first_file->data->lock);
220 profile->first_file->data->flags |= PROFILE_FILE_DIRTY;
221 k5_mutex_unlock(&profile->first_file->data->lock);
235 profile_add_relation(profile_t profile, const char **names,
243 retval = rw_setup(profile);
250 retval = k5_mutex_lock(&profile->first_file->data->lock);
253 section = profile->first_file->data->root;
261 k5_mutex_unlock(&profile->first_file->data->lock);
269 k5_mutex_unlock(&profile->first_file->data->lock);
272 k5_mutex_unlock(&profile->first_file->data->lock);
279 k5_mutex_unlock(&profile->first_file->data->lock);
283 profile->first_file->data->flags |= PROFILE_FILE_DIRTY;
284 k5_mutex_unlock(&profile->first_file->data->lock);