eaarl-io  1.0.1+71abbd4
EAARL Input/Output Library (Public API)
tld_opener.h
Go to the documentation of this file.
1 #ifndef EAARLIO_TLD_OPENER_H
2 #define EAARLIO_TLD_OPENER_H
3 
15 #include "eaarlio/error.h"
16 #include "eaarlio/stream.h"
17 
52  struct eaarlio_stream *stream,
53  char const *tld_file);
54 
70 
78  void *opaque;
79 };
80 
86 #define eaarlio_tld_opener_empty() \
87  (struct eaarlio_tld_opener) \
88  { \
89  NULL, NULL, NULL \
90  }
91 
92 #endif
eaarlio_error(* close)(struct eaarlio_tld_opener *self)
Close the opener.
Definition: tld_opener.h:69
eaarlio_error
Definition: error.h:16
eaarlio_error(* open_tld)(struct eaarlio_tld_opener *self, struct eaarlio_stream *stream, char const *tld_file)
Open a readable stream for a TLD file.
Definition: tld_opener.h:51
Stream interface for working with files.
Error codes and handling.
void * opaque
Internal data pointer.
Definition: tld_opener.h:78
TLD file opener interface.
Definition: tld_opener.h:36
Stream interface.
Definition: stream.h:47