aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/parser_helper.h
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-05-14 17:21:04 +0200
committerTobias Brunner <tobias@strongswan.org>2014-05-15 11:28:10 +0200
commit66248396c69d16988f45ef6879389f3e0914ec10 (patch)
tree9310885e438157a4c744b0a410b863384866bdaa /src/libstrongswan/utils/parser_helper.h
parentc976cc7d33d6c3aeeb6e2a8a82c10401f629f93c (diff)
downloadstrongswan-66248396c69d16988f45ef6879389f3e0914ec10.tar.bz2
strongswan-66248396c69d16988f45ef6879389f3e0914ec10.tar.xz
parser-helper: Make parser_helper_file_t private
Diffstat (limited to 'src/libstrongswan/utils/parser_helper.h')
-rw-r--r--src/libstrongswan/utils/parser_helper.h27
1 files changed, 3 insertions, 24 deletions
diff --git a/src/libstrongswan/utils/parser_helper.h b/src/libstrongswan/utils/parser_helper.h
index 6a2c26c8e..d8602522b 100644
--- a/src/libstrongswan/utils/parser_helper.h
+++ b/src/libstrongswan/utils/parser_helper.h
@@ -25,7 +25,6 @@
#include <bio/bio_writer.h>
typedef struct parser_helper_t parser_helper_t;
-typedef struct parser_helper_file_t parser_helper_file_t;
/**
* Helper class for flex/bison based parsers.
@@ -59,13 +58,6 @@ struct parser_helper_t {
int (*get_lineno)(void *scanner);
/**
- * Get the current file.
- *
- * @return current file, or NULL
- */
- parser_helper_file_t *(*file_current)(parser_helper_t *this);
-
- /**
* Resolves the given include pattern, relative to the location of the
* current file.
*
@@ -89,8 +81,8 @@ struct parser_helper_t {
* then call this method to check if there are more files to include for
* the most recent call to file_include(), if so, call
* @code
- * PREFIXset_in(file->file, helper->scanner);
- * PREFIXpush_buffer_state(PREFIX_create_buffer(file->file, YY_BUF_SIZE,
+ * PREFIXset_in(file, helper->scanner);
+ * PREFIXpush_buffer_state(PREFIX_create_buffer(file, YY_BUF_SIZE,
* helper->scanner), helper->scanner);
* @endcode
*
@@ -99,7 +91,7 @@ struct parser_helper_t {
*
* @return next file to process, or NULL (see comment)
*/
- parser_helper_file_t *(*file_next)(parser_helper_t *this);
+ FILE *(*file_next)(parser_helper_t *this);
/**
* Start parsing a string, discards any currently stored data.
@@ -127,19 +119,6 @@ struct parser_helper_t {
void (*destroy)(parser_helper_t *this);
};
-struct parser_helper_file_t {
-
- /**
- * File name
- */
- char *name;
-
- /**
- * File stream
- */
- FILE *file;
-};
-
/**
* Log the given message either as error or warning
*