diff options
author | snowdrop | 2004-06-03 08:53:31 +0000 |
---|---|---|
committer | snowdrop | 2004-06-03 08:53:31 +0000 |
commit | 4666292be1927bdb2e319f417a08ab17c91de784 (patch) | |
tree | d235a470090a18bb801646eebf24f214a6243675 /xsd2c/xsd2c.c | |
parent | dba04a85c15cf13cae1e3cb1e47e586e2fabc039 (diff) | |
download | csoap-4666292be1927bdb2e319f417a08ab17c91de784.tar.gz csoap-4666292be1927bdb2e319f417a08ab17c91de784.tar.bz2 |
develop
Diffstat (limited to 'xsd2c/xsd2c.c')
-rw-r--r-- | xsd2c/xsd2c.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/xsd2c/xsd2c.c b/xsd2c/xsd2c.c index 80660c3..d870f7c 100644 --- a/xsd2c/xsd2c.c +++ b/xsd2c/xsd2c.c @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: xsd2c.c,v 1.3 2004/06/02 15:35:07 snowdrop Exp $ + * $Id: xsd2c.c,v 1.4 2004/06/03 08:53:34 snowdrop Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -19,7 +19,7 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * - * Email: ayaz@jprogrammet.net + * Email: ayaz@jprogrammer.net ******************************************************************/ #include <libxml/xmlmemory.h> @@ -685,20 +685,20 @@ int xsdInitObjModule(xmlNodePtr xsdNode) return 1; } - -int xsdEngineRun(xmlNodePtr xsdNode, const char* destDir) +void xsdSetDestDir(const char* destDir) { - - if (!xsdInitTrModule(xsdNode)) - return 1; - - if (!xsdInitObjModule(xsdNode)) - return 1; strcpy(outDir, destDir); - + mkdir(destDir, S_IRUSR|S_IWUSR|S_IXUSR | S_IRGRP|S_IWGRP|S_IXGRP | S_IROTH|S_IXOTH ); +} + +int xsdEngineRun(xmlNodePtr xsdNode, const char* destDir) +{ + + + xsdSetDestDir(destDir); if (xsdNode != NULL) { runGenerator(xsdNode); |