"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/pulsecore/database-tdb.c" between
pulseaudio-14.0.tar.xz and pulseaudio-14.2.tar.xz

About: PulseAudio is a networked sound server (for POSIX OSes), a proxy for your sound applications.

database-tdb.c  (pulseaudio-14.0.tar.xz):database-tdb.c  (pulseaudio-14.2.tar.xz)
skipping to change at line 100 skipping to change at line 100
errno = 0; errno = 0;
if (!(c = tdb_open(name, hash_size, tdb_flags, open_flags, mode))) if (!(c = tdb_open(name, hash_size, tdb_flags, open_flags, mode)))
return NULL; return NULL;
finish: finish:
pa_make_fd_cloexec(tdb_fd(c)); pa_make_fd_cloexec(tdb_fd(c));
return c; return c;
} }
pa_database* pa_database_open(const char *fn, bool for_write) { const char* pa_database_get_filename_suffix(void) {
return ".tdb";
}
pa_database* pa_database_open_internal(const char *path, bool for_write) {
struct tdb_context *c; struct tdb_context *c;
char *path;
pa_assert(fn); pa_assert(path);
path = pa_sprintf_malloc("%s.tdb", fn);
if ((c = tdb_open_cloexec(path, 0, TDB_NOSYNC|TDB_NOLOCK, (for_write ? O_RDW R|O_CREAT : O_RDONLY), 0644))) if ((c = tdb_open_cloexec(path, 0, TDB_NOSYNC|TDB_NOLOCK, (for_write ? O_RDW R|O_CREAT : O_RDONLY), 0644)))
pa_log_debug("Opened TDB database '%s'", path); pa_log_debug("Opened TDB database '%s'", path);
pa_xfree(path);
if (!c) { if (!c) {
if (errno == 0) if (errno == 0)
errno = EIO; errno = EIO;
return NULL; return NULL;
} }
return (pa_database*) c; return (pa_database*) c;
} }
void pa_database_close(pa_database *db) { void pa_database_close(pa_database *db) {
 End of changes. 5 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)