Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
Functions | Variables
strpool.c File Reference
#include <glib.h>
#include <pthread.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "core.h"

Go to the source code of this file.

Functions

static void str_destroy (void *str)
EXPORT char * str_get (const char *str)
EXPORT char * str_ref (char *str)
EXPORT void str_unref (char *str)
EXPORT char * str_nget (const char *str, int len)
EXPORT char * str_printf (const char *format,...)
EXPORT void strpool_abort (char *str)
static void str_leaked (void *key, void *str, void *unused)
EXPORT void strpool_shutdown (void)

Variables

static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER
static GHashTable * table

Function Documentation

static void str_destroy ( void *  str)
static

Definition at line 59 of file strpool.c.

Referenced by str_get().

EXPORT char* str_get ( const char *  str)
static void str_leaked ( void *  key,
void *  str,
void *  unused 
)
static

Definition at line 189 of file strpool.c.

Referenced by strpool_shutdown().

EXPORT char* str_nget ( const char *  str,
int  len 
)

Definition at line 151 of file strpool.c.

EXPORT char* str_printf ( const char *  format,
  ... 
)

Definition at line 163 of file strpool.c.

Referenced by add_file(), drct_get_title(), and get_plugin().

EXPORT char* str_ref ( char *  str)
EXPORT void str_unref ( char *  str)
EXPORT void strpool_abort ( char *  str)

Definition at line 180 of file strpool.c.

EXPORT void strpool_shutdown ( void  )

Definition at line 197 of file strpool.c.

Referenced by shut_down().


Variable Documentation

pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER
static

Definition at line 33 of file strpool.c.

Referenced by str_get(), str_ref(), and str_unref().

GHashTable* table
static