1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-08 23:53:31 +02:00
Files
dox2-src
help
images
lib-src
FileDialog
expat
ffmpeg
iAVC
id3lib
lib-widget-extra
libflac
libid3tag
liblrdf
libmad
libnyquist
libogg
libraptor
libresample
libsamplerate
libscorealign
libsndfile
libvamp
libvorbis
mod-null
mod-nyq-bench
mod-script-pipe
mod-track-panel
portaudio
portaudio-v19
portburn
portmidi
portmixer
portsmf
redland
data
demos
docs
examples
librdf
win32
ChangeLog
Makefile.am
Makefile.in
librdf.h
memcmp.c
mysql-v1.ttl
mysql-v2.ttl
rdf_avltree.c
rdf_avltree_internal.h
rdf_concepts.c
rdf_concepts.h
rdf_concepts_internal.h
rdf_config.h.in
rdf_digest.c
rdf_digest.h
rdf_digest_internal.h
rdf_digest_md5.c
rdf_digest_openssl.c
rdf_digest_sha1.c
rdf_files.c
rdf_files.h
rdf_hash.c
rdf_hash.h
rdf_hash_bdb.c
rdf_hash_cursor.c
rdf_hash_internal.h
rdf_hash_memory.c
rdf_heuristics.c
rdf_heuristics.h
rdf_init.c
rdf_init.h
rdf_init_internal.h
rdf_internal.h
rdf_iterator.c
rdf_iterator.h
rdf_iterator_internal.h
rdf_list.c
rdf_list.h
rdf_list_internal.h
rdf_log.c
rdf_log.h
rdf_log_internal.h
rdf_model.c
rdf_model.h
rdf_model_internal.h
rdf_model_storage.c
rdf_node.c
rdf_node.h
rdf_node_internal.h
rdf_parser.c
rdf_parser.h
rdf_parser_internal.h
rdf_parser_raptor.c
rdf_query.c
rdf_query.h
rdf_query_internal.h
rdf_query_rasqal.c
rdf_query_results.c
rdf_query_triples.c
rdf_serializer.c
rdf_serializer.h
rdf_serializer_internal.h
rdf_serializer_raptor.c
rdf_statement.c
rdf_statement.h
rdf_statement_internal.h
rdf_storage.c
rdf_storage.h
rdf_storage_file.c
rdf_storage_hashes.c
rdf_storage_internal.h
rdf_storage_list.c
rdf_storage_mysql.c
rdf_storage_postgresql.c
rdf_storage_sql.c
rdf_storage_sql_test.c
rdf_storage_sqlite.c
rdf_storage_trees.c
rdf_storage_tstore.c
rdf_stream.c
rdf_stream.h
rdf_stream_internal.h
rdf_types.h
rdf_uri.c
rdf_uri.h
rdf_uri_internal.h
rdf_utf8.c
rdf_utf8.h
redland.h
redland.spec
redland.spec.in
win32_rdf_config.h
raptor
rasqal
utils
AUTHORS
COPYING
COPYING.LIB
ChangeLog
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
FAQS.html
INSTALL
INSTALL.html
LICENSE-2.0.txt
LICENSE.html
LICENSE.txt
Makefile.am
Makefile.in
NEWS
NEWS.html
NOTICE
README
README.html
RELEASE.html
Redland.i
TODO
TODO.html
acinclude.m4
audacity_build_tweaks.patch
autogen.sh
compile
config.guess
config.sub
configure
configure.ac
depcomp
gtk-doc.make
install-sh
ltmain.sh
missing
mkinstalldirs
redland-config.1
redland-config.in
redland-src-config.in
redland.pc.in
redland.rdf.in
redland.sln
rtaudio
sbsms
slv2
soundtouch
taglib
twolame
Makefile.in
audacity-patches.txt
locale
m4
mac
nyquist
plug-ins
presets
qa
scripts
src
tests
win
LICENSE.txt
Makefile.in
README.txt
audacity.dox
autogen.sh
config.guess
config.sub
configure
configure.in
install-sh
todo.txt
audacity/lib-src/redland/librdf/rdf_init_internal.h
2010-01-24 09:19:39 +00:00

153 lines
3.6 KiB
C

/* -*- Mode: c; c-basic-offset: 2 -*-
*
* rdf_init_internal.h - Internal library initialisation / termination
*
* Copyright (C) 2000-2008, David Beckett http://www.dajobe.org/
* Copyright (C) 2000-2005, University of Bristol, UK http://www.bristol.ac.uk/
*
* This package is Free Software and part of Redland http://librdf.org/
*
* It is licensed under the following three licenses as alternatives:
* 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
* 2. GNU General Public License (GPL) V2 or any newer version
* 3. Apache License, V2.0 or any newer version
*
* You may not use this file except in compliance with at least one of
* the above three licenses.
*
* See LICENSE.html or LICENSE.txt at the top of this package for the
* complete terms and further detail along with the license texts for
* the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively.
*
*
*/
#ifndef LIBRDF_INIT_INTERNAL_H
#define LIBRDF_INIT_INTERNAL_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef WITH_THREADS
#include <pthread.h>
#endif
#ifdef RASQAL_H
/* rasqal.h will have defined this */
#else
/* provide a forward reference */
#ifndef RASQAL_WORLD_DECLARED
#define RASQAL_WORLD_DECLARED 1
typedef struct rasqal_world_s rasqal_world;
#endif
#endif
struct librdf_world_s
{
void *error_user_data;
librdf_log_level_func error_handler;
void *warning_user_data;
librdf_log_level_func warning_handler;
void *log_user_data;
librdf_log_func log_handler;
/* static (last) log message */
librdf_log_message log;
char *digest_factory_name;
librdf_digest_factory* digest_factory;
/* URI interning */
librdf_hash* uris_hash;
int uris_hash_allocated_here;
/* Node interning */
librdf_hash* nodes_hash[3]; /* resource, literal, blank */
/* Sequence of model factories */
raptor_sequence* models;
/* Sequence of storage factories */
raptor_sequence* storages;
/* Sequence of parser factories */
raptor_sequence* parsers;
/* Sequence of serializer factories */
raptor_sequence* serializers;
/* List of query factories */
librdf_query_factory* query_factories;
/* List of digest factories */
librdf_digest_factory *digests;
/* list of hash factories */
librdf_hash_factory* hashes;
/* list of free librdf_hash_datums is kept */
librdf_hash_datum* hash_datums_list;
/* hash load_factor out of 1000 */
int hash_load_factor;
/* ID base from startup time */
long genid_base;
/* Unique counter from there */
long genid_counter;
#ifdef WITH_THREADS
/* mutex so we can lock around this when we need to */
pthread_mutex_t* mutex;
/* mutex to lock the nodes class */
pthread_mutex_t* nodes_mutex;
/* mutex to lock the statements class */
pthread_mutex_t* statements_mutex;
#else
/* !WITH_THREADS - pad structure to same size */
void* mutex_fake;
void* nodes_mutex_fake;
void* statements_mutex_fake;
#endif
/* non-0 if librdf_world_open() has been called */
int opened;
/* Sequence of storage modules
* Used with --enable-modular / MODULAR_LIBRDF
*/
raptor_sequence* storage_modules;
/* If libtdl has been opened with lt_dlinit()
* Used with --enable-modular / MODULAR_LIBRDF
*/
int ltdl_opened;
/* librdf_concepts RDF syntax and Schema namespace uris */
librdf_uri* concept_ms_namespace_uri;
librdf_uri* concept_schema_namespace_uri;
/* librdf_concepts nodes and uris */
librdf_uri** concept_uris;
librdf_node** concept_resources;
/* rasqal world object */
rasqal_world* rasqal_world_ptr;
};
unsigned char* librdf_world_get_genid(librdf_world* world);
#ifdef __cplusplus
}
#endif
#endif