aboutsummaryrefslogtreecommitdiffstats
path: root/src/env.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-27 18:41:58 +0000
committerDavid Robillard <d@drobilla.net>2011-04-27 18:41:58 +0000
commit68aa3540cb71c5e0473cc4568431a0e5f5ae29f0 (patch)
tree33939eafb4bd864059fd31b17dc28d15532c9508 /src/env.c
parent0b04f70d827a850ca5e779819095766194cd0e94 (diff)
downloadserd-68aa3540cb71c5e0473cc4568431a0e5f5ae29f0.tar.gz
serd-68aa3540cb71c5e0473cc4568431a0e5f5ae29f0.tar.bz2
serd-68aa3540cb71c5e0473cc4568431a0e5f5ae29f0.zip
Don't hide pointers in typedefs.
git-svn-id: http://svn.drobilla.net/serd/trunk@150 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/env.c b/src/env.c
index 01a6124d..8e831d53 100644
--- a/src/env.c
+++ b/src/env.c
@@ -32,10 +32,10 @@ struct SerdEnvImpl {
};
SERD_API
-SerdEnv
+SerdEnv*
serd_env_new()
{
- SerdEnv env = malloc(sizeof(struct SerdEnvImpl));
+ SerdEnv* env = malloc(sizeof(struct SerdEnvImpl));
env->prefixes = NULL;
env->n_prefixes = 0;
return env;
@@ -43,7 +43,7 @@ serd_env_new()
SERD_API
void
-serd_env_free(SerdEnv env)
+serd_env_free(SerdEnv* env)
{
for (size_t i = 0; i < env->n_prefixes; ++i) {
serd_node_free(&env->prefixes[i].name);
@@ -54,7 +54,7 @@ serd_env_free(SerdEnv env)
}
static inline SerdPrefix*
-serd_env_find(SerdEnv env,
+serd_env_find(const SerdEnv* env,
const uint8_t* name,
size_t name_len)
{
@@ -71,7 +71,7 @@ serd_env_find(SerdEnv env,
SERD_API
void
-serd_env_add(SerdEnv env,
+serd_env_add(SerdEnv* env,
const SerdNode* name,
const SerdNode* uri)
{
@@ -90,7 +90,7 @@ serd_env_add(SerdEnv env,
SERD_API
bool
-serd_env_qualify(const SerdEnv env,
+serd_env_qualify(const SerdEnv* env,
const SerdNode* uri,
SerdNode* prefix_name,
SerdChunk* suffix)
@@ -113,7 +113,7 @@ serd_env_qualify(const SerdEnv env,
SERD_API
bool
-serd_env_expand(const SerdEnv env,
+serd_env_expand(const SerdEnv* env,
const SerdNode* qname,
SerdChunk* uri_prefix,
SerdChunk* uri_suffix)
@@ -137,7 +137,7 @@ serd_env_expand(const SerdEnv env,
SERD_API
void
-serd_env_foreach(const SerdEnv env,
+serd_env_foreach(const SerdEnv* env,
SerdPrefixSink func,
void* handle)
{