| 1 | // Zoo header files |
|---|
| 2 | #include "service.h" |
|---|
| 3 | |
|---|
| 4 | extern "C" { |
|---|
| 5 | |
|---|
| 6 | #ifdef WIN32 |
|---|
| 7 | __declspec(dllexport) |
|---|
| 8 | #endif |
|---|
| 9 | int Example( maps*& conf, maps*& inputs, maps*& outputs ) { |
|---|
| 10 | |
|---|
| 11 | maps* tmp; |
|---|
| 12 | |
|---|
| 13 | tmp = getMaps( inputs, "optional_literal" ); |
|---|
| 14 | if (tmp != NULL) dumpMapsToFile( tmp, "tmp1.txt"); |
|---|
| 15 | |
|---|
| 16 | tmp = getMaps( inputs, "optional_complex_type" ); |
|---|
| 17 | if (tmp != NULL) dumpMapsToFile( tmp, "tmp2.txt"); |
|---|
| 18 | |
|---|
| 19 | tmp = getMaps( inputs, "mandatory_literal" ); |
|---|
| 20 | if ( tmp != NULL ) dumpMapsToFile( tmp, "tmp3.txt"); |
|---|
| 21 | |
|---|
| 22 | return SERVICE_FAILED; |
|---|
| 23 | |
|---|
| 24 | } |
|---|
| 25 | |
|---|
| 26 | } |
|---|