XMMS2
Macros | Functions
s4.c File Reference
#include <s4.h>
#include "s4_priv.h"
#include "logging.h"
#include <string.h>
#include <stdlib.h>
#include <glib/gstdio.h>
#include <errno.h>

Macros

#define S4_MAGIC   ("s4db")
 
#define S4_MAGIC_LEN   (4)
 
#define S4_VERSION   1
 

Functions

s4_ts4_open (const char *filename, const char **indices, int open_flags)
 Opens an S4 database. More...
 
int s4_close (s4_t *s4)
 Closes an open S4 database. More...
 
void s4_sync (s4_t *s4)
 Writes all changes to disk. More...
 
s4_errno_t s4_errno ()
 Returns the last error number set. More...
 
void s4_set_errno (s4_errno_t err)
 Sets errno to the given error number. More...
 
int _reread_file (s4_t *s4)
 
void _start_sync (s4_t *s4)
 
void _sync (s4_t *s4)