summaryrefslogtreecommitdiff
path: root/src/libstrongswan/utils/optionsfrom.c
diff options
context:
space:
mode:
authorRené Mayrhofer <rene@mayrhofer.eu.org>2011-03-05 09:29:19 +0100
committerRené Mayrhofer <rene@mayrhofer.eu.org>2011-03-05 09:29:19 +0100
commit365e71f706b40c32173fa06c6feaac48c1527520 (patch)
tree54fa72a914d18c9430eaa54f3de4a2d4419198af /src/libstrongswan/utils/optionsfrom.c
parent5d7669b7b3563c50b3c86903e0a49373d597b8a0 (diff)
parent568905f488e63e28778f87ac0e38d845f45bae79 (diff)
downloadvyos-strongswan-365e71f706b40c32173fa06c6feaac48c1527520.tar.gz
vyos-strongswan-365e71f706b40c32173fa06c6feaac48c1527520.zip
Fixed merge, don't know why this didn't happen automatically - maybe a leftover from the svn->git conversion
Diffstat (limited to 'src/libstrongswan/utils/optionsfrom.c')
-rw-r--r--src/libstrongswan/utils/optionsfrom.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/optionsfrom.c b/src/libstrongswan/utils/optionsfrom.c
index d8f635c62..fe3d37966 100644
--- a/src/libstrongswan/utils/optionsfrom.c
+++ b/src/libstrongswan/utils/optionsfrom.c
@@ -61,11 +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 */
@@ -182,10 +187,15 @@ bool from(private_options_t *this, char *filename, int *argcp, char **argvp[],
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)
{
@@ -200,6 +210,7 @@ void destroy(private_options_t *this)
*/
options_t *options_create(void)
{
+<<<<<<< HEAD
private_options_t *this = malloc_thing(private_options_t);
/* initialize */
@@ -211,6 +222,18 @@ options_t *options_create(void)
/* 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,
+ .public = {
+ .from = _from,
+ .destroy = _destroy,
+
+ },
+ .nuses = -1,
+ );
+>>>>>>> upstream/4.5.1
return &this->public;
}