pulseaudio  14.2
About: PulseAudio is a networked sound server (for POSIX OSes), a proxy for your sound applications.
  Fossies Dox: pulseaudio-14.2.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

database.h File Reference
#include <sys/types.h>
#include <pulsecore/macro.h>
Include dependency graph for database.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pa_datum
 

Typedefs

typedef struct pa_database pa_database
 This file is part of PulseAudio. More...
 
typedef struct pa_datum pa_datum
 

Functions

void pa_datum_free (pa_datum *d)
 
const char * pa_database_get_filename_suffix (void)
 
pa_databasepa_database_open (const char *path, const char *fn, bool prependmid, bool for_write)
 This file is part of PulseAudio. More...
 
pa_databasepa_database_open_internal (const char *path, bool for_write)
 
void pa_database_close (pa_database *db)
 
pa_datumpa_database_get (pa_database *db, const pa_datum *key, pa_datum *data)
 
int pa_database_set (pa_database *db, const pa_datum *key, const pa_datum *data, bool overwrite)
 
int pa_database_unset (pa_database *db, const pa_datum *key)
 
int pa_database_clear (pa_database *db)
 
signed pa_database_size (pa_database *db)
 
pa_datumpa_database_first (pa_database *db, pa_datum *key, pa_datum *data)
 
pa_datumpa_database_next (pa_database *db, const pa_datum *key, pa_datum *next, pa_datum *data)
 
int pa_database_sync (pa_database *db)
 

Typedef Documentation

◆ pa_database

typedef struct pa_database pa_database

This file is part of PulseAudio.

Copyright 2009 Lennart Poettering

PulseAudio is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

PulseAudio is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with PulseAudio; if not, see http://www.gnu.org/licenses/.

Definition at line 1 of file database.h.

◆ pa_datum

typedef struct pa_datum pa_datum

Function Documentation

◆ pa_database_clear()

int pa_database_clear ( pa_database db)

◆ pa_database_close()

◆ pa_database_first()

◆ pa_database_get()

◆ pa_database_get_filename_suffix()

const char* pa_database_get_filename_suffix ( void  )

Definition at line 62 of file database-gdbm.c.

Referenced by pa_database_open().

◆ pa_database_next()

◆ pa_database_open()

pa_database* pa_database_open ( const char *  path,
const char *  fn,
bool  prependmid,
bool  for_write 
)

This file is part of PulseAudio.

Copyright 2020 Igor V. Kovalenko igor..nosp@m.v.ko.nosp@m.valen.nosp@m.ko@g.nosp@m.mail..nosp@m.com

PulseAudio is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

PulseAudio is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with PulseAudio; if not, see http://www.gnu.org/licenses/.

Definition at line 34 of file database.c.

References depmod::f, pa_assert, pa_cstrerror(), pa_database_get_filename_suffix(), pa_database_open_internal(), pa_endswith(), pa_log, pa_log_debug(), pa_log_info(), pa_log_warn(), pa_machine_id(), PA_PATH_SEP, pa_sprintf_malloc(), pa_startswith(), pa_xfree(), pa_xstrdup(), and pa_xstrndup().

Referenced by dbus_init(), load_state(), pa__init(), and save_state().

◆ pa_database_open_internal()

◆ pa_database_set()

◆ pa_database_size()

signed pa_database_size ( pa_database db)

◆ pa_database_sync()

◆ pa_database_unset()

int pa_database_unset ( pa_database db,
const pa_datum key 
)

◆ pa_datum_free()