aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.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/serdi.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/serdi.c')
-rw-r--r--src/serdi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 1b033a10..7df0d363 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -22,9 +22,9 @@
#include "serd-config.h"
typedef struct {
- SerdEnv env;
- SerdReadState read_state;
- SerdWriter writer;
+ SerdEnv* env;
+ SerdReadState* read_state;
+ SerdWriter* writer;
} State;
static bool
@@ -197,8 +197,8 @@ main(int argc, char** argv)
fprintf(stderr, "invalid base URI `%s'\n", base_uri_str);
}
- FILE* out_fd = stdout;
- SerdEnv env = serd_env_new();
+ FILE* out_fd = stdout;
+ SerdEnv* env = serd_env_new();
SerdStyle output_style = SERD_STYLE_RESOLVED;
if (output_syntax == SERD_NTRIPLES) {
@@ -207,16 +207,16 @@ main(int argc, char** argv)
output_style |= SERD_STYLE_ABBREVIATED;
}
- SerdReadState read_state = serd_read_state_new(env, base_uri_str);
+ SerdReadState* read_state = serd_read_state_new(env, base_uri_str);
serd_read_state_get_base_uri(read_state, &base_uri);
- SerdWriter writer = serd_writer_new(
+ SerdWriter* writer = serd_writer_new(
output_syntax, output_style, env, &base_uri, file_sink, out_fd);
State state = { env, read_state, writer };
- SerdReader reader = serd_reader_new(
+ SerdReader* reader = serd_reader_new(
SERD_TURTLE, &state,
event_base, event_prefix, event_statement, event_end);