summaryrefslogtreecommitdiff
path: root/src/libstrongswan/utils/optionsfrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/utils/optionsfrom.c')
-rw-r--r--src/libstrongswan/utils/optionsfrom.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/optionsfrom.c b/src/libstrongswan/utils/optionsfrom.c
index e51780290..fe3d37966 100644
--- a/src/libstrongswan/utils/optionsfrom.c
+++ b/src/libstrongswan/utils/optionsfrom.c
@@ -61,8 +61,16 @@ struct private_options_t {
char *buffers[MAX_USES];
};
+<<<<<<< HEAD
+/**
+ * Defined in header
+ */
+bool from(private_options_t *this, char *filename, int *argcp, char **argvp[],
+ int optind)
+=======
METHOD(options_t, from, bool,
private_options_t *this, char *filename, int *argcp, char **argvp[], int optind)
+>>>>>>> upstream/4.5.1
{
int newargc;
int next; /* place for next argument */
@@ -179,8 +187,15 @@ METHOD(options_t, from, bool,
return good;
}
+<<<<<<< HEAD
+/**
+ * Defined in header
+ */
+void destroy(private_options_t *this)
+=======
METHOD(options_t, destroy, void,
private_options_t *this)
+>>>>>>> upstream/4.5.1
{
while (this->nuses >= 0)
{
@@ -195,6 +210,19 @@ METHOD(options_t, destroy, void,
*/
options_t *options_create(void)
{
+<<<<<<< HEAD
+ private_options_t *this = malloc_thing(private_options_t);
+
+ /* initialize */
+ this->newargv = NULL;
+ this->room = 0;
+ this->nuses = -1;
+ memset(this->buffers, '\0', MAX_USES);
+
+ /* public functions */
+ this->public.from = (bool (*) (options_t*,char*,int*,char***,int))from;
+ this->public.destroy = (void (*) (options_t*))destroy;
+=======
private_options_t *this;
INIT(this,
@@ -205,6 +233,7 @@ options_t *options_create(void)
},
.nuses = -1,
);
+>>>>>>> upstream/4.5.1
return &this->public;
}